Project

Profile

Help

Issue #6410

Package_group contains relations of packages from all the repos package_group is in

Added by ipanova@redhat.com 6 months ago. Updated about 2 months ago.

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

Description

  1. create 2 repos and 2 remotes https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/ https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-test-modularity/

  2. sync each repo

  3. Both of the repos have identical PackageGroup with id 'mammals'. Observe that on same instance of Package group all of the relations are kept. From repo A and from repo B

In [2]: PackageGroup.objects.filter(id='mammals')                                                                                                                                                                  
Out[2]: <QuerySet [<PackageGroup: mammals>]>


In [26]: x=PackageGroup.objects.filter(id='mammals')                                                                                                                                                               

In [27]: len(x[0].packages)    
                                                                                                                                                                                    
Out[27]: 22

In [28]: x[0].related_packages.count()                                                                                                                                                                             
Out[28]: 47

From same issue suffers PackageCategories and PackageEnvironments


Related issues

Related to RPM Support - Story #6316: As a user, when I copy package groups, package environments between repositories, their "children" are also copiedCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision 0dc1e13d View on GitHub
Added by ppicka 3 months ago

PackageGroup related_packages removal

PackageGroup doesn't specify package version so any package can be used with list of packages already present in PackageGroup. Also removed relations to PackageGroup and each other for PackageCategory and PackageEnvironment.

[nocoverage]

closes: #6410 https://pulp.plan.io/issues/6410

History

#1 Updated by ipanova@redhat.com 6 months ago

  • Description updated (diff)

#2 Updated by ttereshc 6 months ago

  • Priority changed from Normal to High
  • Sprint/Milestone set to Priority items (outside of planned milestones/releases)
  • Triaged changed from No to Yes

#3 Updated by ppicka 4 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ppicka

#4 Updated by ppicka 4 months ago

  • Related to Story #6316: As a user, when I copy package groups, package environments between repositories, their "children" are also copied added

#5 Updated by pulpbot 3 months ago

  • Status changed from ASSIGNED to POST

#7 Updated by ppicka 3 months ago

  • Status changed from POST to MODIFIED

#8 Updated by ttereshc about 2 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#9 Updated by ttereshc about 2 months ago

  • Sprint/Milestone changed from Priority items (outside of planned milestones/releases) to Pulp RPM 3.5.0

Please register to edit this issue

Also available in: Atom PDF