-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[components] Remove AutomationConditionModel in favor of raw python object #26649
base: 12-20-_components_templating_for_asset_attributes
Are you sure you want to change the base?
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
813dc40
to
483060a
Compare
aa2a754
to
63116a8
Compare
automation_condition: Optional[Union[str, AutomationCondition]] = RenderingScope( | ||
Field(None), required_scope={"automation_condition"} | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, this field should actually just be of type Optional[str].
I want to do a followup here where we do something like:
automation_condition: Optional[str] = RenderedField(Optional[AutomationCondition], required_scope={"automation_condition"})
where we can have separate type checking for the rendered value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would be a great followup.
Leave comment to this effect explaining the next steps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is so great
483060a
to
38baab7
Compare
63116a8
to
cf4029f
Compare
38baab7
to
67dc5d0
Compare
cf4029f
to
a5770fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
67dc5d0
to
3deb344
Compare
a5770fd
to
2b0ff0d
Compare
3deb344
to
7eb1d13
Compare
2b0ff0d
to
5fa066b
Compare
Summary & Motivation
As title -- this pattern generally allows us to avoid creating parallel schemas for all of our library objects.
How I Tested These Changes
Changelog
NOCHANGELOG