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

Pre-fill script input via linking and/or other transfer methods #893

Open
3 tasks
ckbedwell opened this issue Aug 1, 2024 · 0 comments
Open
3 tasks

Pre-fill script input via linking and/or other transfer methods #893

ckbedwell opened this issue Aug 1, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ckbedwell
Copy link
Contributor

ckbedwell commented Aug 1, 2024

Problem

It would be useful if we were able to pre-fill a script with something other than the default when navigating from another area of the application or somewhere else in Grafana especially (such as the k6 plugin).

One example where this would currently be useful is supporting the check group selection page. We support users clicking the labels for the protocols on the API endpoint card but not on the Scripted or Browser cards

Choose a check type page. It shows the 4 check groups with their supported protocols.

One consideration related to this which should be investigated:

  1. Pre-filling the script via the URL. This could be problematic if the script was very long. It is worth investigating what happens when users have scripts that are somewhere in the region of 8mb even though we don't currently support a script that big (the limit is 128kb right now) and if there are alternative ways we can transfer the script to be pre-filled from another part of Grafana.

Completion criteria

  • The choose-type check cards for Scripted and Browser pre-fill the form correctly.
  • Ideally a URL can be provided or some other demonstration can be provided of where the script has been populated from somewhere outside of the check creation page.
  • Please ensure the appropriate integration tests have been added when submitting the PR.
@ckbedwell ckbedwell added the enhancement New feature or request label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants