feat(explore): Don't discard controls with custom sql when changing datasource (#20934)

This commit is contained in:
Kamil Gabryjelski
2022-10-19 15:29:38 +02:00
committed by GitHub
parent ec20c0104e
commit cddc361adc
22 changed files with 193 additions and 183 deletions

View File

@@ -210,6 +210,7 @@ test('SQL ad-hoc metric values', () => {
},
}),
).toEqual({
datasourceWarning: true,
expressionType: 'SQL',
sqlExpression: 'select * from sample_column_1;',
});
@@ -279,6 +280,7 @@ test('SQL ad-hoc filter values', () => {
},
}),
).toEqual({
datasourceWarning: true,
expressionType: 'SQL',
sqlExpression: 'select * from sample_column_1;',
});