-
Notifications
You must be signed in to change notification settings - Fork 707
proto: Alias prefix and prefixed #28807
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
proto: Alias prefix and prefixed #28807
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces enum aliasing to reduce confusion around naming inconsistency between "PREFIX" and "PREFIXED" variants in the protobuf definitions. It adds aliases so that both naming conventions can be used interchangeably:
ACLPattern.ACL_PATTERN_PREFIXas an alias forACL_PATTERN_PREFIXEDPatternType.PATTERN_TYPE_PREFIXEDas an alias forPATTERN_TYPE_PREFIX
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| proto/redpanda/core/common/v1/acl.proto | Adds allow_alias option and creates ACL_PATTERN_PREFIX as alias for existing ACL_PATTERN_PREFIXED |
| proto/redpanda/core/admin/v2/shadow_link.proto | Adds allow_alias option and creates PATTERN_TYPE_PREFIXED as alias for existing PATTERN_TYPE_PREFIX |
| tests/rptest/clients/admin/proto/redpanda/core/common/v1/acl_pb2.py | Auto-generated Python code reflecting the ACLPattern alias addition |
| tests/rptest/clients/admin/proto/redpanda/core/common/v1/acl_pb2.pyi | Auto-generated Python type stubs for ACLPattern alias |
| tests/rptest/clients/admin/proto/redpanda/core/admin/v2/shadow_link_pb2.py | Auto-generated Python code reflecting the PatternType alias addition |
| tests/rptest/clients/admin/proto/redpanda/core/admin/v2/shadow_link_pb2.pyi | Auto-generated Python type stubs for PatternType alias |
| tests/rptest/clients/admin/proto/redpanda/core/admin/v2/init.pyi | Adds internal module import |
CI test resultstest results on build#77216
test results on build#77252
test results on build#77414 |
6107344 to
cdcb667
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
cdcb667 to
44eb7d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
d3b67b9 to
45ee926
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.
45ee926 to
73287a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.
|
Force push:
|
Signed-off-by: Michael Boquard <[email protected]>
To reduce confusion, this change introduces aliasing: * ACLPattern.ACL_PATTERN_PREFIX to ACLPattern.ACL_PATTERN_PREFIXED * PatternType.PATTERN_TYPE_PREFIXED to PatternType.PATTERN_TYPE_PREFIX Signed-off-by: Michael Boquard <[email protected]>
73287a2 to
a8f8583
Compare
|
Force push:
|
| lint: true | ||
| format: false # We use clang-tidy | ||
| breaking: false # flip to true when we have a release | ||
| breaking: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'buf skip breaking') }} # Enable breaking change check unless the label 'buf skip breaking' is set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| breaking: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'buf skip breaking') }} # Enable breaking change check unless the label 'buf skip breaking' is set | |
| breaking: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'buf skip breaking') }} # Enable breaking change check unless the label 'buf skip breaking' is set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So always check for breaking if it isn't a pull_request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah. I think we want dev to always check? Well actually never mind because we might want breaking. Ignore me, not enough sleep :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore me, not enough sleep :)
ugh hear you on that
Retry command for Build#77414please wait until all jobs are finished before running the slash command |
kbatuigas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, looks good from Docs
|
/ci-repeat 1 |
|
/backport v25.3.x |
|
Failed to create a backport PR to v25.3.x branch. I tried: |
To reduce confusion, this change introduces aliasing:
Fixes: CORE-14886
Backports Required
Release Notes
Improvements
ACLPattern.ACL_PATTERN_PREFIXtoACLPattern.ACL_PATTERN_PREFIXEDPatternType.PATTERN_TYPE_PREFIXEDtoPatternType.PATTERN_TYPE_PREFIX