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

Set label to REQUIRED for descriptors with LEGACY_REQUIRED feature. #16308

Merged
merged 3 commits into from Mar 26, 2024

Conversation

zhangskz
Copy link
Member

Ensures isOptional() does not return true for LEGACY_REQUIRED fields which would otherwise get the optional label applied by default (non-optional fields still get the optional label).

Adds validation to feature resolution instead of cross link, which is too early to have FieldPresence.LEGACY_REQUIRED resolved.

PiperOrigin-RevId: 618857590

Ensures isOptional() does not return true for LEGACY_REQUIRED fields which would otherwise get the optional label applied by default (non-optional fields still get the optional label).

Adds validation to feature resolution instead of cross link, which is too early to have FieldPresence.LEGACY_REQUIRED resolved.

PiperOrigin-RevId: 618857590
@zhangskz zhangskz requested a review from a team as a code owner March 26, 2024 00:02
@zhangskz zhangskz requested review from shaod2 and removed request for a team and shaod2 March 26, 2024 00:02
@zhangskz zhangskz requested a review from a team as a code owner March 26, 2024 00:50
@zhangskz zhangskz requested review from ericsalo and removed request for a team March 26, 2024 00:50
@mkruskal-google
Copy link
Member

The test failure here looks real. I tried rerunning and it still fails, and it's from JRuby so it does depend on the Java runtime

…y set to this.features

PiperOrigin-RevId: 619261163
@zhangskz zhangskz merged commit 49253b1 into 26.x Mar 26, 2024
161 checks passed
@zhangskz zhangskz deleted the cp-26x-3 branch March 26, 2024 20:57
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.

None yet

3 participants