GitHub user mistercrunch added a comment to the discussion: Extra filters (to 
the chart as query params)

It would be so great to have a simple, super intuitive URL "API" consistent on 
both explore and dashboard that's so simple you can just remember it without 
thinking, or document it in 5 lines of text.

like `?filter__{column_name}={value}` and for OR you'd just put it twice, like 
`?filter__country=Canada&filter__country=Peru`. Sure it can't do all the 
operators or the in-and-or-this-or-that-and-this. But just solving simple 
filters would be nice. 

`rison`, a standard to encode JSON-in-urls that we use internally in most 
places is super neat too and pretty intuitive if we wanted a slightly more 
complex/powerful implementation that supports JSON arrays or nested data 
structures (though we want to avoid the super complex stuff).

Early versions of Explore / Dashboard were stateful in the URL, but when charts 
got more complex, the amount of data started to exceed what a URL can support 
(I think it's 2k to 8k on most web servers, and having larger ones help people 
DDOS you...) so we moved away from that pattern.

I think there might still be undocumented url params. But it should probably be 
re-designed and re-implemented, in a consistent way across explore/dashboard.

GitHub link: 
https://github.com/apache/superset/discussions/32754#discussioncomment-13535018

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to