-
-
Notifications
You must be signed in to change notification settings - Fork 783
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
Setting refactor #7404
Setting refactor #7404
Conversation
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7404 +/- ##
==========================================
- Coverage 83.86% 83.71% -0.16%
==========================================
Files 1057 1058 +1
Lines 46408 46582 +174
Branches 1386 1386
==========================================
+ Hits 38918 38994 +76
- Misses 7129 7224 +95
- Partials 361 364 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; should we add a pre-commit hook that ensures the new helpers are used / the model is not accessed directly?
- Work out what is going on in CI
- Cannot reproduce locally?
Not really sure - looks like the DB is not cleaned |
I cannot reproduce locally on a 3.9/sqlite setup... |
@matmair found the issue, a new setting was being created in the validator for a different setting. |
That is a tricky one to find! |
* Add helper functions to set/get settings * Refactor instances of get_setting * UPdates * Fix for task * Add debug messages - Work out what is going on in CI * add more debug - Cannot reproduce locally? * More debug... * Remove debug prints * Add better debug msg * Simplify unit test * Increase timeout for plugin tests * Update validator code
Adds helper functions for "get" and "set" for server-side settings.