From 110a41b3db77f9cbe25fda607b07d88cba4ae352 Mon Sep 17 00:00:00 2001 From: Oscar Kilhed Date: Mon, 18 Dec 2023 16:46:03 +0100 Subject: [PATCH] Transformations: Move moving average and cumulative sum to private preview (#79495) * Move moving average and cumulative sum to private preview * update docs * rebuild docs * Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com> --------- Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com> --- .../query-transform-data/transform-data/index.md | 2 +- .../setup-grafana/configure-grafana/feature-toggles/index.md | 1 - pkg/services/featuremgmt/registry.go | 2 +- pkg/services/featuremgmt/toggles_gen.csv | 2 +- public/app/features/transformers/docs/content.ts | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/sources/panels-visualizations/query-transform-data/transform-data/index.md b/docs/sources/panels-visualizations/query-transform-data/transform-data/index.md index fcc16d87058..31f0c941dd9 100644 --- a/docs/sources/panels-visualizations/query-transform-data/transform-data/index.md +++ b/docs/sources/panels-visualizations/query-transform-data/transform-data/index.md @@ -154,7 +154,7 @@ Use this transformation to add a new field calculated from two other fields. Eac - **Alias** - (Optional) Enter the name of your new field. If you leave this blank, then the field will be named to match the calculation. - **Replace all fields** - (Optional) Select this option if you want to hide all other fields and display only your calculated field in the visualization. -> **Note:** **Cumulative functions** and **Window functions** modes are experimental features. Engineering and on-call support is not available. Documentation is either limited or not provided outside of code comments. No SLA is provided. Enable the **addFieldFromCalculationStatFunctions** feature toggle in Grafana to use this feature. Contact Grafana Support to enable this feature in Grafana Cloud. +> **Note:** **Cumulative functions** and **Window functions** modes are currently in private preview. Grafana Labs offers support on a best-effort basis, and breaking changes might occur prior to the feature being made generally available. In the example below, we added two fields together and named them Sum. 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 7f7b9304148..909d83f3d5d 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -153,7 +153,6 @@ Experimental features might be changed or removed without prior notice. | `costManagementUi` | Toggles the display of the cost management ui plugin | | `managedPluginsInstall` | Install managed plugins directly from plugins catalog | | `prometheusPromQAIL` | Prometheus and AI/ML to assist users in creating a query | -| `addFieldFromCalculationStatFunctions` | Add cumulative and window functions to the add field from calculation transformation | | `alertmanagerRemoteSecondary` | Enable Grafana to sync configuration and state with a remote Alertmanager. | | `alertmanagerRemotePrimary` | Enable Grafana to have a remote Alertmanager instance as the primary Alertmanager. | | `alertmanagerRemoteOnly` | Disable the internal Alertmanager and only use the external one defined. | diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index c64d53050e2..2a6508d79e8 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -1094,7 +1094,7 @@ var ( { Name: "addFieldFromCalculationStatFunctions", Description: "Add cumulative and window functions to the add field from calculation transformation", - Stage: FeatureStageExperimental, + Stage: FeatureStagePrivatePreview, FrontendOnly: true, Owner: grafanaBiSquad, Created: time.Date(2023, time.November, 3, 12, 0, 0, 0, time.UTC), diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index d991e72a2d1..be651ca048d 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -128,7 +128,7 @@ pluginsInstrumentationStatusSource,experimental,@grafana/plugins-platform-backen costManagementUi,experimental,@grafana/databases-frontend,2023-10-17,false,false,false,false managedPluginsInstall,experimental,@grafana/plugins-platform-backend,2023-10-18,false,false,false,false prometheusPromQAIL,experimental,@grafana/observability-metrics,2023-10-19,false,false,false,true -addFieldFromCalculationStatFunctions,experimental,@grafana/grafana-bi-squad,2023-11-03,false,false,false,true +addFieldFromCalculationStatFunctions,privatePreview,@grafana/grafana-bi-squad,2023-11-03,false,false,false,true alertmanagerRemoteSecondary,experimental,@grafana/alerting-squad,2023-10-30,false,false,false,false alertmanagerRemotePrimary,experimental,@grafana/alerting-squad,2023-10-30,false,false,false,false alertmanagerRemoteOnly,experimental,@grafana/alerting-squad,2023-10-30,false,false,false,false diff --git a/public/app/features/transformers/docs/content.ts b/public/app/features/transformers/docs/content.ts index dc3a97a1ed2..1f21dc8c39c 100644 --- a/public/app/features/transformers/docs/content.ts +++ b/public/app/features/transformers/docs/content.ts @@ -68,7 +68,7 @@ export const transformationDocsContent: TransformationDocsContentType = { - **Alias** - (Optional) Enter the name of your new field. If you leave this blank, then the field will be named to match the calculation. - **Replace all fields** - (Optional) Select this option if you want to hide all other fields and display only your calculated field in the visualization. - > **Note:** **Cumulative functions** and **Window functions** modes are experimental features. Engineering and on-call support is not available. Documentation is either limited or not provided outside of code comments. No SLA is provided. Enable the **addFieldFromCalculationStatFunctions** feature toggle in Grafana to use this feature. Contact Grafana Support to enable this feature in Grafana Cloud. + > **Note:** **Cumulative functions** and **Window functions** modes are currently in private preview. Grafana Labs offers support on a best-effort basis, and breaking changes might occur prior to the feature being made generally available. In the example below, we added two fields together and named them Sum.