mirror of https://github.com/grafana/grafana.git
				
				
				
			Prometheus: Use the frontend package in Prometheus and remove feature toggle (#86080)
* add history links for monaco completion provider folder * add history links for monaco query field folder * add history links for components folder * add history links for configuration folder * add history links for dashboard json folder * add history links for gcopypaste folder * add history link for variableMigration * add history link for querybuilder/components/metrics-modal folder * add history link for querybuilder/components/promqail folder * add history links for querybuilder/components folder * add history links for querybuilder/hooks folder * add history links for querybuilder/shared folder * add history links for querybuilder folder * add history links for querycache folder * add history links for src folder * use frontend package and custom auth in module.ts * remove files and fix import issues * remove usePrometheusFrontendPackage * remove extra files * update betterer * remove extra files after rebase * fix betterer for rebase * fix e2e flakiness
This commit is contained in:
		
							parent
							
								
									c9350a25c4
								
							
						
					
					
						commit
						f85470d652
					
				|  | @ -5681,40 +5681,6 @@ exports[`better eslint`] = { | |||
|     "public/app/plugins/datasource/parca/webpack.config.ts:5381": [ | ||||
|       [0, 0, 0, "Do not re-export imported variable (\`config\`)", "0"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/components/PromExemplarField.tsx:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "1"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "2"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/components/PromExploreExtraField.tsx:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "1"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/components/PromQueryField.test.tsx:5381": [ | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "0"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/components/PromQueryField.tsx:5381": [ | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "0"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/components/PrometheusMetricsBrowser.tsx:5381": [ | ||||
|       [0, 0, 0, "\'HorizontalGroup\' import from \'@grafana/ui\' is restricted from being used by a pattern. Use Stack component instead.", "0"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "1"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "2"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "3"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "4"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "5"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "6"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "7"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "8"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "9"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "10"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "11"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "12"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/components/monaco-query-field/MonacoQueryField.tsx:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "1"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/configuration/AzureCredentialsConfig.ts:5381": [ | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "0"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "1"], | ||||
|  | @ -5736,165 +5702,6 @@ exports[`better eslint`] = { | |||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "17"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "18"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/configuration/ConfigEditor.tsx:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "1"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "2"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "3"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "4"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "5"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "6"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "7"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "8"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "9"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "10"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "11"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "12"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "13"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "14"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "15"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/configuration/ExemplarsSettings.tsx:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/datasource.ts:5381": [ | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "0"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "1"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "2"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "3"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "4"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "5"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "6"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "7"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "8"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/language_provider.ts:5381": [ | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "0"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "1"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "2"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/language_utils.ts:5381": [ | ||||
|       [0, 0, 0, "Do not use any type assertions.", "0"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/QueryPattern.tsx:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "1"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "2"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "3"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/QueryPatternsModal.tsx:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "1"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/binaryScalarOperations.ts:5381": [ | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "0"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/components/LabelFilterItem.tsx:5381": [ | ||||
|       [0, 0, 0, "Do not use any type assertions.", "0"], | ||||
|       [0, 0, 0, "Do not use any type assertions.", "1"], | ||||
|       [0, 0, 0, "Do not use any type assertions.", "2"], | ||||
|       [0, 0, 0, "Do not use any type assertions.", "3"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/components/LabelFilters.tsx:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/components/LabelParamEditor.tsx:5381": [ | ||||
|       [0, 0, 0, "Do not use any type assertions.", "0"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/components/MetricSelect.tsx:5381": [ | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "0"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "1"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "2"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "3"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "4"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "5"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "6"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "7"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "8"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "9"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryBuilder.tsx:5381": [ | ||||
|       [0, 0, 0, "Do not use any type assertions.", "0"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryCodeEditor.tsx:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/components/metrics-modal/AdditionalSettings.tsx:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "1"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "2"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/components/metrics-modal/ResultsTable.tsx:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "1"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "2"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "3"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "4"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "5"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "6"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "7"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "8"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "9"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "10"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "11"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "12"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/components/metrics-modal/styles.ts:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "1"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "2"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "3"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "4"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "5"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "6"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "7"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "8"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "9"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "10"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "11"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "12"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "13"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "14"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "15"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "16"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "17"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "18"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/shared/LabelFilterItem.tsx:5381": [ | ||||
|       [0, 0, 0, "Do not use any type assertions.", "0"], | ||||
|       [0, 0, 0, "Do not use any type assertions.", "1"], | ||||
|       [0, 0, 0, "Do not use any type assertions.", "2"], | ||||
|       [0, 0, 0, "Do not use any type assertions.", "3"], | ||||
|       [0, 0, 0, "Do not use any type assertions.", "4"], | ||||
|       [0, 0, 0, "Do not use any type assertions.", "5"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "6"], | ||||
|       [0, 0, 0, "Do not use any type assertions.", "7"], | ||||
|       [0, 0, 0, "Do not use any type assertions.", "8"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/shared/LabelFilters.tsx:5381": [ | ||||
|       [0, 0, 0, "Do not use any type assertions.", "0"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/shared/OperationEditor.tsx:5381": [ | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "0"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/shared/OperationParamEditor.tsx:5381": [ | ||||
|       [0, 0, 0, "Do not use any type assertions.", "0"], | ||||
|       [0, 0, 0, "Do not use any type assertions.", "1"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/shared/QueryBuilderHints.tsx:5381": [ | ||||
|       [0, 0, 0, "Styles should be written using objects.", "0"], | ||||
|       [0, 0, 0, "Styles should be written using objects.", "1"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/shared/types.ts:5381": [ | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "0"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "1"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "2"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/types.ts:5381": [ | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "0"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "1"], | ||||
|       [0, 0, 0, "Unexpected any. Specify a different type.", "2"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/tempo/QueryField.tsx:5381": [ | ||||
|       [0, 0, 0, "\'HorizontalGroup\' import from \'@grafana/ui\' is restricted from being used by a pattern. Use Stack component instead.", "0"] | ||||
|     ], | ||||
|  | @ -7163,25 +6970,6 @@ exports[`no gf-form usage`] = { | |||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/components/PromExploreExtraField.tsx:5381": [ | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/components/PromQueryField.tsx:5381": [ | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/configuration/AlertingSettingsOverhaul.tsx:5381": [ | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/configuration/AzureAuthSettings.tsx:5381": [ | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"] | ||||
|     ], | ||||
|  | @ -7208,41 +6996,6 @@ exports[`no gf-form usage`] = { | |||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/configuration/ExemplarSetting.tsx:5381": [ | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/configuration/PromSettings.tsx:5381": [ | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryCodeEditor.tsx:5381": [ | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"] | ||||
|     ], | ||||
|     "public/app/plugins/datasource/tempo/_importedDependencies/components/AdHocFilter/AdHocFilter.tsx:5381": [ | ||||
|       [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"] | ||||
|     ], | ||||
|  |  | |||
|  | @ -59,7 +59,6 @@ Some features are enabled by default. You can disable these feature by setting t | |||
| | `lokiQueryHints`                     | Enables query hints for Loki                                                                                                                                                                                                 | Yes                | | ||||
| | `alertingQueryOptimization`          | Optimizes eligible queries in order to reduce load on datasources                                                                                                                                                            |                    | | ||||
| | `betterPageScrolling`                | Removes CustomScrollbar from the UI, relying on native browser scrollbars                                                                                                                                                    | Yes                | | ||||
| | `usePrometheusFrontendPackage`       | Use the @grafana/prometheus frontend package in core Prometheus.                                                                                                                                                             |                    | | ||||
| | `cloudWatchNewLabelParsing`          | Updates CloudWatch label parsing to be more accurate                                                                                                                                                                         | Yes                | | ||||
| 
 | ||||
| ## Preview feature toggles | ||||
|  |  | |||
|  | @ -13,7 +13,7 @@ describe('Query editor', () => { | |||
|     cy.contains('gdev-prometheus').scrollIntoView().should('be.visible').click(); | ||||
|     const queryText = `rate(http_requests_total{job="grafana"}[5m])`; | ||||
| 
 | ||||
|     e2e.components.RadioButton.container().filter(':contains("Code")').click(); | ||||
|     e2e.components.RadioButton.container().filter(':contains("Code")').should('be.visible').click(); | ||||
| 
 | ||||
|     waitForMonacoToLoad(); | ||||
| 
 | ||||
|  |  | |||
|  | @ -174,7 +174,6 @@ export interface FeatureToggles { | |||
|   authAPIAccessTokenAuth?: boolean; | ||||
|   scopeFilters?: boolean; | ||||
|   ssoSettingsSAML?: boolean; | ||||
|   usePrometheusFrontendPackage?: boolean; | ||||
|   oauthRequireSubClaim?: boolean; | ||||
|   newDashboardWithFiltersAndGroupBy?: boolean; | ||||
|   cloudWatchNewLabelParsing?: boolean; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/add_label_to_query.test.ts
 | ||||
| import { addLabelToQuery } from './add_label_to_query'; | ||||
| 
 | ||||
| describe('addLabelToQuery()', () => { | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/add_label_to_query.ts
 | ||||
| import { parser, VectorSelector } from '@prometheus-io/lezer-promql'; | ||||
| 
 | ||||
| import { PromQueryModeller } from './querybuilder/PromQueryModeller'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/AnnotationQueryEditor.tsx
 | ||||
| import React from 'react'; | ||||
| 
 | ||||
| import { AnnotationQuery } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/PromCheatSheet.tsx
 | ||||
| import React from 'react'; | ||||
| 
 | ||||
| import { QueryEditorHelpProps } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/PromExemplarField.tsx
 | ||||
| import { css, cx } from '@emotion/css'; | ||||
| import React, { useEffect, useState } from 'react'; | ||||
| import { usePrevious } from 'react-use'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/PromExploreExtraField.test.tsx
 | ||||
| import { render, screen } from '@testing-library/react'; | ||||
| import React from 'react'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/PromExploreExtraField.tsx
 | ||||
| import { css, cx } from '@emotion/css'; | ||||
| import { isEqual } from 'lodash'; | ||||
| import React, { memo, useCallback } from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/PromQueryEditorByApp.test.tsx
 | ||||
| import { render, screen } from '@testing-library/react'; | ||||
| import { noop } from 'lodash'; | ||||
| import React from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/PromQueryEditorByApp.tsx
 | ||||
| import React, { memo } from 'react'; | ||||
| 
 | ||||
| import { CoreApp } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/PromQueryEditorForAlerting.tsx
 | ||||
| import React from 'react'; | ||||
| 
 | ||||
| import { PromQueryField } from './PromQueryField'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/PromQueryField.test.tsx
 | ||||
| import { getByTestId, render, screen, waitFor } from '@testing-library/react'; | ||||
| // @ts-ignore
 | ||||
| import userEvent from '@testing-library/user-event'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/PromQueryField.tsx
 | ||||
| import { cx } from '@emotion/css'; | ||||
| import React, { ReactNode } from 'react'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/PrometheusMetricsBrowser.test.tsx
 | ||||
| import { render, screen, waitFor } from '@testing-library/react'; | ||||
| import userEvent from '@testing-library/user-event'; | ||||
| import React from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/PrometheusMetricsBrowser.tsx
 | ||||
| import { css, cx } from '@emotion/css'; | ||||
| import React, { ChangeEvent } from 'react'; | ||||
| import { FixedSizeList } from 'react-window'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/VariableQueryEditor.test.tsx
 | ||||
| import { render, screen, waitFor } from '@testing-library/react'; | ||||
| import userEvent from '@testing-library/user-event'; | ||||
| import React from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/VariableQueryEditor.tsx
 | ||||
| import React, { FormEvent, useCallback, useEffect, useState } from 'react'; | ||||
| 
 | ||||
| import { QueryEditorProps, SelectableValue } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/monaco-query-field/MonacoQueryField.tsx
 | ||||
| import { css } from '@emotion/css'; | ||||
| import { parser } from '@prometheus-io/lezer-promql'; | ||||
| import { debounce } from 'lodash'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/monaco-query-field/MonacoQueryFieldLazy.tsx
 | ||||
| import React, { Suspense } from 'react'; | ||||
| 
 | ||||
| import MonacoQueryField from './MonacoQueryField'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/monaco-query-field/MonacoQueryFieldProps.ts
 | ||||
| import { HistoryItem } from '@grafana/data'; | ||||
| 
 | ||||
| import { PrometheusDatasource } from '../../datasource'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/monaco-query-field/MonacoQueryFieldWrapper.tsx
 | ||||
| import React, { useRef } from 'react'; | ||||
| 
 | ||||
| import { MonacoQueryFieldLazy } from './MonacoQueryFieldLazy'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/monaco-query-field/getOverrideServices.ts
 | ||||
| import { monacoTypes } from '@grafana/ui'; | ||||
| 
 | ||||
| // this thing here is a workaround in a way.
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/monaco-query-field/monaco-completion-provider/completions.ts
 | ||||
| import UFuzzy from '@leeoniya/ufuzzy'; | ||||
| 
 | ||||
| import { config } from '@grafana/runtime'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/monaco-query-field/monaco-completion-provider/index.ts
 | ||||
| import type { Monaco, monacoTypes } from '@grafana/ui'; | ||||
| 
 | ||||
| import { CompletionType, getCompletions } from './completions'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/monaco-query-field/monaco-completion-provider/situation.test.ts
 | ||||
| import { getSituation, Situation } from './situation'; | ||||
| 
 | ||||
| // we use the `^` character as the cursor-marker in the string.
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/monaco-query-field/monaco-completion-provider/situation.ts
 | ||||
| import type { SyntaxNode, Tree } from '@lezer/common'; | ||||
| import { | ||||
|   AggregateExpr, | ||||
|  |  | |||
|  | @ -1,3 +1,5 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/monaco-query-field/monaco-completion-provider/util.ts
 | ||||
| 
 | ||||
| // this helper class is used to make typescript warn you when you forget
 | ||||
| // a case-block in a switch statement.
 | ||||
| // example code that triggers the typescript-error:
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/monaco-query-field/monaco-completion-provider/validation.test.ts
 | ||||
| import { parser } from '@prometheus-io/lezer-promql'; | ||||
| 
 | ||||
| import { validateQuery } from './validation'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/loki/components/monaco-query-field/monaco-completion-provider/validation.ts
 | ||||
| import { SyntaxNode } from '@lezer/common'; | ||||
| import { LRParser } from '@lezer/lr'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/components/types.ts
 | ||||
| import { QueryEditorProps } from '@grafana/data'; | ||||
| 
 | ||||
| import { PrometheusDatasource } from '../datasource'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/configuration/AlertingSettingsOverhaul.tsx
 | ||||
| import { cx } from '@emotion/css'; | ||||
| import React from 'react'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/configuration/ConfigEditor.test.tsx
 | ||||
| import React from 'react'; | ||||
| 
 | ||||
| import { FieldValidationMessage } from '@grafana/ui'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/configuration/ConfigEditor.tsx
 | ||||
| import { css } from '@emotion/css'; | ||||
| import React from 'react'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/configuration/DataSourceHttpSettingsOverhaul.tsx
 | ||||
| import React from 'react'; | ||||
| 
 | ||||
| import { DataSourceSettings } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/configuration/ExemplarSetting.tsx
 | ||||
| import React, { useState } from 'react'; | ||||
| 
 | ||||
| import { DataSourceInstanceSettings } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/configuration/ExemplarsSettings.tsx
 | ||||
| import { css } from '@emotion/css'; | ||||
| import React from 'react'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/configuration/PromFlavorVersions.ts
 | ||||
| export const PromFlavorVersions: { [index: string]: Array<{ value?: string; label: string }> } = { | ||||
|   Prometheus: [ | ||||
|     { value: undefined, label: 'Please select' }, | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/configuration/PromSettings.test.tsx
 | ||||
| import { render, screen, fireEvent } from '@testing-library/react'; | ||||
| import React, { SyntheticEvent } from 'react'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/configuration/PromSettings.tsx
 | ||||
| import React, { SyntheticEvent, useState } from 'react'; | ||||
| 
 | ||||
| import { | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/configuration/mocks.ts
 | ||||
| import { DataSourceSettings } from '@grafana/data'; | ||||
| 
 | ||||
| import { getMockDataSource } from '../gcopypaste/app/features/datasources/__mocks__/dataSourcesMocks'; | ||||
|  |  | |||
|  | @ -1,4 +1,5 @@ | |||
| { | ||||
|   "_comment": "Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/dashboards/grafana_stats.json", | ||||
|   "__inputs": [ | ||||
|     { | ||||
|       "name": "DS_PROMETHEUS", | ||||
|  |  | |||
|  | @ -1,4 +1,5 @@ | |||
| { | ||||
|   "_comment": "Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/dashboards/prometheus_2_stats.json", | ||||
|   "__inputs": [ | ||||
|     { | ||||
|       "name": "DS_GDEV-PROMETHEUS", | ||||
|  |  | |||
|  | @ -1,4 +1,5 @@ | |||
| { | ||||
|   "_comment": "Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/dashboards/prometheus_stats.json", | ||||
|   "__inputs": [ | ||||
|     { | ||||
|       "name": "DS_GDEV-PROMETHEUS", | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/dataquery.ts
 | ||||
| import { ScopeSpec } from '@grafana/data'; | ||||
| import * as common from '@grafana/schema'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/datasource.test.ts
 | ||||
| import { cloneDeep } from 'lodash'; | ||||
| import { lastValueFrom, of } from 'rxjs'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/datasource.ts
 | ||||
| import { defaults } from 'lodash'; | ||||
| import { lastValueFrom, Observable, throwError } from 'rxjs'; | ||||
| import { map, tap } from 'rxjs/operators'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/core/components/LocalStorageValueProvider/LocalStorageValueProvider.tsx
 | ||||
| import React, { useEffect, useState } from 'react'; | ||||
| 
 | ||||
| import store from '../../store'; | ||||
|  |  | |||
|  | @ -1 +1,2 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/core/components/LocalStorageValueProvider/index.tsx
 | ||||
| export { LocalStorageValueProvider } from './LocalStorageValueProvider'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/core/store.ts
 | ||||
| type StoreValue = string | number | boolean | null; | ||||
| 
 | ||||
| export class Store { | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/core/utils/CancelablePromise.ts
 | ||||
| // https://github.com/facebook/react/issues/5465
 | ||||
| 
 | ||||
| export interface CancelablePromise<T> { | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/core/utils/query.ts
 | ||||
| import { DataQuery } from '@grafana/data'; | ||||
| 
 | ||||
| export const getNextRefIdChar = (queries: DataQuery[]): string => { | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/features/datasources/__mocks__/dataSourcesMocks.ts
 | ||||
| import { merge } from 'lodash'; | ||||
| 
 | ||||
| import { DataSourceJsonData, DataSourceSettings } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/features/live/data/amendTimeSeries.ts
 | ||||
| import { closestIdx } from '@grafana/data'; | ||||
| 
 | ||||
| export type Table = [times: number[], ...values: any[][]]; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/packages/grafana-ui/src/components/Select/SelectBase.tsx
 | ||||
| import { cx } from '@emotion/css'; | ||||
| import { max } from 'lodash'; | ||||
| import React, { RefCallback } from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/test/matchers/index.ts
 | ||||
| import { Observable } from 'rxjs'; | ||||
| 
 | ||||
| import { toEmitValues } from './toEmitValues'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/test/matchers/toEmitValues.test.ts
 | ||||
| import { interval, Observable, of, throwError } from 'rxjs'; | ||||
| import { map, mergeMap, take } from 'rxjs/operators'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/test/matchers/toEmitValues.ts
 | ||||
| import { matcherHint, printExpected, printReceived } from 'jest-matcher-utils'; | ||||
| import { isEqual } from 'lodash'; | ||||
| import { Observable, Subscription } from 'rxjs'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/test/matchers/toEmitValuesWith.test.ts
 | ||||
| import { interval, Observable, of, throwError } from 'rxjs'; | ||||
| import { map, mergeMap, take } from 'rxjs/operators'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history
 | ||||
| import { matcherHint, printReceived } from 'jest-matcher-utils'; | ||||
| import { Observable, Subscription } from 'rxjs'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/test/matchers/toEmitValuesWith.ts
 | ||||
| import { Observable } from 'rxjs'; | ||||
| 
 | ||||
| export const OBSERVABLE_TEST_TIMEOUT_IN_MS = 1000; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/test/matchers/utils.ts
 | ||||
| import { matcherHint, printExpected, printReceived } from 'jest-matcher-utils'; | ||||
| import { asapScheduler, Subscription, timer, isObservable } from 'rxjs'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/packages/grafana-ui/src/components/Select/SelectBase.tsx
 | ||||
| import { Matcher, waitFor } from '@testing-library/react'; | ||||
| import userEvent from '@testing-library/user-event'; | ||||
| import { select } from 'react-select-event'; | ||||
|  |  | |||
|  | @ -59,14 +59,14 @@ export { PromQail } from './querybuilder/components/promQail/PromQail'; | |||
| 
 | ||||
| // SRC/
 | ||||
| // Main export
 | ||||
| export { PrometheusDatasource } from './datasource'; | ||||
| export { PrometheusDatasource, InstantQueryRefIdIndex } from './datasource'; | ||||
| // The parts
 | ||||
| export { addLabelToQuery } from './add_label_to_query'; | ||||
| export { type QueryEditorMode, type PromQueryFormat, type Prometheus } from './dataquery'; | ||||
| export { PrometheusMetricFindQuery } from './metric_find_query'; | ||||
| export { promqlGrammar } from './promql'; | ||||
| export { getQueryHints, getInitHints } from './query_hints'; | ||||
| export { transformV2, transformDFToTable } from './result_transformer'; | ||||
| export { transformV2, transformDFToTable, parseSampleValue, sortSeriesByLabel } from './result_transformer'; | ||||
| export { | ||||
|   type PromQuery, | ||||
|   type PrometheusCacheLevel, | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/language_provider.mock.ts
 | ||||
| export class EmptyLanguageProviderMock { | ||||
|   metrics = []; | ||||
|   constructor() {} | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/language_provider.test.ts
 | ||||
| import { AbstractLabelOperator, dateTime, TimeRange } from '@grafana/data'; | ||||
| 
 | ||||
| import { Label } from './components/monaco-query-field/monaco-completion-provider/situation'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/language_provider.ts
 | ||||
| import { once } from 'lodash'; | ||||
| import Prism from 'prismjs'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/language_utils.test.ts
 | ||||
| import { Moment } from 'moment'; | ||||
| 
 | ||||
| import { AbstractLabelOperator, AbstractQuery, DateTime, dateTime, TimeRange } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/language_utils.ts
 | ||||
| import { invert } from 'lodash'; | ||||
| import { Token } from 'prismjs'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/metric_find_query.test.ts
 | ||||
| import { Observable, of } from 'rxjs'; | ||||
| 
 | ||||
| import 'whatwg-fetch'; // fetch polyfill needed backendSrv
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/metric_find_query.ts
 | ||||
| import { chain, map as _map, uniq } from 'lodash'; | ||||
| 
 | ||||
| import { getDefaultTimeRange, MetricFindValue, TimeRange } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/migrations/variableMigration.ts
 | ||||
| import { promQueryModeller } from '../querybuilder/PromQueryModeller'; | ||||
| import { buildVisualQueryFromString } from '../querybuilder/parsing'; | ||||
| import { PromVariableQuery, PromVariableQueryType as QueryType } from '../types'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/module.test.ts
 | ||||
| import { plugin as PrometheusDatasourcePlugin } from './module'; | ||||
| 
 | ||||
| describe('module', () => { | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/module.ts
 | ||||
| // DONT NEED THIS BUT MAYBE EXPORT THIS TO CORE PROM
 | ||||
| 
 | ||||
| import { DataSourcePlugin } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/promql.test.ts
 | ||||
| import Prism from 'prismjs'; | ||||
| 
 | ||||
| import promql from './promql'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/promql.ts
 | ||||
| import { Grammar } from 'prismjs'; | ||||
| 
 | ||||
| import { CompletionItem } from '@grafana/ui'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/query_hints.test.ts
 | ||||
| import { PrometheusDatasource } from './datasource'; | ||||
| import { getQueryHints, SUM_HINT_THRESHOLD_COUNT } from './query_hints'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/query_hints.ts
 | ||||
| import { size } from 'lodash'; | ||||
| 
 | ||||
| import { QueryFix, QueryHint } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/PromQueryModeller.test.ts
 | ||||
| import { PromQueryModeller } from './PromQueryModeller'; | ||||
| import { PromOperationId } from './types'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/PromQueryModeller.ts
 | ||||
| import { FUNCTIONS } from '../promql'; | ||||
| 
 | ||||
| import { getAggregationOperations } from './aggregations'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/QueryPattern.tsx
 | ||||
| import { css } from '@emotion/css'; | ||||
| import React from 'react'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/QueryPatternsModal.test.tsx
 | ||||
| import { render, screen, waitFor } from '@testing-library/react'; | ||||
| import userEvent from '@testing-library/user-event'; | ||||
| import React from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/QueryPatternsModal.tsx
 | ||||
| import { css } from '@emotion/css'; | ||||
| import { capitalize } from 'lodash'; | ||||
| import React, { useMemo, useState } from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/aggregations.ts
 | ||||
| import { | ||||
|   createAggregationOperation, | ||||
|   createAggregationOperationWithParam, | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/binaryScalarOperations.ts
 | ||||
| import { defaultAddOperationHandler } from './operationUtils'; | ||||
| import { QueryBuilderOperation, QueryBuilderOperationDef, QueryBuilderOperationParamDef } from './shared/types'; | ||||
| import { PromOperationId, PromVisualQueryOperationCategory } from './types'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/LabelFilterItem.tsx
 | ||||
| import debounce from 'debounce-promise'; | ||||
| import React, { useState } from 'react'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/LabelFilters.test.tsx
 | ||||
| import { render, screen } from '@testing-library/react'; | ||||
| import userEvent from '@testing-library/user-event'; | ||||
| import React, { ComponentProps } from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/LabelFilters.tsx
 | ||||
| import { css, cx } from '@emotion/css'; | ||||
| import { isEqual } from 'lodash'; | ||||
| import React, { useEffect, useState } from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/LabelParamEditor.tsx
 | ||||
| import React, { useState } from 'react'; | ||||
| 
 | ||||
| import { DataSourceApi, SelectableValue, toOption } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/MetricSelect.test.tsx
 | ||||
| import { render, screen, waitFor } from '@testing-library/react'; | ||||
| import userEvent from '@testing-library/user-event'; | ||||
| import React from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/MetricSelect.tsx
 | ||||
| import { css } from '@emotion/css'; | ||||
| import debounce from 'debounce-promise'; | ||||
| import React, { RefCallback, useCallback, useState } from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/MetricsLabelsSection.tsx
 | ||||
| import React, { useCallback } from 'react'; | ||||
| 
 | ||||
| import { SelectableValue } from '@grafana/data'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/NestedQuery.tsx
 | ||||
| import { css } from '@emotion/css'; | ||||
| import React from 'react'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/NestedQueryList.tsx
 | ||||
| import React from 'react'; | ||||
| 
 | ||||
| import { Stack } from '@grafana/ui'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryBuilder.test.tsx
 | ||||
| import { getByText, render, screen, waitFor } from '@testing-library/react'; | ||||
| import userEvent from '@testing-library/user-event'; | ||||
| import React from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryBuilder.tsx
 | ||||
| import { css } from '@emotion/css'; | ||||
| import React, { useEffect, useState } from 'react'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryBuilderContainer.test.tsx
 | ||||
| import { render, screen, waitFor } from '@testing-library/react'; | ||||
| import userEvent from '@testing-library/user-event'; | ||||
| import React from 'react'; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| // Core Grafana history https://github.com/grafana/grafana/blob/v11.0.0-preview/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryBuilderContainer.tsx
 | ||||
| import { createSlice, PayloadAction } from '@reduxjs/toolkit'; | ||||
| import React, { useEffect, useReducer } from 'react'; | ||||
| 
 | ||||
|  |  | |||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
		Reference in New Issue