mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PublicDashboards: Variables refactor (#73476)
Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com> Co-authored-by: Ezequiel Victorero <ezequiel.victorero@grafana.com> Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
@@ -57,7 +57,6 @@ export function executeAnnotationQuery(
|
||||
scopedVars,
|
||||
...interval,
|
||||
app: CoreApp.Dashboard,
|
||||
publicDashboardAccessToken: options.dashboard.meta.publicDashboardAccessToken,
|
||||
|
||||
timezone: options.dashboard.timezone,
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ export const publicDashboardEventNames: AnnotationFieldInfo[] = [
|
||||
// Given legacy infrastructure, alert events are passed though the same annotation
|
||||
// pipeline, but include fields that should not be exposed generally
|
||||
const alertEventAndAnnotationFields: AnnotationFieldInfo[] = [
|
||||
...(config.isPublicDashboardView ? publicDashboardEventNames : []),
|
||||
...(config.publicDashboardAccessToken ? publicDashboardEventNames : []),
|
||||
...annotationEventNames,
|
||||
{ key: 'userId' },
|
||||
{ key: 'login' },
|
||||
|
||||
Reference in New Issue
Block a user