mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
feat: Add Saved Metrics tab to metrics popover (#12123)
* Implement saved metrics * Fix bug in sql editor * Fix unit tests * Fix outlines in popovers * Add types for saved metrics * Add translations * Move savedMetricType to a separate file
This commit is contained in:
committed by
GitHub
parent
8e625e0a64
commit
2a23744223
@@ -169,7 +169,7 @@ describe('MetricsControl', () => {
|
||||
const editedMetric = sumValueAdhocMetric.duplicateWith({
|
||||
aggregate: AGGREGATES.AVG,
|
||||
});
|
||||
component.instance().onMetricEdit(editedMetric);
|
||||
component.instance().onMetricEdit(editedMetric, sumValueAdhocMetric);
|
||||
|
||||
expect(onChange.lastCall.args).toEqual([[editedMetric]]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user