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

Fixed embedded queries #6497

Merged
merged 2 commits into from
Oct 4, 2023
Merged

Conversation

denisov-vlad
Copy link
Member

@denisov-vlad denisov-vlad commented Oct 3, 2023

What type of PR is this?

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

Description

Fixed #6496
Also rewrote some methods to static and removed shadowing variable from outer scope.

How is this tested?

  • Unit tests (pytest, jest)
  • E2E Tests (Cypress)
  • Manually
  • N/A

Related Tickets & Documents

#6496

@codecov
Copy link

codecov bot commented Oct 3, 2023

Codecov Report

Merging #6497 (277d77c) into master (c3c54f6) will increase coverage by 0.03%.
Report is 6 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #6497      +/-   ##
==========================================
+ Coverage   61.07%   61.10%   +0.03%     
==========================================
  Files         157      158       +1     
  Lines       12834    12883      +49     
  Branches     1747     1753       +6     
==========================================
+ Hits         7838     7872      +34     
- Misses       4755     4765      +10     
- Partials      241      246       +5     
Files Coverage Δ
redash/models/users.py 94.80% <100.00%> (+0.51%) ⬆️

... and 3 files with indirect coverage changes

@justinclift
Copy link
Member

Is it feasible to add some kind of test, so the same bug doesn't happen again in future? 😄

@denisov-vlad
Copy link
Member Author

@justinclift added tests for Users model

@justinclift
Copy link
Member

@denisov-vlad Awesome, thanks heaps. 😄

@justinclift justinclift added python Pull requests that update Python code Team Review Meets PR criteria, ready for full review labels Oct 3, 2023
@justinclift
Copy link
Member

@guidopetri @konnectr @gaecoli @rpmcoding Any interest in reviewing this?

It looks like fairly straight forward Python. 😄

@justinclift
Copy link
Member

Thanks @konnectr. 😄

@justinclift justinclift merged commit a19b17b into getredash:master Oct 4, 2023
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Jan 8, 2025
* refactored users models

* added tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code Team Review Meets PR criteria, ready for full review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shared queries don't work
3 participants