Repository navigation
feat(discover): Add visualization to query string - #11467
Conversation
Discover visualization type can be defined via the URL, visualization name persists when switching Discover tabs. Also validates requested visualization against available visualizations for that particular query.
|
Query string keeps changing (I think when you navigate with browser history with |
|
That query string changing thing seems to be a bug on master. I'm not sure when this started, as saved queries should never have the query in the URL |
|
Yeah, i'm starting to think we should always sort so react router works properly |
|
Is there a reason not to use |
|
Not that I know of, it's inconsistently used in discover right now. I did a quick fix but it might not be the best solution |
|
Some of the formats used presently might not be very compatible with how |
|
The query string still causes some issues if it has parens (e.g. count aggregation) |
|
Damn, tried to fix this by passing it through the original function again. Another option would be to switch everything to use |
|
@billyvg How do you feel about merging this? |
billyvg
left a comment
There was a problem hiding this comment.
@lynnagara The query string is still switching because of the parens, but since it's not any worse than what's currently on prod, I'd say it's still a net win if we merged.
|
@billyvg How did you trigger the switching behaviour? I thought that was fixed by the last commit |
|
Switching between query and saved query |
Discover visualization type can be defined via the URL, visualization
name persists when switching Discover tabs.