Bug #20898

remove params from runtime_message by default

Added by Kavita Gaikwad 14 days ago. Updated 13 days ago.

Status:Closed
Priority:Low
Assigned To:Kavita Gaikwad
Category:-
Target version:next version
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman_maintain/pull/97
Story points-
Velocity based estimate-

Description

Currently, we have added runtime_message method which shows description + param details.
For some procedure, we don't need to show param details in round brackets.

As in "investigate the tasks via UI" procedure it showing below output:

  1. ./bin/foreman-maintain health check
    Running ForemanMaintain::Scenario::FilteredScenario ================================================================================
    Check for verifying syntax for ISP DHCP configurations: [OK]
    --------------------------------------------------------------------------------
    check for paused tasks: [FAIL]
    There are currently 46 paused tasks in the system
    --------------------------------------------------------------------------------
    There are multiple steps to proceed:
    1) resume paused tasks
    2) investigate the tasks via UI ({:search_query=>#<ForemanMaintain::Param:0x000000012cb400 @name=:search_query, @description="", @options={}, @required=false, @flag=false, @block=nil, @array=false>})
    Select step to continue, [n(next), q(quit)] 2
    investigate the tasks via UI:
    Go to https://satellite1.example.com/foreman_tasks/tasks?search=state+%3D+paused+AND+label+%21%5E%28Actions%3A%3ACandlepin%3A%3AListenOnCandlepinEvents+Actions%3A%3AKatello%3A%3AEventQueue%3A%3AMonitor%29
    press ENTER after the paused tasks are resolved.

Associated revisions

Revision 4b8412ca
Added by Kavita Gaikwad 13 days ago

Fixes #20898 - removed params from runtime_message in metadata.rb

History

#1 Updated by Kavita Gaikwad 14 days ago

  • Subject changed from Overide runtime_message method for procedure "investigate the tasks via UI" to Override runtime_message method for procedure "investigate the tasks via UI"

#2 Updated by Kavita Gaikwad 14 days ago

  • Subject changed from Override runtime_message method for procedure "investigate the tasks via UI" to remove params from runtime_message by default

Instead of overriding runtime_message everywhere there is params defined, remove it from runtime_message by default.

#3 Updated by Ivan Necas 13 days ago

  • Target version changed from Team Anurag Iteration 20 to next version

#4 Updated by The Foreman Bot 13 days ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/97 added

#5 Updated by Kavita Gaikwad 13 days ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF