Transformations: Add Group to Nested Tables Transformation (#79952)

* Stub group to subframe transformation

* Get proper field grouping

* Mostly working but fields not displaying 😭

* Fix display processing in nested tables

* Modularize and start merging groupBy and groupToSubrame

* Get this working

* Prettier

* Typing things

* More types

* Add option for showing subframe table headers

* Prettier

* Get tests going

* Update tests

* Fix naming and add icons

* Betterer fix

* Prettier

* Fix CSS object syntax

* Prettier

* Stub alert for calcs with grouping, start renaming

* Add logic to show warning message for calculations

* Add calc warning

* Renaming and feature flag

* Rename images

* Prettier

* Fix tests

* Update feature toggle

* Fix error showing extra blank row

* minor code cleanup

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
This commit is contained in:
Kyle Cunningham
2024-02-07 21:28:26 +07:00
committed by GitHub
parent 26bc87b60e
commit 756cd3c28b
17 changed files with 941 additions and 57 deletions

View File

@@ -1310,5 +1310,13 @@ var (
Owner: grafanaObservabilityTracesAndProfilingSquad,
Created: time.Date(2024, time.January, 2, 12, 0, 0, 0, time.UTC),
},
{
Name: "groupToNestedTableTransformation",
Description: "Enables the group to nested table transformation",
Stage: FeatureStagePublicPreview,
FrontendOnly: true,
Owner: grafanaDatavizSquad,
Created: time.Date(2024, time.February, 5, 12, 0, 0, 0, time.UTC),
},
}
)

View File

@@ -154,3 +154,4 @@ onPremToCloudMigrations,experimental,@grafana/grafana-operator-experience-squad,
alertingSaveStatePeriodic,privatePreview,@grafana/alerting-squad,2024-01-22,false,false,false
promQLScope,experimental,@grafana/observability-metrics,2024-01-29,false,false,false
nodeGraphDotLayout,experimental,@grafana/observability-traces-and-profiling,2024-01-02,false,false,true
groupToNestedTableTransformation,preview,@grafana/dataviz-squad,2024-02-05,false,false,true
1 Name Stage Owner Created requiresDevMode RequiresRestart FrontendOnly
154 alertingSaveStatePeriodic privatePreview @grafana/alerting-squad 2024-01-22 false false false
155 promQLScope experimental @grafana/observability-metrics 2024-01-29 false false false
156 nodeGraphDotLayout experimental @grafana/observability-traces-and-profiling 2024-01-02 false false true
157 groupToNestedTableTransformation preview @grafana/dataviz-squad 2024-02-05 false false true

View File

@@ -626,4 +626,8 @@ const (
// FlagNodeGraphDotLayout
// Changed the layout algorithm for the node graph
FlagNodeGraphDotLayout = "nodeGraphDotLayout"
// FlagGroupToNestedTableTransformation
// Enables the group to nested table transformation
FlagGroupToNestedTableTransformation = "groupToNestedTableTransformation"
)