Bug 1684714

Summary: [RFE] Request for WebUI capability to delete multiple web pages of SCAP Compliance Reports from the first screen of SCAP reports
Product: Red Hat Satellite Reporter: Ross Bram <rbram>
Component: SCAP PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Sanket Jagtap <sjagtap>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4.1CC: bkearney, mhulan, oprazak, sgraessl
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-02 12:33:19 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 Ross Bram 2019-03-01 22:09:38 UTC
Description of problem:

I have configured a SCAP Compliance Policy and generated 1000+ Compliance reports.

In the Satellite WebUI, when the number of compliance reports is greater than 1 screen full, add the capability to delete all the compliance reports in the web UI without having to delete them 1 screen-full at a time?

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

How reproducible:
Enable OpenSCAP and set a cron entry to create a large number of reports (1000+).  Notice you cannot delete all the reports from the first screen of Compliance Reports.  You must click on multiple pages to delete all the reports.

Steps to Reproduce:
1. Enable OpenSCAP
foreman-rake foreman_openscap:bulk_upload:default
2. Configure Environments (import all from your FQDN)
3. Create a Host Group and specify the FQDN as the OpenSCAP Capsule
4. Add the Puppet Classes foreman_scap_client and foreman_scap_client::params
5. Create a Compliance Policy
Hosts > Compliance Policies > New Policy
6. Set the Schedule <tab>
Period       Custom
Cron line    */1 * * * *      (for demonstration purposes only, run every 1 min)
7. Assign the policy to a host
8. Configure auto signing of certificates


Actual results:
When over 100+ reports have been generated, notice you can't delete them all from 1 screen in the WebUI.

Expected results:
You admin should be able to delete all Compliance Reports from the WebUI screen listing the first compliance report.

I suggest having a check box at the top of the list of compliance reports.  Once checked, another box on the screen turns blue (it becomes active) and says Delete Reports.  You may add a Confirmation pop-up window that asks to confirm you want to delete all Compliance Reports.

Additional info:
This is the WebUI equivalent of running from the CLI (as root):
for id in `hammer --output csv arf-report list | cut -d, -f1 | sed 's/^[A-Z].*//'`; do hammer arf-report delete --id $id; done

Comment 3 Ondřej Pražák 2019-03-05 08:19:50 UTC
Created redmine issue http://projects.theforeman.org/issues/26231 from this bug

Comment 4 Bryan Kearney 2020-03-04 14:08:22 UTC
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Red Hat Technical Support or your account team. If we do not hear from you, we will close this bug out. Thank you.

Comment 5 Bryan Kearney 2020-04-02 12:33:19 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Red Hat Technical Support. Thank you.