[dashboard] pass dashboard filters to share chart url in dropdown (#7642)

This commit is contained in:
Grace Guo
2019-06-07 15:22:56 -07:00
committed by GitHub
parent 39d67cbc59
commit f3091c525e
5 changed files with 17 additions and 8 deletions

View File

@@ -205,6 +205,10 @@ export default function(bootstrapData) {
dashboardState: {
sliceIds: Array.from(sliceIds),
refresh: false,
// All the filter_box's state in this dashboard
// When dashboard is first loaded into browser,
// its value is from preselect_filters that dashboard owner saved in dashboard's meta data
// When user start interacting with dashboard, it will be user picked values from all filter_box
filters,
directPathToChild,
expandedSlices: dashboard.metadata.expanded_slices || {},