Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-41563

Select-all checkbox bypasses active filters on host details tabs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.18.0
    • Hosts
    • None
    • None
    • None
    • None

      Description of problem:

      In host details packages tab, debs tab, repository sets tab, and module streams tab, the select all checkbox does not respect applied active filters. Some of these tabs (repository sets, module streams) have a workaround by disabling the select all checkbox when applying filters; this workaround is not ideal for the packages tab, however.

      This is apparently an easy fix: follow the pattern ErrataTab already uses by passing filtersQuery to Foreman's useBulkSelect. I believe this will allow us to re-enable select-all on the host details tabs where it becomes disabled, as well.

      How reproducible:

      Always

      Is this issue a regression from an earlier version:

      No

      Steps to Reproduce:

      1. Navigate to a host's Packages tab (try with bootc host to reproduce as below).
      2. Apply a filter using the SelectableDropdown by selecting "Persistent" packages from persistence filter.
      3. Check the "Select all" checkbox in the table header. X packages are selected, matching the filter's package count.
      4. Generate the containerfile install command.

      Actual behavior:
      All packages are selected, ignoring the SelectableDropdown filter selections, despite the checkbox only showing X packages as selected.

      Expected behavior:
      X persistent packages selected. No transient packages should be included in the generated command.

      Business Impact / Additional info:

       

              Unassigned Unassigned
              rhn-engineering-qjames Quinn James
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: