Merged
Conversation
Add groups field to LabelDescriptor, V2LabelDescriptor, and LabelDTO to align schema with LabelCreatePayload and LabelUpdatePayload. - Add List<Group> groups() to LabelDescriptor (core-java) - Add groups: List<Group> to V2LabelDescriptor (core) - Add List<Group> groups to LabelDTO (codec-java) - Create Group and GroupType classes for codec-java module - Update related tests to include groups field Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
4f4b171 to
c573e23
Compare
Member
Author
|
@em3s Please review this PR. Let me know if any improvement or adjustment is needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
groupsfield to v2 Label descriptor classes for schema consistency.The
groupsfeature was introduced in v3, and the v2 Label metadata API was updated to includegroupsfor forward compatibility. However, some v2 code was missing thegroupsfield, which could cause unexpected behavior during serialization/deserialization. This PR adds thegroupsfield to ensure consistency across all Label-related classes.Changes
core-java
LabelDescriptor.java: AddList<Group> groups()fieldcore
V2LabelDescriptor.kt: Addgroups: List<Group>fieldcodec-java
LabelDTO.java: AddList<Group> groupsfieldGroup.java: New class for codec-java module (independent of core module)GroupType.java: New enum for codec-java moduleTests
LabelDTOTests.javaandV2LabelSerializationTest.ktto includegroupsfieldHow to Test