mirror of
https://github.com/apache/superset.git
synced 2026-05-11 02:45:46 +00:00
fix: Timeseries annotation layers (#34709)
(cherry picked from commit fc95c4fc89)
This commit is contained in:
committed by
Michael S. Molina
parent
752f7aa80c
commit
e986496ef4
@@ -17,7 +17,6 @@
|
||||
* under the License.
|
||||
*/
|
||||
import {
|
||||
AnnotationData,
|
||||
AnnotationLayer,
|
||||
AnnotationOpacity,
|
||||
AnnotationSourceType,
|
||||
@@ -128,21 +127,7 @@ describe('extractAnnotationLabels', () => {
|
||||
showLabel: true,
|
||||
},
|
||||
];
|
||||
const results: AnnotationData = {
|
||||
'My Interval': {
|
||||
records: [{ col: 1 }],
|
||||
},
|
||||
'My Line': [
|
||||
{ key: 'Line 1', values: [] },
|
||||
{ key: 'Line 2', values: [] },
|
||||
],
|
||||
};
|
||||
|
||||
expect(extractAnnotationLabels(layers, results)).toEqual([
|
||||
'My Formula',
|
||||
'Line 1',
|
||||
'Line 2',
|
||||
]);
|
||||
expect(extractAnnotationLabels(layers)).toEqual(['My Formula', 'My Line']);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user