2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 04:26:44 +00:00

96 Commits

Author SHA1 Message Date
Matthias
1782974df8
replace depreceated values everywhere 2022-05-11 16:46:03 +02:00
Matthias
1571b99ed2
rename IntegrationPluginBase to InvenTreePlugin 2022-05-11 14:28:26 +02:00
Matthias
5a139ec74b
make import simpler
the minimum version is 3.9
2022-05-11 13:19:24 +02:00
Matthias
4ae5ed36a7
fix imports 2022-05-11 12:53:31 +02:00
Oliver Walters
b3c1d6b603 Fix plugin registry function so tests pass 2022-05-09 07:59:01 +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
7b8a10173d Adds a new "Panel" mixin which can render custom panels on given pages
- Adds item to sidebar menu
- Adds panel content
- Runs custom javascript when the page is loaded
2022-05-06 22:49:51 +10:00
Oliver
9e1d8e52f3
Merge pull request #2805 from matmair/matmair/issue2385
Plugins for notifications
2022-05-06 20:00:56 +10:00
Matthias
baf7e4505e
do not cover pacakge code - is not CI'd 2022-05-06 01:52:32 +02:00
Matthias
1a70829f5c
do not cover dev error catcher 2022-05-06 01:12:11 +02:00
Matthias
a27f8a427a
Merge branch 'matmair/issue2385' of https://github.com/matmair/InvenTree into matmair/issue2385 2022-05-04 17:40:47 +02:00
Matthias
cf986e557c
make unloading safer 2022-05-04 17:40:44 +02:00
Matthias
8038cff874
ignore for coverage 2022-05-04 00:43:49 +02:00
Matthias
e7a0cf7342
fix old url() usage 2022-05-01 22:04:37 +02:00
Oliver
4e041e97b9 Catch potential IntegrityError when importing plugins 2022-03-24 13:00:03 +11:00
Matthias Mair
91464ad3d0
Merge branch 'inventree:master' into matmair/issue2524 2022-03-16 15:15:27 +01:00
Matthias
51860a4e7b
run with u flag 2022-03-15 01:33:01 +01:00
Matthias
e398d64885
just use the setting 2022-03-15 01:25:52 +01:00
Matthias
d9d2f39072
just run install 2022-03-15 01:24:58 +01:00
Matthias
38938e892b
[FR] [Plugin] Check if all plugins are really installed
Fixes #2524
2022-03-14 23:50:09 +01:00
Matthias
b1a3445338
ignore coverage for points that only gets reached by deadly broken plugins 2022-03-13 20:57:25 +01:00
Matthias
a3d0dcb5bb
only applicable in mulithread enviroments 2022-03-13 20:56:36 +01:00
Matthias
aee8ca1c78
do not cover safety functions for wrongly conf swarms 2022-03-13 20:56:16 +01:00
Matthias
f2aeab09ec
should never be reached 2022-03-13 20:55:25 +01:00
Matthias
08d2e74521
do not cover disabled / debugging plugins cases 2022-03-13 20:55:11 +01:00
Matthias
e0e87efb8c
do not cover old import 2022-03-13 20:53:49 +01:00
Matthias
bae290d605
check git version and safe for runtime 2022-02-28 00:17:21 +01:00
Matthias
ad41957127
database not ready events are hard to reproduce consistently 2022-02-13 17:39:17 +01:00
Matthias
21125eb892
add docstring 2022-01-20 23:55:07 +01:00
Oliver
3fb77f466c PEP fixes 2022-01-13 11:00:33 +11:00
Oliver
ae016730f8 Fix - needs a global function to schedule 2022-01-13 10:53:33 +11:00
Oliver
934de1f772 Adds the ability for 'scheduled tasks' to be member functions of plugins 2022-01-13 10:24:47 +11:00
Matthias
678b89e093
consolidate helpers 2022-01-12 00:59:09 +01:00
Matthias
3dab1ab736
remove unneeded branches 2022-01-12 00:56:18 +01:00
Matthias
4f74ae3fce
readd import 2022-01-12 00:22:06 +01:00
Matthias
62236474e2
Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue2519 2022-01-12 00:12:32 +01:00
Oliver
8aec055e6c Only load plugins if PLUGINS_ENABLED is true
- Hide plugin settings
- Add plugin support status to "stats" dialog
2022-01-11 13:39:47 +11:00
Matthias
9bb6bb294c
rename 2022-01-11 01:12:50 +01:00
Matthias
3ae84617d0
change default values for plugin hadler 2022-01-11 01:01:51 +01:00
Matthias
f53e66d4c3
Rename registry to make it clearer 2022-01-11 01:00:41 +01:00
Matthias
3b6e31cd35
Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue2519 2022-01-10 23:48:43 +01:00
Matthias
18cb676ce3
another PEP fix 2022-01-10 02:17:50 +01:00
Matthias
7d160039b1
PEP fixes 2022-01-10 02:15:58 +01:00
Matthias
632632c8ad
fix lookup function 2022-01-10 01:28:44 +01:00
Matthias
bb559deb5d
add docstrings 2022-01-10 01:00:45 +01:00
Matthias
bcb0f62e42
remove old loading mechanism 2022-01-10 00:59:24 +01:00
Oliver
3731d688c9 Refactor behaviour of "event" mixin:
- Trigger a new background task for each plugin
- Call plugin.process_event
- Plugin class can then decide what to do with the particular event
2022-01-09 22:52:28 +11:00
Oliver
04d25a60b0 Adds sample plugin which responds to triggered events
- Adds some example trigger events for the "Part" model
2022-01-08 09:07:27 +11:00
Matthias
220bf0db3a
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-install 2022-01-07 08:57:04 +01:00