Project

General

Profile

Actions

Feature #26231

open

Request for WebUI capability to delete multiple web pages of SCAP Compliance Reports from the first screen of SCAP reports

Added by Ondřej Pražák about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Description of problem:

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

In the Foreman 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

No data to display

Actions

Also available in: Atom PDF