Issue #3233
closedStory #3209: As a user, I have Repository Versions
Version incorrectly says that it removed a content unit
Description
The squash code has a bug. Suppose you have 3 repo versions. Version 1 adds a unit, version 2 removes the unit, and version 3 re-adds the unit. If you remove version 2 then you have 2 RepositoryContent records pointing to version 3—one where version_removed is version 3 (but version_added is still version 1) and one where version_added is version 3. So the unit appears in 'removed' but is still in version 3's content.
Updated by dalley almost 7 years ago
- Sprint/Milestone set to 52
- Triaged changed from No to Yes
Updated by bizhang almost 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to bizhang
Added by werwty almost 7 years ago
Added by werwty almost 7 years ago
Revision b210be34 | View on GitHub
Update repo version squash logic to deal with content removed but readded
Repo version squash should be resolved according to this design: https://github.com/pulp/pulp/pull/3228#issuecomment-347659974
Updated by werwty almost 7 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp|b210be34082674c1addb1b5cb77be0646da07781.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Update repo version squash logic to deal with content removed but readded
Repo version squash should be resolved according to this design: https://github.com/pulp/pulp/pull/3228#issuecomment-347659974
fixes #3233 https://pulp.plan.io/issues/3233