Project

Profile

Help

Issue #6355

closed

Update last_unit_added on all the repos that contain the unit that has changed

Added by ipanova@redhat.com over 4 years ago. Updated over 4 years ago.

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:
Sprint 71
Quarter:

Description

Some content in pulp2 is mutable - errata and modules ( attention: not module-defaults, since they are bound to a repo, i.e repo_id is part of unit_key_fields) There is a controller that updates last_unit_added on all the repos that contain such mutated unit. As a result next publish will be operational and updated repodata will be generated.

https://github.com/pulp/pulp/blob/2-master/server/pulp/server/controllers/repository.py#L692

Example of the usage of this controller in the upload of errata https://github.com/pulp/pulp_rpm/pull/1584/files#diff-12687b797580f9b515df98568ed0efe6R214 Worksflows like sync and copy should be covered as well.

Also available in: Atom PDF