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

Ignore and warn on unrecognized settings #13624

Merged
merged 2 commits into from
May 31, 2024
Merged

Ignore and warn on unrecognized settings #13624

merged 2 commits into from
May 31, 2024

Conversation

aaazzam
Copy link
Contributor

@aaazzam aaazzam commented May 29, 2024

This PR ignores extraneous settings passed to PrefectSettings.

This still isn't the ideal DX since our settings overall fully rewrites the entire profile on save. So extraneous settings can be written, ignored, but then we overwrite the entire profile settings with only fields we recognize.

While an improvement, a more holistic rewrite of our settings is likely more warranted.

Copy link
Collaborator

@chrisguidry chrisguidry left a comment

Choose a reason for hiding this comment

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

Love it!

@pleek91 pleek91 merged commit b904859 into main May 31, 2024
18 of 27 checks passed
@pleek91 pleek91 deleted the settings-extra-ignore branch May 31, 2024 15:50
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