Bug 1723670 - [RFE] print applied filter on task export
Summary: [RFE] print applied filter on task export
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Tasks Plugin
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified vote
Target Milestone: 6.7.0
Assignee: Adam Ruzicka
QA Contact: Peter Ondrejka
Depends On:
TreeView+ depends on / blocked
Reported: 2019-06-25 06:33 UTC by Steffen Froemer
Modified: 2020-04-14 13:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2020-04-14 13:24:36 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 27161 0 Normal Closed print applied filter on task export 2020-05-25 07:13:09 UTC
Red Hat Product Errata RHSA-2020:1454 0 None None None 2020-04-14 13:24:59 UTC

Description Steffen Froemer 2019-06-25 06:33:20 UTC
1. Proposed title of this feature request
[RFE] print applied filter on task export

3. What is the nature and description of the request?
There are different filters, some are default, some are configured using ENV variables when running task export. But it's not always clear, what type of filter is applied.

for example:
1) foreman-rake foreman_tasks:export_tasks TASK_SEARCH=all TASK_DAYS=3  -> 16 tasks
2) foreman-rake foreman_tasks:export_tasks TASK_SEARCH='' TASK_DAYS=3   -> 2822 tasks
3) foreman-rake foreman_tasks:export_tasks TASK_SEARCH=ALL TASK_DAYS=3  -> 16 tasks
4) foreman-rake foreman_tasks:export_tasks TASK_DAYS=3                  -> 2835 tasks
5) foreman-rake foreman_tasks:export_tasks                              -> 7396 tasks
6) foreman-rake foreman_tasks:export_tasks TASK_SEARCH=''               -> 32153 tasks

4. Why does the customer need this? (List the business requirements here)
To avoid confusion and mistakes

5. How would the customer like to achieve this? (List the functional requirements here)
Print the applied filter when running the command. Similar to cleanup-task 

     foreman-rake  foreman_tasks:cleanup NOOP=true VERBOSE=true AFTER=60d TASK_SEARCH=''
     [noop] deleting all tasks matching filter started_at < "2019-04-25 09:12:13" AND state = stopped

6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.
When the command is executed, it should print the applied filter on stdout.

7. Is there already an existing RFE upstream or in Red Hat Bugzilla?

8. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?

9. Is the sales team involved in this request and do they have any additional input?

10. List any affected packages or components.

11. Would the customer be able to assist in testing this functionality if implemented?

Comment 4 Adam Ruzicka 2019-06-26 07:52:41 UTC
Created redmine issue http://projects.theforeman.org/issues/27161 from this bug

Comment 5 Bryan Kearney 2019-06-26 14:07:27 UTC
Upstream bug assigned to aruzicka@redhat.com

Comment 6 Bryan Kearney 2019-06-26 14:07:29 UTC
Upstream bug assigned to aruzicka@redhat.com

Comment 7 Bryan Kearney 2019-07-17 18:07:37 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27161 has been resolved.

Comment 8 Peter Ondrejka 2020-01-03 09:53:24 UTC
Verified on Sat 6.7 snap 7 using examples from the problem description

Comment 11 errata-xmlrpc 2020-04-14 13:24:36 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, and where to find the updated
files, follow the link below.

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


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