[--Dashboard-- data source] AdHoc filtering: Remove feature toggle (#113674)

* Remove dashboardDsAdHocFiltering feature toggle

The dashboardDsAdHocFiltering feature toggle has been enabled by default
and is now in General Availability stage. This commit removes the feature
toggle and makes the AdHoc filtering functionality for the dashboard
datasource permanently available.

Changes:
- Remove feature toggle from registry.go
- Regenerate feature toggle files
- Remove conditional checks in frontend code
- Update tests to reflect permanent enablement
- Always show AdHoc Filters toggle in dashboard query editor
- Always enable dashboard datasource in DataSourcePicker for variables

* Remove unused imports

* Fix Prettier formatting issues
This commit is contained in:
Sam Jewell
2025-11-10 17:17:49 +00:00
committed by GitHub
parent ac9259d6a4
commit c49caead25
11 changed files with 20 additions and 151 deletions
-8
View File
@@ -1942,14 +1942,6 @@ var (
HideFromAdminPage: true,
HideFromDocs: true,
},
{
Name: "dashboardDsAdHocFiltering",
Description: "Enables adhoc filtering support for the dashboard datasource",
Stage: FeatureStageGeneralAvailability,
Owner: grafanaDataProSquad,
FrontendOnly: true,
Expression: "true",
},
{
Name: "dashboardLevelTimeMacros",
Description: "Supports __from and __to macros that always use the dashboard level time range",
-1
View File
@@ -250,7 +250,6 @@ foldersAppPlatformAPI,experimental,@grafana/grafana-search-navigate-organise,fal
otelLogsFormatting,experimental,@grafana/observability-logs,false,false,true
alertingNotificationHistory,experimental,@grafana/alerting-squad,false,false,false
unifiedStorageSearchDualReaderEnabled,experimental,@grafana/search-and-storage,false,false,false
dashboardDsAdHocFiltering,GA,@grafana/datapro,false,false,true
dashboardLevelTimeMacros,experimental,@grafana/dashboards-squad,false,false,true
alertmanagerRemoteSecondaryWithRemoteState,experimental,@grafana/alerting-squad,false,false,false
restrictedPluginApis,experimental,@grafana/plugins-platform-backend,false,false,true
1 Name Stage Owner requiresDevMode RequiresRestart FrontendOnly
250 otelLogsFormatting experimental @grafana/observability-logs false false true
251 alertingNotificationHistory experimental @grafana/alerting-squad false false false
252 unifiedStorageSearchDualReaderEnabled experimental @grafana/search-and-storage false false false
dashboardDsAdHocFiltering GA @grafana/datapro false false true
253 dashboardLevelTimeMacros experimental @grafana/dashboards-squad false false true
254 alertmanagerRemoteSecondaryWithRemoteState experimental @grafana/alerting-squad false false false
255 restrictedPluginApis experimental @grafana/plugins-platform-backend false false true
-4
View File
@@ -1010,10 +1010,6 @@ const (
// Enable dual reader for unified storage search
FlagUnifiedStorageSearchDualReaderEnabled = "unifiedStorageSearchDualReaderEnabled"
// FlagDashboardDsAdHocFiltering
// Enables adhoc filtering support for the dashboard datasource
FlagDashboardDsAdHocFiltering = "dashboardDsAdHocFiltering"
// FlagDashboardLevelTimeMacros
// Supports __from and __to macros that always use the dashboard level time range
FlagDashboardLevelTimeMacros = "dashboardLevelTimeMacros"
@@ -1061,6 +1061,7 @@
"name": "dashboardDsAdHocFiltering",
"resourceVersion": "1756814786992",
"creationTimestamp": "2025-07-23T08:12:25Z",
"deletionTimestamp": "2025-09-27T19:59:33Z",
"annotations": {
"grafana.app/updatedTimestamp": "2025-09-02 12:06:26.992384 +0000 UTC"
}