influxdata / influxdata/ui

Result Option: Pivot Toggle - LSP Integration

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

Description

## User Story

NOTE: This issue will track the implementation of the Pivot Toggle capabilities from the perspective of the integration of the UI elements with the LSP. This issue is responsible for handling the functionality that needs to occur when a user applies the fields to columns toggle to the result options and the query contents need to be edited by the LSP to contain the fields to columns statement.

The associated UI element task is: https://github.com/influxdata/ui/issues/5367

As a user, I want to be able to quickly decide whether I want to see query results via the normal table view, or whether I want to see the raw data pivoted by time so that I can see them both ways without having to manually type a long "pivot" statement into my flux editor to pivot the data.

## Acceptance Criteria

- An option will be available in the UI to enable or disable time pivot

- When time pivot is in use, a pivot statement to pivot by time will be added to the flux when the query is ran

- If the user toggles away from pivoting, the pivot statement will be removed

- A change in this setting on an already run query will result in the query being re-ran

- A hover over this toggle option will show context help for what the feature is (text TBD)

- Pivot will be on by default, unless the user turns it off

## Design
https://www.figma.com/file/0qAntPk5LVangAHguWT74X/Query-Experience-Project?node-id=2190%3A97800

## Notes

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.