Skip to content

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

Merged
liamcervante merged 2 commits intomainfrom
liamcervante/35478
Jul 23, 2024
Merged

config generation: stop editing the original schema when filtering#35484
liamcervante merged 2 commits intomainfrom
liamcervante/35478

Conversation

@liamcervante
Copy link
Copy Markdown
Contributor

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
@liamcervante liamcervante deleted the liamcervante/35478 branch July 23, 2024 06:31
@github-actions
Copy link
Copy Markdown
Contributor

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

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

* config generation: stop editing the original schema when filtering

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

* config generation: stop editing the original schema when filtering

* copywrite headers
@github-actions
Copy link
Copy Markdown
Contributor

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