Project

Profile

Help

Issue #3961

closed

DeclarativeVersion doesn't respect plugin boundaries in mirror mode

Added by dalley over 6 years ago. Updated almost 5 years ago.

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

Description

Let's say you're using multiple plugins/content types with one repository.

First you sync content into $REPO using $PLUGIN_1, and then you sync more content into $REPO using $PLUGIN_2.

Assuming the latter sync uses mirror mode, all of the content synced by the first sync will be removed. This means that one plugin can easily destroy content from other plugins unless you use "additive" mode only, whereas intuitively I would not expect that to be the case.

If this is intended behavior, we should take care to document this very clearly.

Actions #1

Updated by daviddavis over 6 years ago

One possible way to think of this: it's no different than syncing from two Remotes of the same type. For example, I'd expect the same behavior when syncing from two FileRemotes.

+1 to documenting this.

Actions #2

Updated by bmbouter over 6 years ago

+1 to documenting this, especially for the use case @daviddavis describes.

For the cross-plugin types what if we:

1. Adjusted the ContentUnitUnassociate stage to take an option called 'ignore_unseen_types'. When True, the stage would only unassociate unit types that have also been emitted in the stream at some point. So True, leaves other plugin types untouched.

2. Have DeclarativeVersion expose this as an option and have it default to False.

Actions #3

Updated by CodeHeeler over 6 years ago

  • Triaged changed from No to Yes
Actions #4

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #5

Updated by dalley almost 5 years ago

  • Status changed from NEW to CLOSED - NOTABUG

Typed repositories fixes this

Also available in: Atom PDF