cloud-pipeline
cloud-pipeline copied to clipboard
[GUI] Run actions availability configuration
Run actions availability configuration
Let's introduce ui.run.actions preference that defines the criteria to display / hide run actions ("Continute" / "Monitor" / ...):
- name:
ui.run.actions - type: OBJECT
- group: User Interface
- default value: not set
- visibility: true (visible to everyone)
If action is not present in the ui.run.actions preference, it is considered available (true).
These availability settings extends general action availability rules, meaning that if action is available according to the ui.run.actions, it will not be displayed if other checks are not passed.
Format
Preference value format (key-value dictionary, where keys are Action names and values are true / false / criteria string):
{
"ACTION_1": "action visibility criteria",
"ACTION_2": false,
"ACTION_3": true
}
Action names:
RERUNPAUSERESUMESTOPCONTINUECOMMITMONITOREXPORT_LOGSBROWSE
Criteria format
Availability criteria format: logical expression of run parameters values, e.g.:
PARAMETER1 AND PARAMETER2
Available if both PARAMETER1 and PARAMETER2 parameters are set (not empty and not false).
PARAMETER1 OR NOT PARAMETER2
Available if PARAMETER1 is set or PARAMETER2 is not set.
(PARAMETER1 == "SOME VALUE WITH SPACES" or !PARAMETER2) and PARAMETER4 != VALUE_WITHOUT_SPACES
Available if:
PARAMETER1is "SOME VALUE WITH SPACES" orPARAMETER2is not set- and
PARAMETR4value is not "VALUE_WITHOUT_SPACES"