Skip to content

Conversation

@Develer
Copy link
Contributor

@Develer Develer commented Nov 12, 2025

What is this feature?

This PR removes the addFieldFromCalculationStatFunctions feature toggle which was at GA stage and enabled by default.

Why is this feature being removed?

The feature toggle has reached General Availability and is enabled by default with expression: "true". Following the feature toggle lifecycle, GA features that are stable and enabled by default should be removed to reduce technical debt and simplify the codebase.

What does this PR change?

  • Removed the feature toggle definition from pkg/services/featuremgmt/registry.go
  • Updated CalculateFieldTransformerEditor.tsx to always include cumulative and window functions in calculation modes
  • Removed unused config import from the editor component
  • Removed documentation entry from feature toggles index
  • Regenerated all generated files (toggles_gen.go, toggles_gen.csv, toggles_gen.json, featureToggles.gen.ts)

Impact

After this change, cumulative and window functions will be permanently available in the "Add field from calculation" transformation. Users will no longer be able to disable this functionality via the feature toggle.

Testing

  • ✅ All feature management tests pass
  • ✅ No linter errors introduced
  • ✅ Generated files successfully updated

The addFieldFromCalculationStatFunctions feature toggle was at GA stage
and enabled by default. This commit removes the toggle and makes the
cumulative and window functions permanently available in the add field
from calculation transformation.

Changes:
- Removed feature toggle definition from registry.go
- Updated CalculateFieldTransformerEditor to always include cumulative and window functions
- Removed unused config import
- Removed documentation entry
- Regenerated all generated files (toggles_gen.go, toggles_gen.csv, toggles_gen.json, featureToggles.gen.ts)
@Develer Develer requested review from a team as code owners November 12, 2025 14:18
@Develer Develer requested review from gelicia and kylebrandt and removed request for a team November 12, 2025 14:18
@github-actions github-actions bot added this to the 12.4.x milestone Nov 12, 2025
@Develer Develer self-assigned this Nov 12, 2025
@Develer Develer added the no-changelog Skip including change in changelog/release notes label Nov 12, 2025
@github-actions github-actions bot added area/backend area/frontend type/docs Flags the technical writing team for documentation support; auto adds to org-wide docs project labels Nov 12, 2025
| `logsContextDatasourceUi` | Allow datasource to provide custom UI for context view | Yes |
| `lokiQuerySplitting` | Split large interval queries into subqueries with smaller time intervals | Yes |
| `influxdbBackendMigration` | Query InfluxDB InfluxQL without the proxy | Yes |
| `dataplaneFrontendFallback` | Support dataplane contract field name change for transformations and field name matchers where the name is different | Yes |

Check failure

Code scanning / Vale

Did you really mean 'dataplane'? The Grafana dictionary might not know of this word yet Error documentation

Did you really mean 'dataplane'? The Grafana dictionary might not know of this word yet
| `logsExploreTableVisualisation` | A table visualisation for logs in Explore | Yes |
| `awsDatasourcesTempCredentials` | Support temporary security credentials in AWS plugins for Grafana Cloud customers | Yes |
| `transformationsRedesign` | Enables the transformations redesign | Yes |
| `awsAsyncQueryCaching` | Enable caching for async queries for Redshift and Athena. Requires that the datasource has caching and async query support enabled | Yes |

Check failure

Code scanning / Vale

Did you really mean 'async'? The Grafana dictionary might not know of this word yet Error documentation

Did you really mean 'async'? The Grafana dictionary might not know of this word yet
| `logsExploreTableVisualisation` | A table visualisation for logs in Explore | Yes |
| `awsDatasourcesTempCredentials` | Support temporary security credentials in AWS plugins for Grafana Cloud customers | Yes |
| `transformationsRedesign` | Enables the transformations redesign | Yes |
| `awsAsyncQueryCaching` | Enable caching for async queries for Redshift and Athena. Requires that the datasource has caching and async query support enabled | Yes |

Check failure

Code scanning / Vale

Did you really mean 'async'? The Grafana dictionary might not know of this word yet Error documentation

Did you really mean 'async'? The Grafana dictionary might not know of this word yet
| `awsAsyncQueryCaching` | Enable caching for async queries for Redshift and Athena. Requires that the datasource has caching and async query support enabled | Yes |
| `dashgpt` | Enable AI powered features in dashboards | Yes |
| `formatString` | Enable format string transformer | Yes |
| `kubernetesDashboards` | Use the kubernetes API in the frontend for dashboards | Yes |

Check failure

Code scanning / Vale

Did you really mean 'kubernetes'? The Grafana dictionary might not know of this word yet Error documentation

Did you really mean 'kubernetes'? The Grafana dictionary might not know of this word yet
| `pinNavItems` | Enables pinning of nav items | Yes |
| `ssoSettingsLDAP` | Use the new SSO Settings API to configure LDAP | Yes |
| `cloudWatchRoundUpEndTime` | Round up end time for metric queries to the next minute to avoid missing data | Yes |
| `newFiltersUI` | Enables new combobox style UI for the Ad hoc filters variable in scenes architecture | Yes |

Check failure

Code scanning / Vale

Did you really mean 'combobox'? The Grafana dictionary might not know of this word yet Error documentation

Did you really mean 'combobox'? The Grafana dictionary might not know of this word yet
| `dashboardScene` | Enables dashboard rendering using scenes for all roles | Yes |
| `logsInfiniteScrolling` | Enables infinite scrolling for the Logs panel in Explore and Dashboards | Yes |
| `logRowsPopoverMenu` | Enable filtering menu displayed when text of a log line is selected | Yes |
| `alertingQueryOptimization` | Optimizes eligible queries in order to reduce load on datasources | |

Check warning

Code scanning / Vale

Use 'to' instead of 'in order to'.. For more information, refer to https://grafana.com/docs/writers-toolkit/write/style-guide/word-list/. To fix this, Replace the matched content with one of the following: to. Warning documentation

Use 'to' instead of 'in order to'.. For more information, refer to https://grafana.com/docs/writers-toolkit/write/style-guide/word-list/. To fix this, Replace the matched content with one of the following: to.
| `dashboardScene` | Enables dashboard rendering using scenes for all roles | Yes |
| `logsInfiniteScrolling` | Enables infinite scrolling for the Logs panel in Explore and Dashboards | Yes |
| `logRowsPopoverMenu` | Enable filtering menu displayed when text of a log line is selected | Yes |
| `alertingQueryOptimization` | Optimizes eligible queries in order to reduce load on datasources | |

Check warning

Code scanning / Vale

Use 'data sources' instead of 'datasources'.. For more information, refer to https://grafana.com/docs/writers-toolkit/write/style-guide/word-list/. To fix this, Replace the matched content with one of the following: data sources. Warning documentation

Use 'data sources' instead of 'datasources'.. For more information, refer to https://grafana.com/docs/writers-toolkit/write/style-guide/word-list/. To fix this, Replace the matched content with one of the following: data sources.
| `onPremToCloudMigrations` | Enable the Grafana Migration Assistant, which helps you easily migrate various on-prem resources to your Grafana Cloud stack. | Yes |
| `groupToNestedTableTransformation` | Enables the group to nested table transformation | Yes |
| `newPDFRendering` | New implementation for the dashboard-to-PDF rendering | Yes |
| `tlsMemcached` | Use TLS-enabled memcached in the enterprise caching feature | Yes |

Check warning

Code scanning / Vale

Use 'Memcached' instead of 'memcached'.. For more information, refer to https://grafana.com/docs/writers-toolkit/write/style-guide/word-list/. To fix this, Replace the matched content with one of the following: Memcached. Warning documentation

Use 'Memcached' instead of 'memcached'.. For more information, refer to https://grafana.com/docs/writers-toolkit/write/style-guide/word-list/. To fix this, Replace the matched content with one of the following: Memcached.
| `pluginsSriChecks` | Enables SRI checks for plugin assets | |
| `azureMonitorDisableLogLimit` | Disables the log limit restriction for Azure Monitor when true. The limit is enabled by default. | |
| `alertingUIOptimizeReducer` | Enables removing the reducer from the alerting UI when creating a new alert rule and using instant query | Yes |
| `azureMonitorEnableUserAuth` | Enables user auth for Azure Monitor datasource only | Yes |

Check warning

Code scanning / Vale

Use 'data source' instead of 'datasource'.. For more information, refer to https://grafana.com/docs/writers-toolkit/write/style-guide/word-list/. To fix this, Replace the matched content with one of the following: data source. Warning documentation

Use 'data source' instead of 'datasource'.. For more information, refer to https://grafana.com/docs/writers-toolkit/write/style-guide/word-list/. To fix this, Replace the matched content with one of the following: data source.
| `grafanaAssistantInProfilesDrilldown` | Enables integration with Grafana Assistant in Profiles Drilldown | Yes |
| `sharingDashboardImage` | Enables image sharing functionality for dashboards | Yes |
| `tabularNumbers` | Use fixed-width numbers globally in the UI | |
| `tempoSearchBackendMigration` | Run search queries through the tempo backend | |

Check warning

Code scanning / Vale

Use 'Tempo' instead of 'tempo'.. For more information, refer to https://grafana.com/docs/writers-toolkit/write/style-guide/word-list/. To fix this, Replace the matched content with one of the following: Tempo. Warning documentation

Use 'Tempo' instead of 'tempo'.. For more information, refer to https://grafana.com/docs/writers-toolkit/write/style-guide/word-list/. To fix this, Replace the matched content with one of the following: Tempo.
@github-actions
Copy link
Contributor

💻 Deploy preview available (Remove addFieldFromCalculationStatFunctions feature toggle):

@Develer Develer changed the title Remove addFieldFromCalculationStatFunctions feature toggle Feature toggle: Remove addFieldFromCalculationStatFunctions feature toggle Nov 12, 2025
Copy link
Contributor

@alexjonspencer1 alexjonspencer1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optimistically approving, but it's quite hard to read with all of the GitHub alert comments turned on. Can you clean it up and verify the changes one more time on your end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/backend area/frontend no-changelog Skip including change in changelog/release notes type/docs Flags the technical writing team for documentation support; auto adds to org-wide docs project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants