Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1684714 - [RFE] Request for WebUI capability to delete multiple web pages of SCAP Compliance Reports from the first screen of SCAP reports
Summary: [RFE] Request for WebUI capability to delete multiple web pages of SCAP Compl...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: SCAP Plugin
Version: 6.4.1
Hardware: x86_64
OS: Linux
unspecified
low vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Sanket Jagtap
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-01 22:09 UTC by Ross Bram
Modified: 2019-03-08 17:40 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Foreman Issue Tracker 26231 None None None 2019-03-05 08:19:51 UTC

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


Note You need to log in before you can comment on or make changes to this bug.