kkfnui opened a new issue, #20343:
URL: https://github.com/apache/superset/issues/20343
A clear and concise description of what the bug is.
#### How to reproduce the bug
1. Go to 'And Chart'
2. Click on 'Time'
3. Config custom start is Now, and End is Specific Time -- as next hour
4. wait for more than an hour,
5. Dashboard will raise server error, And We can't edit chart from dashboard
error stack
```
File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/api/_init_
•py", line 85, in wraps
return f(self,
*args,
**kwargs)
File "/app/superset/views/base_api.py", line 113, in wraps
ralse ex
File "/app/superset/views/base_api.py"
line 110, in wraps
duration, response = time function(f,
self,
*args,
**wargs)
File "/app/superset/utils/core.py", line 1506, in time_ function
response = func(*args, **kwargs)
File
"/app/superset/utils/log.py".
line 245, in wrapper
value = f(*args,
**kwargs)
File "/app/superset/dashboards/api.py", line 381, in get datasets
datasets = DashboardDAO.get datasets for dashboard(id or slug)
File "/app/superset/dashboards/dao.py
line 52, in get_datasets_for_ dashboard
return dashboard.datasets trimmed for slices()
File "/us/local/lib/python3.8/site-packages/flask caching/_init_-py", line
905, in decorated_ function
return f(*args, **kwargs)
File "/app/superset/models/dashboard.py", line 314, in datasets_trimmed for
slices
result.append (datasource.data for slices(slices))
File "/app/superset/connectors/base/models.py™, line 335, in data_ for_slices
query context = slc.get query context()
File "/app/superset/models/slice.py",
line 276, in get query_ context
return self.get query context factory().createl
File
"/app/superset/common/query_context_factory.py", line 60, in create
queries
File "/app/superset/common/query_context_factory.py", line 61, in <listcomp>
self._query_object_factory.create(result type,
**query obi)
File "/app/superset/common/query_object_factory.py", line 65, in create
from dttm, to dttm = self. get dttms (time range, time shift, processed
extras)
File "/app/superset/common/query_object_factory.py", line 105, in _get_dttms
return get since untill
File "/app/superset/utils/date parser.py"
line 267, in get_since until
raise ValueError(_ ("From date cannot be larger than to date"))
ValueError:
From
date cannot be larger than to date
```
### Expected results
1. can edit chart from dashboard, ignore the error from chart. At least can
edit normal chart
2. If there is any error from chart, Just show error on chart
3. Can we disable the specific time when start is Now?
### Actual results
can't edit chart from dashboard
#### Screenshots
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [ x] I have checked the superset logs for python stacktraces and included
it here as text if there are any.
- [x ] I have reproduced the issue with at least the latest released version
of superset.
- [ x] I have checked the issue tracker for the same issue and I haven't
found one similar.
### Additional context
Add any other context about the problem here.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]