Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[WiP] Shorten URL for explore #3795
Currently Superset uses stateful url for explore chart. We append all query parameters in GET request. When user open a slice, or change one control to make a new query, Superset make a new GET request. Superset also provided a shorten url function, but this shorten url is only generated per user request (click a button from UI). Recently we see many failed requests within airbnb, when GET request's parameters are too many too long, which cause chrome browser throw 400 Bad Request error.
I am trying to provide a solution for this problem:
changed the title from
WiP Shorten URL for explore view
[WiP] Shorten URL for explore view
Nov 7, 2017
We mentioned a temporary solution at the meeting, @fabianmenges what did you use for compression? lz-strings?
I tried to use
This is what I did in the swivel
And the in the url generation in
I didn't make any adaptions to the python side (for Swivel).
I am concerned whether this won't clutter up the url table fairly quickly. Or did I miss a point here?
Wouldn't it suffice to store the query parameters in the cache backend? Of course, the cache timeout for these entries should then be set to quite a long time, though...
@rumbin I have same concern. I store this key in url table because I want to same some
Fabian and Max had a suggestion: we compress all form_data from front-end, and send compressed string as a request parameter. I assume in server-side we still need to
I saw we had a