Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Add data_source support so Dialog Options will be dynamic #29

Open
ghost opened this issue Jul 8, 2022 · 0 comments
Open

Add data_source support so Dialog Options will be dynamic #29

ghost opened this issue Jul 8, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ghost
Copy link

ghost commented Jul 8, 2022

Mattermost has data_source field which can be users and channels. We can add one more option which is script. If script is defined at data_source field. OpsTool can execute script to populate options. Script requirements:

  1. Opstool need to pass all environment variables to the script and arguments if defined.
  2. Script should return json array of options.

Sample Json Output

[
  {
    "text": "Option Text",
    "value" "Option Value 1"
  },
  {
    "text": "Option Text 2",
    "value" "Option Value 2"
  }
]
@ghost ghost added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jul 8, 2022
@ghost ghost mentioned this issue Jul 8, 2022
@ghost ghost added this to the 0.0.3 milestone Aug 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

0 participants