mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Annotations: Support filtering the target panels (#66325)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com> Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
This commit is contained in:
@@ -2016,8 +2016,8 @@ describe('DashboardModel', () => {
|
||||
},
|
||||
annotations: {
|
||||
list: [
|
||||
// @ts-expect-error
|
||||
{
|
||||
// @ts-expect-error
|
||||
datasource: null,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -318,13 +318,11 @@ describe('DashboardModel', () => {
|
||||
list: [
|
||||
{
|
||||
datasource: { uid: 'fake-uid', type: 'prometheus' },
|
||||
showIn: 0,
|
||||
name: 'Fake annotation',
|
||||
type: 'dashboard',
|
||||
iconColor: 'rgba(0, 211, 255, 1)',
|
||||
enable: true,
|
||||
hide: false,
|
||||
builtIn: 0,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -46,13 +46,12 @@ export function createPanelJSONFixture(panelInput: Partial<Panel | GraphPanel |
|
||||
}
|
||||
|
||||
export function createAnnotationJSONFixture(annotationInput: Partial<AnnotationQuery>): AnnotationQuery {
|
||||
// @ts-expect-error
|
||||
return {
|
||||
builtIn: 0, // ??
|
||||
datasource: {
|
||||
type: 'foo',
|
||||
uid: 'bar',
|
||||
},
|
||||
showIn: 2,
|
||||
enable: true,
|
||||
type: 'anno',
|
||||
...annotationInput,
|
||||
|
||||
Reference in New Issue
Block a user