From 3ca7976ee5b264c250d6f2ffdfba531c98689aae Mon Sep 17 00:00:00 2001 From: Nathan Marrs Date: Wed, 10 Jul 2024 11:08:41 -0600 Subject: [PATCH] Transformations: Promote group to nested table as generally available (#90253) --- .../configure-grafana/feature-toggles/index.md | 2 +- pkg/services/featuremgmt/registry.go | 3 ++- pkg/services/featuremgmt/toggles_gen.csv | 2 +- pkg/services/featuremgmt/toggles_gen.json | 12 ++++++++---- .../editors/GroupToNestedTableTransformerEditor.tsx | 5 +++-- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md index 10ae62a4035..6025f8ec300 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -61,6 +61,7 @@ Most [generally available](https://grafana.com/docs/release-life-cycle/#general- | `logRowsPopoverMenu` | Enable filtering menu displayed when text of a log line is selected | Yes | | `lokiQueryHints` | Enables query hints for Loki | Yes | | `alertingQueryOptimization` | Optimizes eligible queries in order to reduce load on datasources | | +| `groupToNestedTableTransformation` | Enables the group to nested table transformation | Yes | | `cloudWatchNewLabelParsing` | Updates CloudWatch label parsing to be more accurate | Yes | | `pluginProxyPreserveTrailingSlash` | Preserve plugin proxy trailing slash. | | | `cloudWatchRoundUpEndTime` | Round up end time for metric queries to the next minute to avoid missing data | Yes | @@ -97,7 +98,6 @@ Most [generally available](https://grafana.com/docs/release-life-cycle/#general- | `pdfTables` | Enables generating table data as PDF in reporting | | `canvasPanelPanZoom` | Allow pan and zoom in canvas panel | | `regressionTransformation` | Enables regression analysis transformation | -| `groupToNestedTableTransformation` | Enables the group to nested table transformation | | `newPDFRendering` | New implementation for the dashboard-to-PDF rendering | | `ssoSettingsSAML` | Use the new SSO Settings API to configure the SAML connector | | `openSearchBackendFlowEnabled` | Enables the backend query flow for Open Search datasource plugin | diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 2dd1ee5c8d1..fba8484d44c 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -1070,9 +1070,10 @@ var ( { Name: "groupToNestedTableTransformation", Description: "Enables the group to nested table transformation", - Stage: FeatureStagePublicPreview, + Stage: FeatureStageGeneralAvailability, FrontendOnly: true, Owner: grafanaDatavizSquad, + Expression: "true", // enabled by default, }, { Name: "newPDFRendering", diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index 366c2b4eace..77f56ff125a 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -141,7 +141,7 @@ alertingSaveStatePeriodic,privatePreview,@grafana/alerting-squad,false,false,fal promQLScope,experimental,@grafana/observability-metrics,false,false,false sqlExpressions,experimental,@grafana/grafana-app-platform-squad,false,false,false nodeGraphDotLayout,experimental,@grafana/observability-traces-and-profiling,false,false,true -groupToNestedTableTransformation,preview,@grafana/dataviz-squad,false,false,true +groupToNestedTableTransformation,GA,@grafana/dataviz-squad,false,false,true newPDFRendering,preview,@grafana/sharing-squad,false,false,false tlsMemcached,experimental,@grafana/grafana-operator-experience-squad,false,false,false kubernetesAggregator,experimental,@grafana/grafana-app-platform-squad,false,true,false diff --git a/pkg/services/featuremgmt/toggles_gen.json b/pkg/services/featuremgmt/toggles_gen.json index 98e7bc208c6..694d802779a 100644 --- a/pkg/services/featuremgmt/toggles_gen.json +++ b/pkg/services/featuremgmt/toggles_gen.json @@ -1220,14 +1220,18 @@ { "metadata": { "name": "groupToNestedTableTransformation", - "resourceVersion": "1718727528075", - "creationTimestamp": "2024-02-07T14:28:26Z" + "resourceVersion": "1720568606781", + "creationTimestamp": "2024-02-07T14:28:26Z", + "annotations": { + "grafana.app/updatedTimestamp": "2024-07-09 23:43:26.781894 +0000 UTC" + } }, "spec": { "description": "Enables the group to nested table transformation", - "stage": "preview", + "stage": "GA", "codeowner": "@grafana/dataviz-squad", - "frontend": true + "frontend": true, + "expression": "true" } }, { diff --git a/public/app/features/transformers/editors/GroupToNestedTableTransformerEditor.tsx b/public/app/features/transformers/editors/GroupToNestedTableTransformerEditor.tsx index da5db299900..17170be06cc 100644 --- a/public/app/features/transformers/editors/GroupToNestedTableTransformerEditor.tsx +++ b/public/app/features/transformers/editors/GroupToNestedTableTransformerEditor.tsx @@ -10,6 +10,7 @@ import { TransformerUIProps, TransformerCategory, GrafanaTheme2, + PluginState, } from '@grafana/data'; import { GroupByFieldOptions, @@ -20,8 +21,7 @@ import { GroupToNestedTableTransformerOptions, SHOW_NESTED_HEADERS_DEFAULT, } from '@grafana/data/src/transformations/transformers/groupToNestedTable'; -import { Stack } from '@grafana/experimental'; -import { useTheme2, Select, StatsPicker, InlineField, Field, Switch, Alert } from '@grafana/ui'; +import { useTheme2, Select, StatsPicker, InlineField, Field, Switch, Alert, Stack } from '@grafana/ui'; import { useAllFieldNamesFromDataFrames } from '../utils'; @@ -182,4 +182,5 @@ export const groupToNestedTableTransformRegistryItem: TransformerRegistryItem