Actions
Issue #6354
closed_last_updated is not set when a module or module-defaults are updated
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.21.2
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
Currently we update the record and then call safe_import.
https://github.com/pulp/pulp_rpm/blob/2-master/plugins/pulp_rpm/plugins/importers/yum/modularity.py#L108 https://github.com/pulp/pulp_rpm/blob/2-master/plugins/pulp_rpm/plugins/importers/yum/modularity.py#L285
This approach does not update the _last_updated field on the unit.
To fix this we need to call save() instead that in the _pre_save_signal updates _last_updated, or we need to manually update that field on the unit.
Actions
Use
save
instead ofupdate
so _last_updated is set properlycloses #6354 https://pulp.plan.io/issues/6354