Fix individual dashboard upload when filter datasets are not the same as in charts #269
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Preset supports dashboards with filters on different datasets than the datasets used by the charts. currently, individually uploading such a dashboard with Preset CLI fails, because the filters datasets are not included in the list of dependencies for the dashboard asset.
Note: I consider having dashboard filters on different datasets than the datasets used by the charts is not a bug, but a feature. An example where this is useful: a dataset with all the countries in the world and multiple datasets, each one with data for a subset of countries. A filter on the world countries dataset can then be applied to any dashboard, without having to take care to know which dataset is used in the dashboard charts. As long as the country column is named the same and the values are consistent across all datasets it will work.