Project

General

Profile

Bug #26720

Content View publish copying wrong errata

Added by Partha Aji 6 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

  • Sync the following repo -> https://partha.fedorapeople.org/test-repos/dup-errata/
  • Create content view and add the above repo
  • Create the following content view filter -> type-> "Includes", content-type "Errata By ID", with id "RHEA-2010:0002"
  • Create the following content view filter -> type-> "Includes", content-type "Errata By Date And Type", with issued on end date being "01/01/2011"
  • Publish the cv

Expected:
Errata "RHEA-2010:0002" + 6 modular errata copied over -> totaling 7 errata

Actual:
Errata "RHEA-2010:0002" + 6 modular errata + Errata "RHEA-2010:0111" - totalling 8

Errata "RHEA-2010:0002" and Errata "RHEA-2010:0111" share the same rpm -> elephant-0.3.8

Hence both get pulled in. Even though Errata "RHEA-2010:0111" has a 01/01/2012 issue date

Associated revisions

Revision fc8c3f96 (diff)
Added by Partha Aji 4 months ago

Fixes #26720 - CV Publish: copy correct errata (#8112)

  • Fixes #26720 - CV Publish: copy correct errata

This commit makes the following changes to the cv publish process
Before This Commit:
Errata would get copied over to the destination repo if ANY of the
packages belonging to the errata were copied.

After this Commit:
Errata would get copied over to the destination repo only if ALL
of the packages belonging to the errata were copied.

This commit also includes changes to hide modular errata in a content
view filter (since all modules and module rpms are copied over, all the
modular errata will also get copied automatically.)

  • Refs #26720 - added some tests
  • Refs #26720 - Remove modular? - comment
  • Refs #26720 - Renamed empty_errata to partial
  • Refs #26720 - Update zoo repo
  • Refs #26720 - Fixed a unit test

History

#1 Updated by Partha Aji 6 months ago

  • Assignee set to Partha Aji
  • Category set to Content Views

#2 Updated by Partha Aji 5 months ago

  • Bugzilla link set to 1585272

#3 Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8100 added

#4 Updated by Jonathon Turel 5 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.13.0

#5 Updated by The Foreman Bot 5 months ago

  • Pull request https://github.com/Katello/katello/pull/8112 added

#6 Updated by Partha Aji 5 months ago

  • Pull request deleted (https://github.com/Katello/katello/pull/8100)

#7 Updated by Partha Aji 4 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF