Commit Graph

385 Commits

Author SHA1 Message Date
Oliver 9e2250e9b8 Bug fixes for settings 2022-01-08 13:19:16 +11:00
Oliver 8ff3bf1ad1 Adds a new setting to enable event responses 2022-01-07 21:53:42 +11:00
Oliver Walters ff598a22ff bug fix : correct setting name when changing a 'requires restart' setting 2022-01-07 16:20:16 +11:00
Oliver Walters 794a9e75e8 Add validation for scheduled tasks defined by a plugin 2022-01-07 15:37:43 +11:00
Oliver 928b90a833 Edit plugin settings via the "settings" display 2022-01-04 21:03:01 +11:00
Oliver dc9e25ebad Adds API endpoints for viewing and updating plugin settings
A lot of code updates / refactoring here to get this to work as expected
2022-01-04 20:27:35 +11:00
Oliver 7cb029e7c3 Refactor: Rename "GLOBAL_SETTINGS" to "SETTINGS" 2022-01-01 22:43:35 +11:00
Oliver 547db3322f Adds new "PluginSetting" class
- Adds settings which are unique to a particular plugin
2022-01-01 22:00:43 +11:00
Matthias 3a3f8ba4ef
Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue2201 2021-12-08 18:31:33 +01:00
Matthias 0f0460f8ea
merge 2021-12-02 17:24:07 +01:00
Matthias 6eee332da8
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-23 18:39:51 +01:00
Matthias d884e62be1
[FR] Confirm to W293
Fixes #2335
2021-11-23 00:28:23 +01:00
Matthias d8963fd5b1
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-20 13:50:13 +01:00
Matthias 1a6a26204e
make sure protected values are never exposed 2021-11-20 00:24:17 +01:00
Matthias 1798214cd2
add protected settings in model 2021-11-19 23:59:57 +01:00
Matthias eee9047818
[FR] Two-Factor Authentication
Fixes #2201
2021-11-19 23:48:12 +01:00
Matthias 4baf2971da
remove webhook apis 2021-11-19 22:53:22 +01:00
Matthias d4939e058c
remove admin 2021-11-19 22:52:42 +01:00
Matthias d57fc5392b
remove model 2021-11-19 22:52:29 +01:00
Matthias 03f343a368
remve tests 2021-11-19 22:50:55 +01:00
Matthias f6ff6c3e68
remove webhook migrations 2021-11-19 22:49:24 +01:00
Matthias b10492f088
rename global settings objects 2021-11-14 00:24:32 +01:00
Matthias c612cfcfba
mark restart required in the settings 2021-11-12 08:03:25 +01:00
Matthias e542a8f8e3
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-12 07:51:25 +01:00
Oliver 1deb0f2c1b
Merge pull request #2296 from SchrodingersGat/requires-restart
Requires restart
2021-11-12 16:02:31 +11:00
Oliver a470181ac6 Style fixes 2021-11-12 15:42:53 +11:00
Matthias 3be21c59ec
remove default listing without a key 2021-11-11 23:07:46 +01:00
Oliver 03aa9bc9b0 Tweaks for settings admin views 2021-11-11 22:39:31 +11:00
Oliver d4db750d2f Clear the SERVER_RESTART_REQUIRED flag automatically when the server reloads 2021-11-11 22:26:46 +11:00
Matthias b4faaa7a46
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-11 12:18:13 +01:00
Oliver 626637a06a Add "hidden" property to global settings
- Allows certain settings to be hidden from the javascript files
2021-11-11 22:16:46 +11:00
Oliver 2f3772f3bf define "requires_restart" function for global setting 2021-11-11 22:16:28 +11:00
Matthias bae28e8207
Add setting for enabeling reports
Fixes #2278
2021-11-10 23:54:54 +01:00
Matthias d982bfe201
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-10 00:37:49 +01:00
Matthias 2835022330
merge 2021-11-10 00:30:21 +01:00
Oliver 3dae0c9c1c Remove old unit test code 2021-11-10 08:48:51 +11:00
Oliver e303b5a39b Catch for null value for settings choices 2021-11-09 22:37:50 +11:00
Oliver 8d7b73e2a8 Adds support for "multiple choice" field 2021-11-09 22:25:42 +11:00
Oliver 721d10a9ec Allow empty URLs 2021-11-09 22:14:26 +11:00
Oliver 7dce9f3f3b PEP fixes 2021-11-09 21:37:54 +11:00
Oliver 476d2545ad Remove old server-side view 2021-11-09 21:33:32 +11:00
Oliver 5df4374607 javascript for editing settings via API 2021-11-09 21:16:37 +11:00
Oliver 324335a620 Convert to "native value" in the serializer 2021-11-09 17:43:36 +11:00
Oliver 4433befbdc Add list of 'choices' (read only) to serializer
- Check that the specified value is one of the valid options (if provided)
2021-11-09 17:21:59 +11:00
Oliver 07851f0b2c Include 'setting type' in API data 2021-11-09 17:07:41 +11:00
Oliver 0374c27d7c Adds "detail" view for user setting
- Users can only view / edit their own settings
2021-11-09 16:14:10 +11:00
Oliver f3b4f7aa28 Add "detail" view for global settings objects
- Can view and edit (but not delete)
- User must have "staff" status to access
2021-11-09 16:07:25 +11:00
Oliver cb583eb466 Add LIST endpoint for global settngs and user settings
- Read only, cannot create new settings
- User settings filters against the user making the request
2021-11-09 15:59:09 +11:00
Matthias df72cb2608
merge upstream 2021-11-04 23:44:41 +01:00
Matthias 0daba629fe
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-04 14:23:17 +01:00