mistercrunch closed pull request #5560: Remove function
since_until_to_time_range
URL: https://github.com/apache/incubator-superset/pull/5560
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/superset/utils.py b/superset/utils.py
index c0c0740bd9..d40e657dc7 100644
--- a/superset/utils.py
+++ b/superset/utils.py
@@ -946,15 +946,6 @@ def get_since_until(form_data):
return since, until
-def since_until_to_time_range(form_data):
- if 'time_range' in form_data:
- return
-
- since = form_data.get('since', '')
- until = form_data.get('until', 'now')
- form_data['time_range'] = ' : '.join((since, until))
-
-
def convert_legacy_filters_into_adhoc(fd):
mapping = {'having': 'having_filters', 'where': 'filters'}
diff --git a/superset/viz.py b/superset/viz.py
index 7ba8645bbc..c9eea34ca2 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -67,8 +67,6 @@ def __init__(self, datasource, form_data, force=False):
if not datasource:
raise Exception(_('Viz is missing a datasource'))
- utils.since_until_to_time_range(form_data)
-
self.datasource = datasource
self.request = request
self.viz_type = form_data.get('viz_type')
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]