Skip to content

fix(user-dao): return user model instances - #30020

Merged
villebro merged 2 commits into
apache:masterfrom
villebro:villebro/user-dao
Aug 26, 2024
Merged

villebro merged 2 commits into
apache:masterfrom
villebro:villebro/user-dao

Conversation

@villebro

@villebro villebro commented Aug 26, 2024 •

Copy link
Copy Markdown
Member

SUMMARY

#27849 introduced a DAO for the User model which didn't return instances of the security_manager.user_model. This fixes that issue, adds a unit test and also refactors the existing tests so that they no longer use mocks.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov

codecov Bot commented Aug 26, 2024 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.68%. Comparing base (76d897e) to head (6e405f2).
⚠️ Report is 2419 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #30020       +/-   ##
===========================================
+ Coverage   60.48%   83.68%   +23.19%     
===========================================
  Files        1931      528     -1403     
  Lines       76236    38206    -38030     
  Branches     8568        0     -8568     
===========================================
- Hits        46114    31974    -14140     
+ Misses      28017     6232    -21785     
+ Partials     2105        0     -2105     
Flag Coverage Δ
hive 48.92% <50.00%> (-0.24%) ⬇️
javascript ?
mysql 76.77% <100.00%> (?)
postgres 76.84% <100.00%> (?)
presto 53.48% <50.00%> (-0.32%) ⬇️
python 83.68% <100.00%> (+20.18%) ⬆️
sqlite 76.31% <100.00%> (?)
unit 60.28% <100.00%> (+2.65%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@villebro villebro changed the title fix(user-dao): fix(user-dao): return user model instances Aug 26, 2024
@villebro

Copy link
Copy Markdown
Member Author

@michael-s-molina @sadpandajoe @rusackas we discussed this last Friday - can you take a look?

@villebro
villebro requested a review from rusackas August 26, 2024 21:15

@mistercrunch mistercrunch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@villebro
villebro merged commit fcf0450 into apache:master Aug 26, 2024
@villebro
villebro deleted the villebro/user-dao branch August 26, 2024 23:50
@michael-s-molina michael-s-molina added the v4.1 Label added by the release manager to track PRs to be included in the 4.1 branch label Aug 27, 2024
sadpandajoe pushed a commit that referenced this pull request Aug 27, 2024
@github-actions github-actions Bot added 🍒 4.1.0 Cherry-picked to 4.1.0 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels labels Nov 14, 2024
@mistercrunch mistercrunch added the 🍒 4.1.1 Cherry-picked to 4.1.1 label Nov 27, 2024
@villebro villebro mentioned this pull request Mar 27, 2025
2 of 9 tasks
@github-actions github-actions Bot added the 🍒 4.1.2 Cherry-picked to 4.1.2 label Apr 1, 2025
@mistercrunch mistercrunch added 🍒 4.1.3 Cherry-picked to 4.1.3 🚢 5.0.0 First shipped in 5.0.0 labels Jul 29, 2025
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/M v4.1 Label added by the release manager to track PRs to be included in the 4.1 branch 🍒 4.1.0 Cherry-picked to 4.1.0 🍒 4.1.1 Cherry-picked to 4.1.1 🍒 4.1.2 Cherry-picked to 4.1.2 🍒 4.1.3 Cherry-picked to 4.1.3 🍒 4.1.4 🚢 5.0.0 First shipped in 5.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants