influxdata / influxdata/ui

Query Modification Injection Behavior

Open
#5,271 1 comment 0 reactions 1 assignee Claimed by @juliajames12 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, after I have made a query using the schema browser, I want to be able to make modifications to the schema browser selections and see my subsequent queries still work so that I can quickly iterate and find different things.

## Acceptance Criteria

- There will be some visual indication to the user representing a block of flux code that will be modified by schema selections (color, separator line, flux comment line, etc.)

- If user has made no modifications to the flux window/flux block, then any schema selection changes that are made will accurately reflect in the updated flux window and will still run correctly

- If user has made modifications to the flux window/reserved block, then the user will be shown a warning that any additional selections from the schema browser will be added to the end of the flux script; from that point on, all schema selections will be appended to the end of the schema

- A visual indicator will be shown to the user to indicate whether or not schema synchronization is still in place or turned off

- The user can make filter level changes without having to remove one filter and then add another (there is a way to change the current query) (possibly add,, remove, replace) options next to each field/tag as you hover over them since checkboxes has been vetoed?

- When a different bucket and/or browser is selected then the from range filter will be completely replaced in the code (not appended) unless the user has made manual modifications to the flux block

- Nice to have: A way for the user to turn off the script/starter sync option with an object click (not just making modifications in the window; that way they can add a 2nd from range filter before they have started to modify the flux code)

## Notes

- This behavior has not been completed decided on yet; readying the user story in case we go this direction

- This is 1 bucket/schema only - if the user wants more than 1 from range selection, then they will need to manually edit the flux code.

- Possible names and or graphics for the indicator: Script Starter ON/OFF? Schema Selection Sync ON/OFF? Left and Right Arrow icons illuminated/de-luminated (yes, I made up a word) - (pointing between the schema browser window and the reserved flux block)

- Injection Behavior Discussion document (item 6 chosen):

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.