Matthias
|
1571b99ed2
|
rename IntegrationPluginBase to InvenTreePlugin
|
2022-05-11 14:28:26 +02:00 |
|
Matthias
|
01e8b5dce3
|
remove InvenTreePluginBase
|
2022-05-11 14:21:16 +02:00 |
|
Oliver Walters
|
30d799dbc6
|
Fix permissions for global settings API
|
2022-05-09 21:43:12 +10:00 |
|
Oliver Walters
|
037e057c53
|
Adds global setting to enable or disable webcam support for barcode scanning
|
2022-05-09 19:46:11 +10:00 |
|
Oliver Walters
|
aed02f6f0f
|
PEP fixes
|
2022-05-08 22:53:49 +10:00 |
|
Oliver Walters
|
3a9bacb27c
|
Implement new approach for plugin settings
- URL specifies plugin slug and setting key
|
2022-05-08 22:48:47 +10:00 |
|
Oliver Walters
|
5cd2c20a11
|
PEP style fixes
|
2022-05-08 17:32:23 +10:00 |
|
Oliver Walters
|
9e872d283b
|
Update unit tests to match new format
- Add more unit tests for global settings
- Add more unit tests for user settings
|
2022-05-08 13:31:53 +10:00 |
|
Oliver Walters
|
5560706c33
|
User settings are now accessed via unique KEY
|
2022-05-08 10:58:31 +10:00 |
|
Oliver Walters
|
cd6a6b9196
|
Access global settings via the API using the <key> of the setting, rather than the <PK>
- Allows us to access settings even if they have not been 'created' yet
- Settings are created with default values if not found
|
2022-05-08 10:39:14 +10:00 |
|
Matthias
|
0d0b713f6e
|
Fix tests
|
2022-05-06 02:26:58 +02:00 |
|
Matthias
|
9a9a7e0ff4
|
also cover list API
|
2022-05-06 01:31:23 +02:00 |
|
Matthias
|
a2331829c9
|
this can not happen with normal operation
|
2022-05-06 01:31:11 +02:00 |
|
Matthias
|
d5c95f2225
|
only safety test - api is not callable as non-user
|
2022-05-06 01:29:16 +02:00 |
|
Matthias
|
8f220837d0
|
only log messages about notification methods
|
2022-05-06 01:25:22 +02:00 |
|
Matthias
|
2b1d4ba9c1
|
add test for plugin settings
|
2022-05-06 01:15:12 +02:00 |
|
Matthias
|
7f8d20da0f
|
test _str
|
2022-05-06 01:12:22 +02:00 |
|
Matthias
|
a77382d0b5
|
sadd test for notification user settings
|
2022-05-06 01:04:00 +02:00 |
|
Matthias
|
ccefaade92
|
Add args back in to serializer
|
2022-05-06 00:48:20 +02:00 |
|
Matthias
|
fe4b264ae1
|
Fix user check
|
2022-05-06 00:11:26 +02:00 |
|
Matthias
|
164a8acf33
|
make genericref simpler
|
2022-05-05 01:31:19 +02:00 |
|
Matthias
|
34855bbb37
|
add API endpoint for notifications
|
2022-05-04 17:38:50 +02:00 |
|
Matthias
|
c684e7d5e0
|
Add generic serializer
|
2022-05-04 16:57:39 +02:00 |
|
Matthias Mair
|
4125803e6d
|
Merge branch 'inventree:master' into matmair/issue2385
|
2022-05-02 21:50:52 +02:00 |
|
Matthias Mair
|
e418a54c25
|
PEP fix
|
2022-05-01 21:48:45 +00:00 |
|
Matthias Mair
|
8490589fa9
|
check for only unique methods to be added
|
2022-05-01 21:46:31 +00:00 |
|
Matthias
|
de6507e918
|
update translation commands
|
2022-05-01 22:03:49 +02:00 |
|
Matthias
|
67ab45bdee
|
update depreciated paths
|
2022-05-01 22:00:18 +02:00 |
|
Matthias
|
d05472b30c
|
upgrade to pyhton 3.9 syntax
using pyupgrade
|
2022-05-01 21:53:12 +02:00 |
|
Oliver Walters
|
526571c062
|
Prevent recursion
|
2022-05-01 22:50:56 +10:00 |
|
Oliver Walters
|
e3c3ed28da
|
PEP fixes
|
2022-05-01 22:46:50 +10:00 |
|
Oliver Walters
|
d72efc3757
|
Small tweaks
- Factor out native_value property (not needed!)
- PEP fixes
|
2022-05-01 22:30:24 +10:00 |
|
Oliver Walters
|
f794d91e5c
|
Adds more unit tests for global settings objects
|
2022-05-01 22:26:51 +10:00 |
|
Oliver Walters
|
0f8f9f3e5e
|
Add unit test for integer settings with validator
|
2022-05-01 22:21:57 +10:00 |
|
Oliver Walters
|
f972551246
|
Add unit test for multiple-choice setting type
|
2022-05-01 22:07:16 +10:00 |
|
Oliver Walters
|
eabe082f0a
|
Add unit tests for boolean user settings (via the API)
|
2022-05-01 20:23:50 +10:00 |
|
Oliver Walters
|
75fa0bed26
|
Render "native value" in serializer
|
2022-05-01 20:13:58 +10:00 |
|
Oliver Walters
|
5d4972d981
|
Convert settings to 'native' values before running callable valiators
|
2022-05-01 19:46:17 +10:00 |
|
Matthias Mair
|
37e74074dd
|
Merge branch 'inventree:master' into matmair/issue2385
|
2022-04-27 17:46:57 +02:00 |
|
Matthias
|
6c23c94700
|
Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue2301
|
2022-04-27 13:13:04 +02:00 |
|
Oliver Walters
|
3f92f009e4
|
Add configurable setting for batch code generation
|
2022-04-26 20:00:06 +10:00 |
|
Matthias
|
f06a11e206
|
fix test
|
2022-04-24 16:17:47 +02:00 |
|
Matthias
|
f1f6c9ff66
|
remove InvenTree from settings texts
|
2022-04-24 15:25:34 +02:00 |
|
Matthias
|
1127bf2497
|
make it possible to resitrict the about modal
|
2022-04-24 01:02:41 +02:00 |
|
Matthias
|
ddcaecb11f
|
How did I miss this?
|
2022-04-07 23:39:05 +02:00 |
|
Matthias
|
4c1a0ea9ce
|
mkae user setting access simpler
|
2022-04-06 23:58:11 +02:00 |
|
Matthias
|
e1d261f989
|
pep fix
|
2022-04-05 23:47:26 +02:00 |
|
Matthias
|
77f5fa9360
|
pep fix
|
2022-04-05 23:45:35 +02:00 |
|
Matthias
|
f3aab952de
|
remove empty class
|
2022-04-05 23:43:50 +02:00 |
|
Matthias
|
47f9bd911a
|
add tests for notifications
|
2022-04-05 23:41:37 +02:00 |
|