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(cubesql): Don't show meta OLAP queries in query history #8336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MazterQyou
Copy link
Member

@MazterQyou MazterQyou commented Jun 7, 2024

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

This PR changes the behavior of isDataQuery flag, instead passing it as false by default on Prepare step, when query is parsed, and then passing the updated value only on Execute step. This avoids duplicated entries in query history for the same query with, for instance, Tablaeu, which would parse the query and get its meta result first, then repeat the same steps, but next time execute the query.

Copy link

vercel bot commented Jun 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-angular-dashboard ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 9:04pm
examples-react-d3 ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 9:04pm
examples-react-dashboard ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 9:04pm
examples-react-data-table ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 9:04pm
examples-react-highcharts ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 9:04pm
examples-react-material-ui ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 9:04pm
examples-react-pivot-table ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 9:04pm
examples-vue-query-builder ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 9:04pm

@MazterQyou MazterQyou changed the title wip(cubesql): Data query flag span fix(cubesql): Don't show meta OLAP queries in query history Jun 8, 2024
@MazterQyou MazterQyou marked this pull request as ready for review June 8, 2024 09:59
@MazterQyou MazterQyou requested a review from a team as a code owner June 8, 2024 09:59
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

Attention: Patch coverage is 65.36585% with 71 lines in your changes missing coverage. Please review.

Project coverage is 82.61%. Comparing base (a2e604e) to head (662ff94).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
rust/cubesql/cubesql/src/sql/postgres/shim.rs 66.32% 66 Missing ⚠️
rust/cubesql/cubesql/src/sql/postgres/extended.rs 44.44% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8336      +/-   ##
==========================================
- Coverage   82.67%   82.61%   -0.06%     
==========================================
  Files         217      217              
  Lines       78125    78215      +90     
==========================================
+ Hits        64589    64619      +30     
- Misses      13536    13596      +60     
Flag Coverage Δ
cubesql 82.61% <65.36%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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