Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2216757

Summary: CV page needs refresh to get the current filters state
Product: Red Hat Satellite Reporter: Vladimír Sedmík <vsedmik>
Component: Content ViewsAssignee: Samir Jha <sajha>
Status: CLOSED ERRATA QA Contact: Vladimír Sedmík <vsedmik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: pcreech, rlavi, sajha, sbible
Target Milestone: 6.14.0Keywords: Triaged, UserExperience
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-katello-4.9.0.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-08 14:19:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vladimír Sedmík 2023-06-22 13:22:04 UTC
Description of problem:
When adding/removing a filter to/from a content view, we need to refresh the CV page to get the current state of applied filters, otherwise later in the Publish overview modal the previous state is displayed instead of the current one.


Version-Release number of selected component (if applicable):
6.14.0 snap 4


How reproducible:
always


Steps to Reproduce:
1. Have a CV with some content.
2. Add a filter (no matter the type) and publish.
3. Remove the filter added in 2. and publish again.


Actual results:
2. No info about applied filters shown in the publish overview modal.
3. "Filters will be applied to this content view version." info is shown in the publish overview modal.


Expected results:
2. "Filters will be applied to this content view version." should be shown in the publish overview modal.
3. No info about applied filters should be shown in the publish overview modal.


Additional info:
If we refresh the CV page before publishing, the correct state is used for the message.

Comment 1 Samir Jha 2023-06-23 16:44:04 UTC
Created redmine issue https://projects.theforeman.org/issues/36529 from this bug

Comment 3 Bryan Kearney 2023-07-06 16:03:15 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36529 has been resolved.

Comment 5 Vladimír Sedmík 2023-07-13 10:19:01 UTC
Verified in 6.14.0 snap 7.

Steps from comment#0 provide the expected results.

Comment 8 errata-xmlrpc 2023-11-08 14:19:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.14 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:6818