-
Notifications
You must be signed in to change notification settings - Fork 643
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
RefreshMixin.refresh() doesn't remove removed attributes #1155
Comments
Before creating a merge request I'd like to know if we feel this is indeed a bug. Doing a Current implementation def _update_attrs(self, new_attrs):
self.__dict__["_updated_attrs"] = {}
self.__dict__["_attrs"].update(new_attrs) The |
This fixes and error, where deleted attributes would not show up Fixes #1155
This fixes and error, where deleted attributes would not show up Fixes #1155
This totally makes sense. There is no need to keep the old state I created #1213 and added a test for it |
Description of the problem, including code/CLI snippet
When attributes disappear from an object on the server
RefreshMixin.refresh()
doesn't remove them.For instance if a job that has artifacts will have an
artifacts_file
attribute. If you call.delete_artifacts()
on it, then call.refresh()
theartifacts_file
attribute will still be there.Expected Behavior
I would expect that the attributes dict on any object should be exactly the same between a freshly retrieved object and an old object after calling
.refresh()
Actual Behavior
They're not equal
Specifications
v2.4.0
v4
13.2.3
The text was updated successfully, but these errors were encountered: