Skip to content

Conversation

@SteffeyDev
Copy link
Contributor

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

Broken off of #2196

In QueryBuilder, I noticed that if dryRun failed, the error was logged to the console but not shown to the user. Instead of ignoring and letting the query call report the same error, I changed it so that dryRun errors are reported to the rendered function in the error prop. This is mostly useful when wrapWithQueryRenderer is false, as when it is true, the QueryRenderer will produce the same error and overwrite with it's own error prop (by design).

@SteffeyDev SteffeyDev requested a review from a team as a code owner March 3, 2021 14:03
@github-actions github-actions bot added the pr:community Contribution from Cube.js community members. label Mar 3, 2021
@codecov
Copy link

codecov bot commented Mar 3, 2021

Codecov Report

Merging #2262 (08d4301) into master (d269a38) will decrease coverage by 0.09%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2262      +/-   ##
==========================================
- Coverage   55.75%   55.65%   -0.10%     
==========================================
  Files         118      118              
  Lines        8690     8648      -42     
  Branches     1891     1888       -3     
==========================================
- Hits         4845     4813      -32     
+ Misses       3466     3456      -10     
  Partials      379      379              
Impacted Files Coverage Δ
packages/cubejs-api-gateway/src/jwk.ts 11.47% <0.00%> (ø)
packages/cubejs-server-core/src/core/server.ts 50.46% <0.00%> (+<0.01%) ⬆️
packages/cubejs-api-gateway/src/gateway.ts 72.70% <0.00%> (+0.94%) ⬆️
packages/cubejs-backend-shared/src/promises.ts 97.38% <0.00%> (+1.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d269a38...379589e. Read the comment docs.

@vasilev-alex vasilev-alex merged commit 61bac0b into cube-js:master Mar 5, 2021
vasilev-alex added a commit that referenced this pull request Mar 23, 2021
…wing dryRun errors (#2262)

Co-authored-by: Peter Steffey <psteffey@directdefense.com>
Co-authored-by: Alex.V <vaspiring@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:community Contribution from Cube.js community members.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants