CloudWatch: Make match exact toggle false by default (#113314)

This commit is contained in:
Ida Štambuk
2025-11-07 10:30:24 +01:00
committed by GitHub
parent f4b23253b1
commit 4bbbd19049
2 changed files with 2 additions and 2 deletions
@@ -461,7 +461,7 @@ describe('datasource', () => {
expect((datasource.getDefaultQuery(CoreApp.PanelEditor) as CloudWatchDefaultQuery).metricEditorMode).toEqual(
MetricEditorMode.Builder
);
expect((datasource.getDefaultQuery(CoreApp.PanelEditor) as CloudWatchDefaultQuery).matchExact).toEqual(true);
expect((datasource.getDefaultQuery(CoreApp.PanelEditor) as CloudWatchDefaultQuery).matchExact).toEqual(false);
});
it('should set default values from logs query', () => {
const defaultLogGroups = [{ name: 'logName', arn: 'logARN' }];
@@ -24,7 +24,7 @@ export const DEFAULT_METRICS_QUERY: Omit<CloudWatchMetricsQuery, 'refId'> = {
metricEditorMode: MetricEditorMode.Builder,
sql: undefined,
sqlExpression: '',
matchExact: true,
matchExact: false,
};
export const DEFAULT_ANNOTATIONS_QUERY: Omit<CloudWatchAnnotationQuery, 'refId'> = {