superset icon indicating copy to clipboard operation
superset copied to clipboard

Export as filter_box as CSV

Open sandy-ha opened this issue 7 years ago • 4 comments

A clear and concise description of what the bug is.

Expected results

an Export of corrent Filters as csv

Actual results

I get the follow messeges Sorry, something went wrong 500 - Internal Server Error

Stacktrace

    Traceback (most recent call last):

File "/home/hgs/venv/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "/home/hgs/venv/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/hgs/venv/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception reraise(exc_type, exc_value, tb) File "/home/hgs/venv/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise raise value File "/home/hgs/venv/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/home/hgs/venv/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request return self.view_functionsrule.endpoint File "/home/hgs/venv/lib/python3.6/site-packages/superset/models/core.py", line 1017, in wrapper value = f(*args, **kwargs) File "/home/hgs/venv/lib/python3.6/site-packages/flask_appbuilder/security/decorators.py", line 168, in wraps return f(self, *args, **kwargs) File "/home/hgs/venv/lib/python3.6/site-packages/superset/views/core.py", line 1246, in explore_json samples=samples, File "/home/hgs/venv/lib/python3.6/site-packages/superset/views/core.py", line 1134, in generate_json viz_obj.get_csv(), File "/home/hgs/venv/lib/python3.6/site-packages/superset/viz.py", line 481, in get_csv include_index = not isinstance(df.index, pd.RangeIndex) AttributeError: 'NoneType' object has no attribute 'index'

Screenshots

If applicable, add screenshots to help explain your problem.

How to reproduce the bug

  1. Go to a Dashboard with filter_box
  2. Click on expoart as csv image

Environment

(please complete the following information):

  • superset version: 0.28.1
  • python version: 3.6.8
  • node.js version: v8.10.0
  • npm version: 3.5.2

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • [ ] 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 have found one closed similar.

Additional context

Add any other context about the problem here.

sandy-ha avatar Aug 27 '19 10:08 sandy-ha

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.60. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Aug 27 '19 10:08 issue-label-bot[bot]

Have you managed to implement time date filter in filter box?

felexkemboi avatar Aug 27 '19 11:08 felexkemboi

It is the original filter box of the World Bank Demo. image

sandy-ha avatar Aug 28 '19 04:08 sandy-ha

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Oct 27 '19 05:10 stale[bot]