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

@NestedConfigurationProperty doesn't work on records #41251

Conversation

acouvreur
Copy link
Contributor

@acouvreur acouvreur commented Jun 26, 2024

Add ElementType.RECORD_COMPONENT to NestedConfigurationProperty and implement isMarkedAsNested for RecordParameterPropertyDescriptor.

This will allow nested record to be properly harvested for their properties.

I've added a test case which fails to retrieve nested record groups property using the @NestedConfigurationProperty annotation.

This change adds the support for nested record to be properly extracted into groups when using @NestedConfigurationProperty.

@pivotal-cla
Copy link

@acouvreur Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 26, 2024
@pivotal-cla
Copy link

@acouvreur Thank you for signing the Contributor License Agreement!

Add `ElementType.RECORD_COMPONENT` to `NestedConfigurationProperty` and implement `isMarkedAsNested` for `RecordParameterPropertyDescriptor`.

This will allow nested record to be properly harvested for their properties.
@acouvreur acouvreur force-pushed the support-nested-configuration-properties-for-records branch from e912598 to 2315a72 Compare June 27, 2024 13:38
@acouvreur
Copy link
Contributor Author

Fixed formatting

@philwebb philwebb added for: team-meeting An issue we'd like to discuss as a team to make progress type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged for: team-meeting An issue we'd like to discuss as a team to make progress labels Jun 28, 2024
@philwebb philwebb added this to the 3.3.x milestone Jul 3, 2024
@philwebb
Copy link
Member

philwebb commented Jul 3, 2024

Thanks. I think it's an oversight that we didn't add support for this in 3.3 when we added record metadata support.

@mhalbritter mhalbritter self-assigned this Jul 4, 2024
@mhalbritter mhalbritter changed the title Support NestedConfigurationProperty for record types @NestedConfigurationProperty doesn't work on records Jul 4, 2024
mhalbritter pushed a commit that referenced this pull request Jul 4, 2024
Add ElementType.RECORD_COMPONENT to NestedConfigurationProperty and
implement isMarkedAsNested for RecordParameterPropertyDescriptor.

This will allow nested records to be properly harvested for their
properties.

See gh-41251
@mhalbritter
Copy link
Contributor

Thanks very much!

@mhalbritter mhalbritter modified the milestones: 3.3.x, 3.3.2 Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants