Transformations: Promote format string as generally available (#91161)

This commit is contained in:
Nathan Marrs
2024-07-30 20:10:07 -06:00
committed by GitHub
parent 30d4a4249c
commit fc1139e51a
6 changed files with 13 additions and 12 deletions

View File

@@ -563,8 +563,6 @@ Use this transformation to customize the output of a string field. This transfor
This transformation provides a convenient way to standardize and tailor the presentation of string data for better visualization and analysis.
> **Note:** This transformation is currently in public preview. Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available. Enable the `formatString` feature toggle in Grafana to use this feature. Contact Grafana Support to enable this feature in Grafana Cloud.
### Format time
Use this transformation to customize the output of a time field. Output can be formatted using [Moment.js format strings](https://momentjs.com/docs/#/displaying/). For example, if you want to display only the year of a time field, the format string 'YYYY' can be used to show the calendar year (for example, 1999 or 2012).

View File

@@ -47,6 +47,7 @@ Most [generally available](https://grafana.com/docs/release-life-cycle/#general-
| `dashgpt` | Enable AI powered features in dashboards | Yes |
| `alertingInsights` | Show the new alerting insights landing page | Yes |
| `panelMonitoring` | Enables panel monitoring through logs and measurements | Yes |
| `formatString` | Enable format string transformer | Yes |
| `transformationsVariableSupport` | Allows using variables in transformations | Yes |
| `kubernetesPlaylists` | Use the kubernetes API in the frontend for playlists, and route /api/playlist requests to k8s | Yes |
| `recoveryThreshold` | Enables feature recovery threshold (aka hysteresis) for threshold server-side expression | Yes |
@@ -91,7 +92,6 @@ Most [generally available](https://grafana.com/docs/release-life-cycle/#general-
| `sqlDatasourceDatabaseSelection` | Enables previous SQL data source dataset dropdown behavior |
| `reportingRetries` | Enables rendering retries for the reporting feature |
| `externalServiceAccounts` | Automatic service account and token setup for plugins |
| `formatString` | Enable format string transformer |
| `cloudWatchBatchQueries` | Runs CloudWatch metrics queries as separate batches |
| `teamHttpHeaders` | Enables Team LBAC for datasources to apply team headers to the client requests |
| `pdfTables` | Enables generating table data as PDF in reporting |

View File

@@ -693,9 +693,10 @@ var (
{
Name: "formatString",
Description: "Enable format string transformer",
Stage: FeatureStagePublicPreview,
Stage: FeatureStageGeneralAvailability,
FrontendOnly: true,
Owner: grafanaDatavizSquad,
Expression: "true", // enabled by default
},
{
Name: "transformationsVariableSupport",

View File

@@ -90,7 +90,7 @@ externalServiceAccounts,preview,@grafana/identity-access-team,false,false,false
panelMonitoring,GA,@grafana/dataviz-squad,false,false,true
enableNativeHTTPHistogram,experimental,@grafana/grafana-backend-services-squad,false,true,false
disableClassicHTTPHistogram,experimental,@grafana/grafana-backend-services-squad,false,true,false
formatString,preview,@grafana/dataviz-squad,false,false,true
formatString,GA,@grafana/dataviz-squad,false,false,true
transformationsVariableSupport,GA,@grafana/dataviz-squad,false,false,true
kubernetesPlaylists,GA,@grafana/grafana-app-platform-squad,false,true,false
kubernetesSnapshots,experimental,@grafana/grafana-app-platform-squad,false,true,false
1 Name Stage Owner requiresDevMode RequiresRestart FrontendOnly
90 panelMonitoring GA @grafana/dataviz-squad false false true
91 enableNativeHTTPHistogram experimental @grafana/grafana-backend-services-squad false true false
92 disableClassicHTTPHistogram experimental @grafana/grafana-backend-services-squad false true false
93 formatString preview GA @grafana/dataviz-squad false false true
94 transformationsVariableSupport GA @grafana/dataviz-squad false false true
95 kubernetesPlaylists GA @grafana/grafana-app-platform-squad false true false
96 kubernetesSnapshots experimental @grafana/grafana-app-platform-squad false true false

View File

@@ -1147,14 +1147,18 @@
{
"metadata": {
"name": "formatString",
"resourceVersion": "1718727528075",
"creationTimestamp": "2023-10-13T18:17:12Z"
"resourceVersion": "1722290290367",
"creationTimestamp": "2023-10-13T18:17:12Z",
"annotations": {
"grafana.app/updatedTimestamp": "2024-07-29 21:58:10.367328 +0000 UTC"
}
},
"spec": {
"description": "Enable format string transformer",
"stage": "preview",
"stage": "GA",
"codeowner": "@grafana/dataviz-squad",
"frontend": true
"frontend": true,
"expression": "true"
}
},
{

View File

@@ -505,9 +505,7 @@ Use this transformation to customize the output of a string field. This transfor
- **Trim** - Removes all leading and trailing spaces from the string.
- **Substring** - Returns a substring of the string, using the specified start and end positions.
This transformation provides a convenient way to standardize and tailor the presentation of string data for better visualization and analysis.
> **Note:** This transformation is currently in public preview. Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available. Enable the \`formatString\` feature toggle in Grafana to use this feature. Contact Grafana Support to enable this feature in Grafana Cloud.`;
This transformation provides a convenient way to standardize and tailor the presentation of string data for better visualization and analysis.`;
},
},
formatTime: {