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(user-dao): return user model instances #30020

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

villebro
Copy link
Member

@villebro villebro commented Aug 26, 2024

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

Copy link

codecov bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.68%. Comparing base (76d897e) to head (6e405f2).
Report is 635 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.25%) ⬇️
javascript ?
mysql 76.77% <100.00%> (?)
postgres 76.84% <100.00%> (?)
presto 53.48% <50.00%> (-0.32%) ⬇️
python 83.68% <100.00%> (+20.20%) ⬆️
sqlite 76.31% <100.00%> (?)
unit 60.28% <100.00%> (+2.66%) ⬆️

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.

@villebro villebro changed the title fix(user-dao): fix(user-dao): return user model instances Aug 26, 2024
@villebro
Copy link
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
Copy link
Member

@mistercrunch mistercrunch left a comment

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
41 of 43 checks passed
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M v4.1 Label added by the release manager to track PRs to be included in the 4.1 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants