-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use POST in sqllab_viz instead of url params to avoid error with long queries #1933
Conversation
c507e7a
to
23e177f
Compare
success: (url) => { | ||
window.open(url); | ||
}, | ||
error: (error) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this error handling better than no error handling? i think there's an action to add an alert that will be visible by the user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this is redirecting to a new explore page, adding alert in sqllab won't be intuitive, I'll delete this error handling.
@@ -2278,7 +2278,7 @@ def sqllab_viz(self): | |||
} | |||
params = "&".join([k + '=' + v for k, v in params.items() if v]) | |||
url = '/superset/explore/table/{table.id}/?{params}'.format(**locals()) | |||
return redirect(url) | |||
return(url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return url
, well actually, return '/superset/explore/table/{table.id}/?{params}'.format(**locals())
is better
LGTM after fixing the |
faae07e
to
808bd27
Compare
… queries (apache#1933) * Use POST in sqllab_viz instead of url params to avoid error with long queries * Delete error handling * Fix returning statement
Issue:
Solution:
needs-review @ascott @mistercrunch @bkyryliuk