Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISPN-346 Fix JSON for maps #293

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

tristantarrant
Copy link
Member

@tristantarrant tristantarrant added this to the 5.0.6.Final milestone Jul 2, 2024
@pruivo pruivo self-requested a review July 2, 2024 16:57
@pruivo
Copy link
Member

pruivo commented Jul 3, 2024

@tristantarrant needs rebase.

@tristantarrant
Copy link
Member Author

Rebased and added json > proto support for maps too

Copy link
Member

@pruivo pruivo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and tested successfully with Keycloak entities (view and query). Just drop a small question 👍

case SFIXED32 -> nestedWriter.writeSFixed32(1, Integer.parseInt(key));
case SFIXED64 -> nestedWriter.writeSFixed64(1, Long.parseLong(key));
case UINT32 -> nestedWriter.writeUInt32(1, Integer.parseInt(key));
case UINT64 -> nestedWriter.writeUInt64(1, Long.parseLong(key));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't double/float missing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are not valid protobuf map keys. Only scalars are supported

@pruivo pruivo merged commit 47904bd into infinispan:main Jul 3, 2024
5 checks passed
@pruivo
Copy link
Member

pruivo commented Jul 3, 2024

merged! thanks @tristantarrant !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants