2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-18 18:56:31 +00:00

[Feature] Override global settings (#9718)

* Provide mechanism for config to override global settings

* Ensure overrides are observed on save

* Refactor

* Add "read_only" field to serializer

* Prevent editing for read_only settings

* Bump API version

* Update docs

* Secure logs

* Override applies to default_value

* override get_setting method

* Add unit test

* Utilize new approach to override SITE_URL

* Docs updates

* Docs tweaks

* Shortcut for get_global_setting

* Remove previous change

- Allow validation to be performed within the InvenTreeSetting class

* Override INVENTREE_BASE_URL setting

* Handle error on worker boot

* Tweak unit test
This commit is contained in:
Oliver
2025-06-07 20:08:34 +10:00
committed by GitHub
parent 12677ccf22
commit 4b71130ebe
14 changed files with 178 additions and 23 deletions

View File

@@ -33,6 +33,7 @@ export interface Setting {
plugin?: string;
method?: string;
required?: boolean;
read_only?: boolean;
}
export interface SettingChoice {