Project

General

Profile

Bug #21283

Listing errata for host groups does not work unless host and content facet have the same id

Added by Justin Sherrill over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Errata Management
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

1. register a host with subscription-manager
2. re-register the host (this should ensure a host and its content facet do not have the same id)
3. setup the host and repos so the host has installable errata
4. Add the host to a host group
5. on the host collection details page try to list errata

the list will be blank


Related issues

Related to Katello - Bug #21271: Irrelevant Errata count in Bulk Actions Duplicate2017-10-10

Associated revisions

Revision 05ac66ec (diff)
Added by Justin Sherrill over 4 years ago

Fixes #21283 - correct errata query for content facet

The installable errata query for a list of hosts
mistakenly did a subquery on content_facet_id =
host_id, which would work occasionally but not
in actual environments.

This was exacerbated by the fact that our fixtures
for hosts and content_facets used the same names
(:one, :two), which means they have the same ids.
Thus this commit also changes that for content_facets

History

#1 Updated by The Foreman Bot over 4 years ago

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

#2 Updated by Brad Buckingham over 4 years ago

  • Status changed from Ready For Testing to Closed

Moving to closed as PR merged.

#3 Updated by The Foreman Bot over 4 years ago

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

#4 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) set to 250
  • Pull request deleted (https://github.com/Katello/katello/pull/7001)

#5 Updated by Justin Sherrill over 4 years ago

  • Related to Bug #21271: Irrelevant Errata count in Bulk Actions added

#6 Updated by Justin Sherrill over 4 years ago

  • Bugzilla link set to 1546074

Also available in: Atom PDF