2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00
Commit Graph

258 Commits

Author SHA1 Message Date
8efd45f0ad log warning message if db not ready 2022-01-07 18:00:38 +11:00
668e2bfcd5 Further error catching 2022-01-07 17:20:57 +11:00
103dfaa2a5 try/catch for operational error
- Database might not yet be ready to load models
2022-01-07 17:11:53 +11:00
c04e07c1fa Add a task which fails on purpose 2022-01-07 17:04:33 +11:00
36feef6558 Remove log message if not relevent 2022-01-07 16:53:51 +11:00
3eb1fa32f9 Scheduled tasks get registered for the background worker 2022-01-07 16:51:00 +11:00
0ab9b2dbc7 Bug fix - always allow plugins to register settings 2022-01-07 15:42:20 +11:00
794a9e75e8 Add validation for scheduled tasks defined by a plugin 2022-01-07 15:37:43 +11:00
326b897d14 Revert "Move mixins.py into main plugin directory"
This reverts commit 8103b84268.
2022-01-07 14:54:12 +11:00
0773545615 Add "ScheduleMixin" for scheduling tasks 2022-01-07 14:54:04 +11:00
8103b84268 Move mixins.py into main plugin directory 2022-01-07 14:23:32 +11:00
ac849c1566 Fixes for unit tests 2022-01-04 21:36:27 +11:00
928b90a833 Edit plugin settings via the "settings" display 2022-01-04 21:03:01 +11:00
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
f3bfe6e7ca More refactoring:
- Rename "mixins_globalsettings" to "mixing_settings"
- Fix translation on settings page template
2022-01-02 11:22:05 +11:00
737467a1fd Rename "has_globalsettings" -> "has_settings" 2022-01-01 23:14:34 +11:00
7cb029e7c3 Refactor: Rename "GLOBAL_SETTINGS" to "SETTINGS" 2022-01-01 22:43:35 +11:00
7f08c75a08 Add missing migration file 2022-01-01 22:00:58 +11:00
547db3322f Adds new "PluginSetting" class
- Adds settings which are unique to a particular plugin
2022-01-01 22:00:43 +11:00
9b468ba92e Second fix for the first fix 2021-12-31 15:20:32 +11:00
78120bb020 Fixes for unit tests 2021-12-31 14:54:19 +11:00
4b4d4be13e Registry name fixes 2021-12-31 14:28:16 +11:00
02e0ea6e3a Rename "GlobalSettingsPlugin" -> "SettingsPlugin" 2021-12-31 14:25:22 +11:00
e02a2cef1b Fixes unit test 2021-12-31 14:18:27 +11:00
be3bb05edd Improve docstrings 2021-12-30 23:06:28 +11:00
04820c894b getattr should look for "SETTINGS" and not "GLOBALSETTINGS" 2021-12-30 23:04:08 +11:00
67d9d9413f Plugin code bug fix
- handle case where self.plugin is None
2021-12-30 22:58:11 +11:00
e6ad22ec15 fix plugin urlpattern patching 2021-12-10 01:34:47 +01:00
529987bb17 remove unneeded Todo 2021-12-04 19:52:56 +01:00
8fddf66618 remove unneeded TODO 2021-11-23 23:40:52 +01:00
8236c51827 PEP fix 2021-11-23 18:42:41 +01:00
aae0018a72 stop CI failing 2021-11-22 03:02:03 +01:00
3050bb0703 higher retry threshold + better logging 2021-11-22 02:46:03 +01:00
395573ca5b do not trigger reload 2021-11-22 01:55:21 +01:00
40dafb7fda PEP fix 2021-11-22 01:36:37 +01:00
1efdf16f92 only reload one 2021-11-22 01:30:04 +01:00
3920108d83 do not reload whe currently loading 2021-11-22 01:28:36 +01:00
d54bbf562b remove redundant loggin 2021-11-22 01:06:12 +01:00
4b98ea27ce better format 2021-11-22 00:52:51 +01:00
c496076505 check if file plugin was disabled 2021-11-22 00:52:42 +01:00
38eaca1104 fix path prefixes 2021-11-22 00:48:46 +01:00
e5d474fa0b always set flag 2021-11-22 00:17:35 +01:00
adc058c8b4 only reload once - even if forced 2021-11-22 00:17:04 +01:00
a1b821bf78 just use the default failing mechanism 2021-11-22 00:16:43 +01:00
c3e4a56021 always reset plugin modules on collection 2021-11-22 00:16:09 +01:00
8e7c96626f that statement is quite important 2021-11-21 23:57:45 +01:00
f71b40e031 also handle errors on internal plugins 2021-11-21 23:51:36 +01:00
2e28bb225f fix broken integration plugin def 2021-11-21 23:50:54 +01:00
87947c582d always log error 2021-11-21 23:48:33 +01:00
7782a22f38 make plugin init safe 2021-11-21 23:46:54 +01:00