You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/06/07 00:38:05 UTC

[GitHub] betodealmeida opened a new pull request #5152: Use Rison for the explore URL

betodealmeida opened a new pull request #5152: Use Rison for the explore URL
URL: https://github.com/apache/incubator-superset/pull/5152
 
 
   [Rison](https://github.com/Nanonid/rison) is a data serialization format optimized for compactness in URIs. Rison is a slight variation of JSON that looks vastly superior after URI encoding. Rison still expresses exactly the same set of data structures as JSON, so data can be translated back and forth without loss or guesswork.
   
   The original website proposing Rison is dead, but there's an NPM module and I published [prison](https://pypi.org/project/prison/) (a Python encoder/decoder) to PyPI today.
   
   The Rison-encoded explore URL is smaller and easier to read. Before:
   
   http://0.0.0.0:8080/superset/explore/?form_data=%7B%22datasource%22%3A%2214__table%22%2C%22viz_type%22%3A%22table%22%2C%22granularity_sqla%22%3A%22__time%22%2C%22time_grain_sqla%22%3Anull%2C%22since%22%3A%227+days+ago%22%2C%22until%22%3A%22now%22%2C%22groupby%22%3A%5B%5D%2C%22metrics%22%3A%5B%22count%22%5D%2C%22percent_metrics%22%3A%5B%22count%22%5D%2C%22timeseries_limit_metric%22%3Anull%2C%22row_limit%22%3A10000%2C%22include_time%22%3Afalse%2C%22order_desc%22%3Atrue%2C%22all_columns%22%3A%5B%5D%2C%22order_by_cols%22%3A%5B%5D%2C%22table_timestamp_format%22%3A%22%25Y-%25m-%25d+%25H%3A%25M%3A%25S%22%2C%22page_length%22%3A0%2C%22include_search%22%3Afalse%2C%22table_filter%22%3Afalse%2C%22align_pn%22%3Afalse%2C%22color_pn%22%3Atrue%2C%22where%22%3A%22%22%2C%22having%22%3A%22%22%2C%22filters%22%3A%5B%5D%2C%22url_params%22%3A%7B%7D%7D
   
   After:
   
   http://0.0.0.0:8080/superset/explore/?form_data=align_pn:!f,all_columns:!(),color_pn:!t,datasource:%2714__table%27,filters:!(),granularity_sqla:__time,groupby:!(),having:%27%27,include_search:!f,include_time:!f,metrics:!(count),order_by_cols:!(),order_desc:!t,page_length:0,percent_metrics:!(count),row_limit:10000,since:%277%20days%20ago%27,table_filter:!f,table_timestamp_format:%27%Y-%m-%d%20%H:%M:%S%27,time_grain_sqla:!n,timeseries_limit_metric:!n,until:now,url_params:(),viz_type:table,where:%27%27
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org