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

Update query hash with parameters applied #6683

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

eradman
Copy link
Collaborator

@eradman eradman commented Jan 2, 2024

What type of PR is this?

  • Bug Fix

Description

This allows queries with parameters to run on a schedule since the hash used to update the query_result will match.

Inspired by #6063

How is this tested?

  • Unit tests (pytest, jest)
  • Manually

Related Tickets & Documents

#4182

This allows queries with parameters to run on a schedule since the hash
used to update the query_result will match.
Copy link

codecov bot commented Jan 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1b1b9bd) 63.28% compared to head (790aa9a) 63.30%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6683      +/-   ##
==========================================
+ Coverage   63.28%   63.30%   +0.02%     
==========================================
  Files         162      162              
  Lines       13313    13322       +9     
  Branches     1817     1820       +3     
==========================================
+ Hits         8425     8434       +9     
  Misses       4599     4599              
  Partials      289      289              
Files Coverage Δ
redash/models/__init__.py 91.84% <100.00%> (+0.09%) ⬆️

@justinclift
Copy link
Member

@junnplus @guidopetri @konnectr Anyone back from holidays and able to review this? 😄

Copy link
Contributor

@wlach wlach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a spare moment so took a look at this, seems fine to me.

@guidopetri guidopetri enabled auto-merge (squash) January 10, 2024 03:16
@guidopetri guidopetri merged commit 4d81c31 into getredash:master Jan 10, 2024
15 checks passed
@eradman eradman deleted the query-refresh-schedule branch April 12, 2024 17:22
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.

None yet

4 participants