influxdata / influxdata/ui

Share a Script or Script Properties

Open
#5,693 3 comments 0 reactions 0 assignees View on GitHub
needs design 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 share a script with others in my organization and make my script available via the Invocable URL feature so that it can be used by others and not just myself\.

## Acceptance Criteria

- A sharing option or script properties option will be available within the script editor

- The option will only be available when the script has been saved

- When the option has been selected the user will see an option to "make this script available to others in my organization"

- When the sharing option has been selected the user will see an option to "share as an invocable script"

- When the "share as an invocable script" option is selected, the user will be shown the invocable script URL

- When the "share as an invocable script" option is selected, the user will be shown the invocable script ID

- When the user is shown the invocable script URL or ID, they will be given an option to "copy to clipboard"

## Notes

- We may need some metadata to state whether a user has chosen to make a script available as a URL \(even if we don't enforce it behind the scenes and allow any script to be invoked\) so that we can warn the user if they decide to try to change the name \(when it has been previously invoked\)

- We could also consider updating the underlying invocable script API to update this metadata when a script has been invoked so that we an also check that metadata and warn if the user tries to rename the script

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.