fix: Show all columns from dataset when transitioning from dashboard to Explore #20701
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.
SUMMARY
Due to the fact that dashboards use trimmed datasets (they only contain columns used by charts on that dashboard), we can't reuse them in Explore. This PR fixes that behaviour.
This PR is a "subset" of PR #20699 which fixes the same thing, but also introduces a code refactor. CI was failing on that PR, and since it's an urgent bug I decided to open a smaller PR to quickly fix the issue.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
![image](https://user-images.githubusercontent.com/15073128/178796194-234da0de-b867-4696-b387-8987c74ee518.png)
After:
![image](https://user-images.githubusercontent.com/15073128/178796053-71909bb2-f68c-4298-a3b6-e6730bd41164.png)
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION