mirror of https://github.com/grafana/grafana.git
				
				
				
			Chore: Remove prometheusConfigOverhaulAuth feature toggle (#98460)
* remove toggle * remove toggle from code
This commit is contained in:
		
							parent
							
								
									83bcd86d18
								
							
						
					
					
						commit
						5be4dfd8c8
					
				|  | @ -40,7 +40,6 @@ Most [generally available](https://grafana.com/docs/release-life-cycle/#general- | ||||||
| | `transformationsRedesign`              | Enables the transformations redesign                                                                                                                               | Yes                | | | `transformationsRedesign`              | Enables the transformations redesign                                                                                                                               | Yes                | | ||||||
| | `traceQLStreaming`                     | Enables response streaming of TraceQL queries of the Tempo data source                                                                                             |                    | | | `traceQLStreaming`                     | Enables response streaming of TraceQL queries of the Tempo data source                                                                                             |                    | | ||||||
| | `awsAsyncQueryCaching`                 | Enable caching for async queries for Redshift and Athena. Requires that the datasource has caching and async query support enabled                                 | Yes                | | | `awsAsyncQueryCaching`                 | Enable caching for async queries for Redshift and Athena. Requires that the datasource has caching and async query support enabled                                 | Yes                | | ||||||
| | `prometheusConfigOverhaulAuth`         | Update the Prometheus configuration page with the new auth component                                                                                               | Yes                | |  | ||||||
| | `alertingNoDataErrorExecution`         | Changes how Alerting state manager handles execution of NoData/Error                                                                                               | Yes                | | | `alertingNoDataErrorExecution`         | Changes how Alerting state manager handles execution of NoData/Error                                                                                               | Yes                | | ||||||
| | `angularDeprecationUI`                 | Display Angular warnings in dashboards and panels                                                                                                                  | Yes                | | | `angularDeprecationUI`                 | Display Angular warnings in dashboards and panels                                                                                                                  | Yes                | | ||||||
| | `dashgpt`                              | Enable AI powered features in dashboards                                                                                                                           | Yes                | | | `dashgpt`                              | Enable AI powered features in dashboards                                                                                                                           | Yes                | | ||||||
|  |  | ||||||
|  | @ -88,7 +88,6 @@ export interface FeatureToggles { | ||||||
|   featureToggleAdminPage?: boolean; |   featureToggleAdminPage?: boolean; | ||||||
|   awsAsyncQueryCaching?: boolean; |   awsAsyncQueryCaching?: boolean; | ||||||
|   permissionsFilterRemoveSubquery?: boolean; |   permissionsFilterRemoveSubquery?: boolean; | ||||||
|   prometheusConfigOverhaulAuth?: boolean; |  | ||||||
|   configurableSchedulerTick?: boolean; |   configurableSchedulerTick?: boolean; | ||||||
|   alertingNoDataErrorExecution?: boolean; |   alertingNoDataErrorExecution?: boolean; | ||||||
|   angularDeprecationUI?: boolean; |   angularDeprecationUI?: boolean; | ||||||
|  |  | ||||||
|  | @ -523,14 +523,6 @@ var ( | ||||||
| 			Stage:       FeatureStageExperimental, | 			Stage:       FeatureStageExperimental, | ||||||
| 			Owner:       grafanaBackendGroup, | 			Owner:       grafanaBackendGroup, | ||||||
| 		}, | 		}, | ||||||
| 		{ |  | ||||||
| 			Name:           "prometheusConfigOverhaulAuth", |  | ||||||
| 			Description:    "Update the Prometheus configuration page with the new auth component", |  | ||||||
| 			Owner:          grafanaObservabilityMetricsSquad, |  | ||||||
| 			Stage:          FeatureStageGeneralAvailability, |  | ||||||
| 			Expression:     "true", // on by default
 |  | ||||||
| 			AllowSelfServe: false, |  | ||||||
| 		}, |  | ||||||
| 		{ | 		{ | ||||||
| 			Name:            "configurableSchedulerTick", | 			Name:            "configurableSchedulerTick", | ||||||
| 			Description:     "Enable changing the scheduler base interval via configuration option unified_alerting.scheduler_tick_interval", | 			Description:     "Enable changing the scheduler base interval via configuration option unified_alerting.scheduler_tick_interval", | ||||||
|  |  | ||||||
|  | @ -69,7 +69,6 @@ grafanaAPIServerEnsureKubectlAccess,experimental,@grafana/grafana-app-platform-s | ||||||
| featureToggleAdminPage,experimental,@grafana/grafana-operator-experience-squad,false,true,false | featureToggleAdminPage,experimental,@grafana/grafana-operator-experience-squad,false,true,false | ||||||
| awsAsyncQueryCaching,GA,@grafana/aws-datasources,false,false,false | awsAsyncQueryCaching,GA,@grafana/aws-datasources,false,false,false | ||||||
| permissionsFilterRemoveSubquery,experimental,@grafana/grafana-backend-group,false,false,false | permissionsFilterRemoveSubquery,experimental,@grafana/grafana-backend-group,false,false,false | ||||||
| prometheusConfigOverhaulAuth,GA,@grafana/observability-metrics,false,false,false |  | ||||||
| configurableSchedulerTick,experimental,@grafana/alerting-squad,false,true,false | configurableSchedulerTick,experimental,@grafana/alerting-squad,false,true,false | ||||||
| alertingNoDataErrorExecution,GA,@grafana/alerting-squad,false,true,false | alertingNoDataErrorExecution,GA,@grafana/alerting-squad,false,true,false | ||||||
| angularDeprecationUI,GA,@grafana/plugins-platform-backend,false,false,true | angularDeprecationUI,GA,@grafana/plugins-platform-backend,false,false,true | ||||||
|  |  | ||||||
| 
 | 
|  | @ -287,10 +287,6 @@ const ( | ||||||
| 	// Alternative permission filter implementation that does not use subqueries for fetching the dashboard folder
 | 	// Alternative permission filter implementation that does not use subqueries for fetching the dashboard folder
 | ||||||
| 	FlagPermissionsFilterRemoveSubquery = "permissionsFilterRemoveSubquery" | 	FlagPermissionsFilterRemoveSubquery = "permissionsFilterRemoveSubquery" | ||||||
| 
 | 
 | ||||||
| 	// FlagPrometheusConfigOverhaulAuth
 |  | ||||||
| 	// Update the Prometheus configuration page with the new auth component
 |  | ||||||
| 	FlagPrometheusConfigOverhaulAuth = "prometheusConfigOverhaulAuth" |  | ||||||
| 
 |  | ||||||
| 	// FlagConfigurableSchedulerTick
 | 	// FlagConfigurableSchedulerTick
 | ||||||
| 	// Enable changing the scheduler base interval via configuration option unified_alerting.scheduler_tick_interval
 | 	// Enable changing the scheduler base interval via configuration option unified_alerting.scheduler_tick_interval
 | ||||||
| 	FlagConfigurableSchedulerTick = "configurableSchedulerTick" | 	FlagConfigurableSchedulerTick = "configurableSchedulerTick" | ||||||
|  |  | ||||||
|  | @ -2904,6 +2904,7 @@ | ||||||
|         "name": "prometheusConfigOverhaulAuth", |         "name": "prometheusConfigOverhaulAuth", | ||||||
|         "resourceVersion": "1720021873452", |         "resourceVersion": "1720021873452", | ||||||
|         "creationTimestamp": "2023-07-26T16:09:53Z", |         "creationTimestamp": "2023-07-26T16:09:53Z", | ||||||
|  |         "deletionTimestamp": "2025-01-02T20:43:41Z", | ||||||
|         "annotations": { |         "annotations": { | ||||||
|           "grafana.app/updatedTimestamp": "2024-07-03 15:51:13.452477 +0000 UTC" |           "grafana.app/updatedTimestamp": "2024-07-03 15:51:13.452477 +0000 UTC" | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  | @ -43,10 +43,6 @@ export const AzureAuthSettings = (props: HttpSettingsBaseProps) => { | ||||||
|     } |     } | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   const prometheusConfigOverhaulAuth = config.featureToggles.prometheusConfigOverhaulAuth; |  | ||||||
| 
 |  | ||||||
|   const labelWidth = prometheusConfigOverhaulAuth ? 24 : 26; |  | ||||||
| 
 |  | ||||||
|   // The auth type needs to be set on the first load of the data source
 |   // The auth type needs to be set on the first load of the data source
 | ||||||
|   useEffectOnce(() => { |   useEffectOnce(() => { | ||||||
|     if (!dataSourceConfig.jsonData.authType) { |     if (!dataSourceConfig.jsonData.authType) { | ||||||
|  | @ -70,15 +66,15 @@ export const AzureAuthSettings = (props: HttpSettingsBaseProps) => { | ||||||
|           <h6>Azure configuration</h6> |           <h6>Azure configuration</h6> | ||||||
|           <div className="gf-form-group"> |           <div className="gf-form-group"> | ||||||
|             <InlineFieldRow> |             <InlineFieldRow> | ||||||
|               <InlineField labelWidth={labelWidth} label="Override AAD audience" disabled={dataSourceConfig.readOnly}> |               <InlineField labelWidth={24} label="Override AAD audience" disabled={dataSourceConfig.readOnly}> | ||||||
|                 <InlineSwitch value={overrideAudienceChecked} onChange={onOverrideAudienceChange} /> |                 <InlineSwitch value={overrideAudienceChecked} onChange={onOverrideAudienceChange} /> | ||||||
|               </InlineField> |               </InlineField> | ||||||
|             </InlineFieldRow> |             </InlineFieldRow> | ||||||
|             {overrideAudienceChecked && ( |             {overrideAudienceChecked && ( | ||||||
|               <InlineFieldRow> |               <InlineFieldRow> | ||||||
|                 <InlineField labelWidth={labelWidth} label="Resource ID" disabled={dataSourceConfig.readOnly}> |                 <InlineField labelWidth={24} label="Resource ID" disabled={dataSourceConfig.readOnly}> | ||||||
|                   <Input |                   <Input | ||||||
|                     className={cx(prometheusConfigOverhaulAuth ? 'width-20' : 'width-30')} |                     className={cx('width-20')} | ||||||
|                     value={dataSourceConfig.jsonData.azureEndpointResourceId || ''} |                     value={dataSourceConfig.jsonData.azureEndpointResourceId || ''} | ||||||
|                     onChange={onResourceIdChange} |                     onChange={onResourceIdChange} | ||||||
|                   /> |                   /> | ||||||
|  |  | ||||||
|  | @ -3,7 +3,6 @@ import { ChangeEvent, useMemo } from 'react'; | ||||||
| 
 | 
 | ||||||
| import { AzureAuthType, AzureCredentials } from '@grafana/azure-sdk'; | import { AzureAuthType, AzureCredentials } from '@grafana/azure-sdk'; | ||||||
| import { SelectableValue } from '@grafana/data'; | import { SelectableValue } from '@grafana/data'; | ||||||
| import { config } from '@grafana/runtime'; |  | ||||||
| import { InlineFormLabel, Button, Select, Input } from '@grafana/ui'; | import { InlineFormLabel, Button, Select, Input } from '@grafana/ui'; | ||||||
| 
 | 
 | ||||||
| export interface Props { | export interface Props { | ||||||
|  | @ -113,8 +112,6 @@ export const AzureCredentialsForm = (props: Props) => { | ||||||
|     } |     } | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   const prometheusConfigOverhaulAuth = config.featureToggles.prometheusConfigOverhaulAuth; |  | ||||||
| 
 |  | ||||||
|   return ( |   return ( | ||||||
|     <div className="gf-form-group"> |     <div className="gf-form-group"> | ||||||
|       {authTypeOptions.length > 1 && ( |       {authTypeOptions.length > 1 && ( | ||||||
|  | @ -156,7 +153,7 @@ export const AzureCredentialsForm = (props: Props) => { | ||||||
|               <InlineFormLabel className="width-12">Directory (tenant) ID</InlineFormLabel> |               <InlineFormLabel className="width-12">Directory (tenant) ID</InlineFormLabel> | ||||||
|               <div className="width-15"> |               <div className="width-15"> | ||||||
|                 <Input |                 <Input | ||||||
|                   className={cx(prometheusConfigOverhaulAuth ? 'width-20' : 'width-30')} |                   className={cx('width-20')} | ||||||
|                   placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |                   placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" | ||||||
|                   value={credentials.tenantId || ''} |                   value={credentials.tenantId || ''} | ||||||
|                   onChange={onTenantIdChange} |                   onChange={onTenantIdChange} | ||||||
|  | @ -170,7 +167,7 @@ export const AzureCredentialsForm = (props: Props) => { | ||||||
|               <InlineFormLabel className="width-12">Application (client) ID</InlineFormLabel> |               <InlineFormLabel className="width-12">Application (client) ID</InlineFormLabel> | ||||||
|               <div className="width-15"> |               <div className="width-15"> | ||||||
|                 <Input |                 <Input | ||||||
|                   className={cx(prometheusConfigOverhaulAuth ? 'width-20' : 'width-30')} |                   className={cx('width-20')} | ||||||
|                   placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |                   placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" | ||||||
|                   value={credentials.clientId || ''} |                   value={credentials.clientId || ''} | ||||||
|                   onChange={onClientIdChange} |                   onChange={onClientIdChange} | ||||||
|  | @ -185,20 +182,11 @@ export const AzureCredentialsForm = (props: Props) => { | ||||||
|                 <InlineFormLabel htmlFor="azure-client-secret" className="width-12"> |                 <InlineFormLabel htmlFor="azure-client-secret" className="width-12"> | ||||||
|                   Client Secret |                   Client Secret | ||||||
|                 </InlineFormLabel> |                 </InlineFormLabel> | ||||||
|                 <Input |                 <Input id="azure-client-secret" className={cx('width-20')} placeholder="configured" disabled /> | ||||||
|                   id="azure-client-secret" |  | ||||||
|                   className={cx(prometheusConfigOverhaulAuth ? 'width-20' : 'width-25')} |  | ||||||
|                   placeholder="configured" |  | ||||||
|                   disabled |  | ||||||
|                 /> |  | ||||||
|               </div> |               </div> | ||||||
|               {!disabled && ( |               {!disabled && ( | ||||||
|                 <div className="gf-form"> |                 <div className="gf-form"> | ||||||
|                   <div |                   <div className={cx('max-width-20 gf-form-inline')}> | ||||||
|                     className={cx( |  | ||||||
|                       prometheusConfigOverhaulAuth ? 'max-width-20 gf-form-inline' : 'max-width-30 gf-form-inline' |  | ||||||
|                     )} |  | ||||||
|                   > |  | ||||||
|                     <Button variant="secondary" type="button" onClick={onClientSecretReset}> |                     <Button variant="secondary" type="button" onClick={onClientSecretReset}> | ||||||
|                       reset |                       reset | ||||||
|                     </Button> |                     </Button> | ||||||
|  | @ -212,7 +200,7 @@ export const AzureCredentialsForm = (props: Props) => { | ||||||
|                 <InlineFormLabel className="width-12">Client Secret</InlineFormLabel> |                 <InlineFormLabel className="width-12">Client Secret</InlineFormLabel> | ||||||
|                 <div className="width-15"> |                 <div className="width-15"> | ||||||
|                   <Input |                   <Input | ||||||
|                     className={cx(prometheusConfigOverhaulAuth ? 'width-20' : 'width-30')} |                     className={cx('width-20')} | ||||||
|                     placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |                     placeholder="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" | ||||||
|                     value={credentials.clientSecret || ''} |                     value={credentials.clientSecret || ''} | ||||||
|                     onChange={onClientSecretChange} |                     onChange={onClientSecretChange} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue