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

Allows named args to take precendence over param values. #862

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

jwoertink
Copy link
Member

Fixes #764

This flips extracting param values first before setting named args. There could be a case where you might have a "admin" field that's technically permitted, but you want the initial value to be false. So you set a named arg value to be false. Currently, if a user updated the params to manually push that through, it would be set to what they set it to. Now it'll be set to your named arg value.

@jwoertink jwoertink merged commit 335baa2 into main Aug 1, 2022
@jwoertink jwoertink deleted the issues/764 branch August 1, 2022 14:59
@jwoertink jwoertink added the BREAKING CHANGE This will cause a breaking change label Sep 27, 2022
@paulcsmith
Copy link
Member

Great idea 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BREAKING CHANGE This will cause a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Values from named args should take precedence over values from params
3 participants