Skip to content

Commit 3076368

Browse files
authored
Metrics: Make match exact toggle false by default (#283)
1 parent a80831c commit 3076368

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/datasource.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ describe('datasource', () => {
469469
expect((datasource.getDefaultQuery(CoreApp.PanelEditor) as CloudWatchDefaultQuery).metricEditorMode).toEqual(
470470
MetricEditorMode.Builder
471471
);
472-
expect((datasource.getDefaultQuery(CoreApp.PanelEditor) as CloudWatchDefaultQuery).matchExact).toEqual(true);
472+
expect((datasource.getDefaultQuery(CoreApp.PanelEditor) as CloudWatchDefaultQuery).matchExact).toEqual(false);
473473
});
474474
it('should set default values from logs query', () => {
475475
const defaultLogGroups = [{ name: 'logName', arn: 'logARN' }];

src/defaultQueries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const DEFAULT_METRICS_QUERY: Omit<CloudWatchMetricsQuery, 'refId'> = {
2424
metricEditorMode: MetricEditorMode.Builder,
2525
sql: undefined,
2626
sqlExpression: '',
27-
matchExact: true,
27+
matchExact: false,
2828
};
2929

3030
export const DEFAULT_ANNOTATIONS_QUERY: Omit<CloudWatchAnnotationQuery, 'refId'> = {

0 commit comments

Comments
 (0)