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

config generation: stop editing the original schema when filtering #35484

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

liamcervante
Copy link
Member

This PR updates the schema filtering functions so they don't side-effect edit the original schema with the changes made while filtering. This was causing strange behaviour when generating config, as the value that had already been imported to state started disagreeing with the schema after the config had been generated.

Fixes #35478

Target Release

1.9.3

Draft CHANGELOG entry

BUG FIXES

  • config generation: fix validation error when using nested computed and/or deprecated attributes

@liamcervante liamcervante added the 1.9-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Jul 22, 2024
@liamcervante liamcervante requested a review from a team July 22, 2024 09:51
@liamcervante liamcervante merged commit 6f89b66 into main Jul 23, 2024
6 checks passed
@liamcervante liamcervante deleted the liamcervante/35478 branch July 23, 2024 06:31
Copy link

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

liamcervante added a commit that referenced this pull request Jul 23, 2024
…35484)

* config generation: stop editing the original schema when filtering

* copywrite headers
liamcervante added a commit that referenced this pull request Jul 23, 2024
…35484) (#35488)

* config generation: stop editing the original schema when filtering

* copywrite headers
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1.9-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged
Projects
None yet
2 participants