Skip to content
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

Fix: Avoid sending query identifier to /jobs (when authenticated) #3831

Merged
merged 1 commit into from
May 26, 2019

Conversation

rauchy
Copy link
Contributor

@rauchy rauchy commented May 26, 2019

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

The query identifier is sent over to /jobs to correlate with query API keys (for public embeds and dashboards). However, when properly authenticated, there's no need to send that over.

One consequence of sending over the superfluous argument in authenticated sessions is when editing queries, where query is the actual query text. When it gets added as a parameter to the /jobs endpoint, it could max out the URL size and error for large queries.

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

@rauchy rauchy requested a review from arikfr May 26, 2019 09:00
@rauchy rauchy merged commit 4143bd3 into master May 26, 2019
@rauchy rauchy deleted the fix-query-sent-for-authenticated-calls branch May 26, 2019 09:19
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant