Project

Profile

Help

Issue #2577

closed

last_unit_added is not updated when units are copied over from another repo

Added by bizhang almost 8 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
2.12.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 15
Quarter:

Description

As a part of #1847[0] last_unit_added is updated for upload and sync. But as pointed out by @wiad[1] we're not updating this when content units are being copied.

Steps to reproduce:

pulp-admin rpm repo create --repo-id=test

pulp-admin rpm repo copy rpm --from-repo-id=zoo --to-repo-id=test

pulp-admin rpm repo search --str-eq "id=test"

Note that last_unit_added is not updated.

[0] https://pulp.plan.io/issues/1847
[1] https://github.com/pulp/pulp/pull/2905#issuecomment-278295468

Also available in: Atom PDF