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

Clear root metadata when extending configurations #24118

Conversation

jvandort
Copy link
Member

@jvandort jvandort commented Mar 2, 2023

The hierarchy is saved as an instance variable in configuration metadata. The mutation type for configuration extension
was DEPENDENCIES, which only caused the cached metadata to be reevaluated. This is not sufficient. We add a new mutation
type for HIERARCHY which completely discards the metadata, allowing it to be recalculated and the new hierarchy value
to be passed to the configuration metadata

Fixes #24109

@jvandort jvandort self-assigned this Mar 2, 2023
@jvandort jvandort added this to the 8.0.2 milestone Mar 2, 2023
@jvandort jvandort marked this pull request as ready for review March 2, 2023 14:48
@jvandort jvandort requested a review from a team as a code owner March 2, 2023 14:48
The hierarchy is saved as an instance variable in configuration metadata. The mutation type for configuration extension
was DEPENDENCIES, which only caused the cached metadata to be reevaluated. This is not sufficient. We add a new mutation
type for HIERARCHY which completely discards the metadata, allowing it to be recalculated and the new hierarchy value
to be passed to the configuration metadata
@jvandort jvandort force-pushed the jvandort/iss/24109/clear-metadata-upon-configuration-extension branch from 9542517 to 8fcba91 Compare March 2, 2023 14:51
@jvandort
Copy link
Member Author

jvandort commented Mar 2, 2023

@bot-gradle test this

@bot-gradle
Copy link
Collaborator

I've triggered the following builds for you:

Copy link
Member

@ghale ghale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jvandort
Copy link
Member Author

jvandort commented Mar 2, 2023

@bot-gradle test and merge

@bot-gradle
Copy link
Collaborator

I've triggered a build for you.

@bot-gradle bot-gradle merged commit 79a3a14 into release Mar 2, 2023
1 check passed
@bot-gradle bot-gradle deleted the jvandort/iss/24109/clear-metadata-upon-configuration-extension branch March 2, 2023 18:44
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

5 participants