influxdata / influxdata/ui

Collect parameters in use in current script

Open
#6,066 1 comment 0 reactions 0 assignees View on GitHub
team/automation
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

## User Story

As a user I want to be able to test my script as I am creating it, but if I am using params, I don't have an easy way to test unless I hardcode the values in place of where I would normally use a parameter\. When invoking the script via API, I will be passing the parameters, but when using the script editor to build and test my script, I wouldn't be able to do that so I want the editor to look at my script and gather a list of params in use\.

## Acceptance Criteria

- When a user starts to run a script, the software will look through the script to gather a list of params and their names that appear in the script\.

## Notes

- Doing something with these parameters are defined in a separate story

- Vinay states we may be able to pull this from the query via API, but that will require that the script be saved of course:  `/api/v2/scripts/{scriptName}/params`

- We could use that instead of reading through the script, but we would need to force the user to save the script first

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.