Stop accessing/altering request.account directly#3599
Conversation
a36edd7 to
b4c9715
Compare
Test results 27 files 27 suites 45m 23s ⏱️ Results for commit bfbb994. ♻️ This comment has been updated with latest results. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3599 +/- ##
==========================================
- Coverage 62.51% 62.50% -0.01%
==========================================
Files 611 611
Lines 45020 45093 +73
Branches 43 43
==========================================
+ Hits 28142 28186 +44
- Misses 16868 16897 +29
Partials 10 10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b4c9715 to
c2b89b9
Compare
lunkwill42
left a comment
There was a problem hiding this comment.
LGTM. Some warts, but some of them will be fixed in subsequent PRs working with the auth system going forward...
lunkwill42
left a comment
There was a problem hiding this comment.
I see now that tests are failing?
c2b89b9 to
6517661
Compare
3e0d584 to
8de6484
Compare
bfbb994 to
8bc85fd
Compare
|
This was moved in #3599, but this instance was forgotten to be changed Which lead an error when accessing the API when unauthenticated
This was moved in #3599, but this instance was forgotten to be changed Which lead an error when accessing the API when unauthenticated
This was moved in #3599, but this instance was forgotten to be changed Which lead an error when accessing the API when unauthenticated



Scope and purpose
Fixes #3598. Nobody should notice this change, tests should be green, sudo should work.
Contributor Checklist
Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to NAV can be found in the
Hacker's guide to NAV.
[ ] Added a changelog fragment for towncrier[ ] Added/amended tests for new/changed code[ ] Added/changed documentation<major>.<minor>.x). For a new feature or other additions, it should be based onmaster.[ ] If applicable: Created new issues if this PR does not fix the issue completely/there is further work to be done[ ] If it's not obvious from a linked issue, described how to interact with NAV in order for a reviewer to observe the effects of this change first-hand (commands, URLs, UI interactions)[ ] If this results in changes in the UI: Added screenshots of the before and after[ ] If this adds a new Python source code file: Added the boilerplate header to that file