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: allow renewQuery in dev mode with warning #868

Merged
merged 3 commits into from
Jul 28, 2020

Conversation

jcw-
Copy link
Contributor

@jcw- jcw- commented Jul 19, 2020

Check List

  • Tests has been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Description of Changes Made (if issue reference is not provided)

The combination of renewQuery on a query against a server running in externalRefresh mode results in a validation error (and correctly so - you can't renew queries against a server running in that mode), but it is breaking the dev playground's Cache tab.

This PR improves the guards for missing data in the Cache section, and also makes a change to allow renewQuery to be specified in dev mode, except it will issue a warning and force it back to false.

@paveltiunov
Copy link
Member

@jcw- Hey Jc! Looks great! Thanks for fixing it!

@paveltiunov paveltiunov merged commit dbdbb5f into cube-js:master Jul 28, 2020
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.

2 participants