rafalpas commented on issue #19026:
URL: https://github.com/apache/superset/issues/19026#issuecomment-1060646972
@villebro - I have made a mistake when analyzing the problem. There was one
additional step that I made and apparently this step is the root-cause of the
problem. The export itself is correct.
It seems that the information about filter_scopes is removed from
dashboard's properties whenever it is edited using the Dashboard Properties
dialog. The procedure is as follows:
1. Open Dashboard Properties using the 'Edit" action from dashboard's list -
do this for a dashboard that has filter boxes with some "filter scopes"
defined. The information about filter boxes can be seen in the JSON Metadata
"filter_scopes_section", e.g. `
"filter_scopes": {
"28": {
"technology": {"scope": ["ROOT_ID"], "immune": [40]},
"software_release": {"scope": ["ROOT_ID"], "immune": [40]},
"on_air": {"scope": ["ROOT_ID"], "immune": [40]}
},
"40": {
"date_str": {"scope": ["ROOT_ID"], "immune": []},
"entity": {"scope": ["ROOT_ID"], "immune": []},
"data_source": {"scope": ["ROOT_ID"], "immune": []}
}
}`
2. Click the "Save" button (you do not have to do any actual change)
3. Open the Dashboard properties again and check the JSON Metadata section -
the "filter_scopes" section is now missing.
The problem reproduces no matter if DASHBOARD_NATIVE_FILTERS is enabled or
not.
How should I proceed - should I update the name and description of this
report or should I file a new report and this one gets closed?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]