Bug 2129432 - [RFE] hammer recurring-logic list should display 'Action', 'Last Occurrence' and 'Next Occurrence' field which can be seen on Satellite web UI.
Summary: [RFE] hammer recurring-logic list should display 'Action', 'Last Occurrence' ...
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Tasks Plugin
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.14.0
Assignee: Adam Ruzicka
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-23 18:21 UTC by Anand Kulkarni
Modified: 2023-06-27 09:24 UTC (History)
5 users (show)

Fixed In Version: foreman-tasks-7.2.1, rubygem-hammer_cli_foreman_tasks-0.0.19
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35940 0 Normal Closed Expose additional information about recurring logics in api/recurring_logics#index to reach parity with regular index 2023-06-20 12:43:13 UTC
Foreman Issue Tracker 35941 0 Normal Closed Expose additional information about recurring logics hammer recurring-logic list 2023-06-20 12:43:13 UTC
Red Hat Issue Tracker SAT-14913 0 None None None 2023-06-22 15:12:48 UTC

Description Anand Kulkarni 2022-09-23 18:21:31 UTC
Description of problem:

- The output of the hammer for recurring-logic list is shows ID and cron line, but not the 'Action', 'Last Occurrence' and 'Next Occurrence' columns displayed.

~~~~~
# hammer recurring-logic list
---|-----------|-----------|----------|-------
ID | CRON LINE | ITERATION | END TIME | STATE 
---|-----------|-----------|----------|-------
5  | 0 0 * * * | 51        |          | active
6  | 0 0 * * * | 51        |          | active
1  | 0 0 * * * | 51        |          | active
4  | 0 0 * * * | 51        |          | active
---|-----------|-----------|----------|-------
# hammer recurring-logic list --fields ALL
---|-----------|-----------|----------|-------
ID | CRON LINE | ITERATION | END TIME | STATE 
---|-----------|-----------|----------|-------
5  | 0 0 * * * | 51        |          | active
6  | 0 0 * * * | 51        |          | active
1  | 0 0 * * * | 51        |          | active
4  | 0 0 * * * | 51        |          | active
---|-----------|-----------|----------|-------
~~~~~

- However, the info 'Action', 'Last Occurrence' and 'Next Occurrence' available when we go on Satellite web UI -> Monitor -> Recurring logics. 


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

How reproducible: Yes.

Steps to Reproduce:
1. Check the output of hammer recurring-logic list from Satellite CLI.
2. Compare the output with the info available on Satellite web UI -> Monitor -> Recurring logics.


Actual results:

-The command hammer recurring-logic list shows only ID and cron line which is not useful to get an overview/summary to provide as info.

Expected results:

-The output of hammer recurring-logic list should display more info with additional columns like 'Action', 'Last Occurrence' and 'Next Occurrence'.

Additional info:

Comment 1 Bryan Kearney 2023-01-13 20:03:08 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35940 has been resolved.

Comment 4 Peter Ondrejka 2023-06-23 08:00:25 UTC
Verified on Satellite 6.14 snap 4, the additional fields now show up in the cli output


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