You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method seems to be some kind of a remnant from a time long past. It's called get_all() but only returns app setting values with APP_SETTING_SCOPE_PROJECT.
In SODAR Core this is only used in tests, while in SODAR there is one use in taskflowbackend.plugins. I don't know about Varfish or Kiosc yet but will check.
I need to review its use and see if this should be removed completely, or refactored into something sensible. This may be a breaking change depending on which course I'll take.
Issues with the method:
It says in the docstring it "returns all settings"
In reality, it only gets definitions of APP_SETTING_SCOPE_PROJECT
However, in parameters it allows setting user kwarg and no project
If filtering results to a specific scope are needed, this can be done by checking against definitions.
Spec
Create get_all_by_scope() which works similarly, but explicitly requiring the scope
The text was updated successfully, but these errors were encountered:
mikkonie
added
breaking
Breaking change, to be implemented and documented with care
feature
Requested feature or enhancement
tbd
Comments wanted, spec/schedule/prioritization to be decided, etc.
app: projectroles
Issue in the projectroles app
labels
Jan 6, 2025
Update: @stolpeo confirmed that this is used in Varfish. So we'll need to see about the usage there too.
mikkonie
changed the title
Remove or refactor AppSettingAPI.get_all()
Remove, deprecate or refactor AppSettingAPI.get_all()
Jan 6, 2025
mikkonie
changed the title
Remove, deprecate or refactor AppSettingAPI.get_all()
Refactor AppSettingAPI.get_all()
Jan 9, 2025
mikkonie
changed the title
Refactor AppSettingAPI.get_all()
AppSettingAPI.get_all() only returns PROJECT scope settings
Jan 9, 2025
mikkonie
added
bug
Something isn't working
and removed
feature
Requested feature or enhancement
tbd
Comments wanted, spec/schedule/prioritization to be decided, etc.
labels
Jan 9, 2025
mikkonie
changed the title
AppSettingAPI.get_all() only returns PROJECT scope settings
Fix and refactor AppSettingAPI.get_all()
Jan 9, 2025
This method seems to be some kind of a remnant from a time long past. It's called
get_all()
but only returns app setting values withAPP_SETTING_SCOPE_PROJECT
.In SODAR Core this is only used in tests, while in SODAR there is one use in
taskflowbackend.plugins
. I don't know about Varfish or Kiosc yet but will check.I need to review its use and see if this should be removed completely, or refactored into something sensible. This may be a breaking change depending on which course I'll take.
Issues with the method:
APP_SETTING_SCOPE_PROJECT
user
kwarg and noproject
If filtering results to a specific scope are needed, this can be done by checking against definitions.
Spec
get_all_by_scope()
which works similarly, but explicitly requiring the scopeget_all_by_scope()
fromget_all()
get_all()
with a warningTasks
get_all_by_scope()
get_all()
The text was updated successfully, but these errors were encountered: