-
Notifications
You must be signed in to change notification settings - Fork 442
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
Updating the update_model
decorator
#2136
Conversation
This allows us to get rid of some now unnecessary checks/exlusions of these fields in our update methods, e.g. |
E2E template updates in |
E2E template updates in |
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the WalkthroughThe recent updates across various functions in the ZenML codebase involve removing Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@coderabbitai review |
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (3)
- src/zenml/client.py (3 hunks)
- src/zenml/models/v2/base/update.py (2 hunks)
- src/zenml/stack/flavor_registry.py (1 hunks)
Additional comments: 4
src/zenml/client.py (2)
1136-1140: The removal of
workspace
anduser
from theStackUpdate
model is consistent with the PR's objective. However, ensure that this change is reflected across all usages ofStackUpdate
in the codebase to prevent runtime errors.1631-1635: The removal of
workspace
anduser
from theComponentUpdate
model aligns with the PR's objective. Similar to theStackUpdate
model, verify that all usages ofComponentUpdate
have been updated accordingly.src/zenml/models/v2/base/update.py (1)
- 38-50: The
update_model
decorator function correctly removes theworkspace
anduser
fields and sets theextra
attribute toExtra.forbid
, which enforces the restriction that no additional fields are allowed. This change should be cross-verified with all models that use this decorator to ensure they comply with the new constraints.src/zenml/stack/flavor_registry.py (1)
- 127-134: The update to the
register_builtin_flavors
method to removeworkspace
anduser
before creating theFlavorUpdate
object is in line with the PR's objective. Ensure that theFlavorUpdate
model and any related logic are compatible with this change.
E2E template updates in |
* new update models * dont update the user of the stack * minor fixes * Auto-update of E2E template * minor fixes * Auto-update of E2E template * fixing some tests * revert sql zen store cahnges * Auto-update of E2E template * added the missing ignore * fixes based on failing integration tests --------- Co-authored-by: GitHub Actions <[email protected]> Co-authored-by: Alex Strick van Linschoten <[email protected]> Co-authored-by: Andrei Vishniakov <[email protected]>
Describe changes
I implemented small changes to the
update_model
decorator. The fieldsworkspace
anduser
are not allowed anymore and you can not provide additional values.Pre-requisites
Please ensure you have done the following:
develop
and the open PR is targetingdevelop
. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.Types of changes
Summary by CodeRabbit