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

Make task options read only when using Pydantic option validation #3695

Merged
merged 5 commits into from
Nov 14, 2023

Conversation

aditya-balachander
Copy link
Contributor

@aditya-balachander aditya-balachander commented Nov 3, 2023

W-13798912

Made self.options to be Read-Only, if an Options class is defined in the Task. Added usage to documentation. Additionally, corrected ListMetadataTypes in cumulusci/tasks/util.py to use parsed_options instead of options (was missed in the pydantic options commit).

Fixes: #3627

Additionally, fixed ListMetadataTypes to use parsed_options instead of options
@aditya-balachander aditya-balachander self-assigned this Nov 3, 2023
@aditya-balachander aditya-balachander requested a review from a team as a code owner November 3, 2023 07:07
Copy link
Contributor

@jstvz jstvz left a comment

Choose a reason for hiding this comment

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

Looks good, just a minor change (marked with ±).


Emoji Key
Emoji Meaning Blocking
± Requested change Yes
Query (Request for context or explanation) Yes
Query (Request for context or explanation) No
💭 Note/Question to myself or the @-mentioned user. No
"Here's another way to do this:" No
Aesthetic or stylistic quibble No

cumulusci/utils/options.py Outdated Show resolved Hide resolved
cumulusci/utils/tests/test_option_parsing.py Outdated Show resolved Hide resolved
cumulusci/utils/tests/test_option_parsing.py Outdated Show resolved Hide resolved
@jstvz jstvz changed the title Pydantic task option parsing backwards incompatibility Make task options read only when using Pydantic option validation Nov 9, 2023
@jstvz jstvz merged commit 126d790 into main Nov 14, 2023
21 of 22 checks passed
@jstvz jstvz deleted the bug/parsing-backwards-compatibility branch November 14, 2023 22:55
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.

Find And Replace Task Of CumulusCI not working
3 participants