Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GUI] Run actions availability configuration #3888

Open
rodichenko opened this issue Jan 31, 2025 · 0 comments
Open

[GUI] Run actions availability configuration #3888

rodichenko opened this issue Jan 31, 2025 · 0 comments
Assignees
Labels
kind/enhancement New feature or request

Comments

@rodichenko
Copy link
Contributor

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:

  • RERUN
  • PAUSE
  • RESUME
  • STOP
  • CONTINUE
  • COMMIT
  • MONITOR
  • EXPORT_LOGS
  • BROWSE

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:

  • PARAMETER1 is "SOME VALUE WITH SPACES" or PARAMETER2 is not set
  • and PARAMETR4 value is not "VALUE_WITHOUT_SPACES"
@rodichenko rodichenko added the kind/enhancement New feature or request label Jan 31, 2025
@rodichenko rodichenko self-assigned this Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant