zhaoyongjie commented on a change in pull request #11418:
URL:
https://github.com/apache/incubator-superset/pull/11418#discussion_r545398479
##########
File path: superset/charts/api.py
##########
@@ -997,3 +1001,56 @@ def import_(self) -> Response:
except Exception as exc: # pylint: disable=broad-except
logger.exception("Import chart failed")
return self.response_500(message=str(exc))
+
+ @expose("/time_range/", methods=["GET"])
Review comment:
We need to return an explicit time range to the browser, so we need the
backend to take this human-readable string convert to start datetime and end
datetime. the explicit time range will be shown on timeRange control-label
```
"yesterday : tomorrow" === 2020-12-17 <= col < 2020-12-19
```
<img width="214" alt="image"
src="https://user-images.githubusercontent.com/2016594/102542838-5c021800-40ed-11eb-8194-4ae28bf9284f.png">
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]