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

[v24.3.x] pandaproxy/sr: Fix normalized rendering for custom options #24872

Open
wants to merge 8 commits into
base: v24.3.x
Choose a base branch
from

Conversation

IoannisRP
Copy link
Contributor

Backport of PR #24856

When an option is made of multiple names, the names need to
be separated by a ".".

(cherry picked from commit 44da70e)
When calling CopyTo, uninterpreted options are discarded. A manual
pass to copy them from the old FileDescriptorProto has been added.

(cherry picked from commit b278596)
Uninterpreted options (custom options) should be sorted by name when
normalized for all types of uninterpreted options. Added missing
sorting for enum options and enumValue options.

(cherry picked from commit 057ec12)
- grouped all the duplicated calls to maybe_sort custom options into
a single helper function
- changed projection function from just the name of the custom option
to the full serialization of it. This way, both the name and the
value contributes to the ordering.

(cherry picked from commit 0ec5585)
@IoannisRP IoannisRP added this to the v24.3.x-next milestone Jan 21, 2025
@IoannisRP IoannisRP added the kind/backport PRs targeting a stable branch label Jan 21, 2025
@IoannisRP IoannisRP marked this pull request as ready for review January 21, 2025 19:40
@IoannisRP IoannisRP requested a review from BenPope January 21, 2025 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant