2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 19:20:55 +00:00
Commit Graph

665 Commits

Author SHA1 Message Date
f53e66d4c3 Rename registry to make it clearer 2022-01-11 01:00:41 +01:00
0283214034 add custom errors for plugin 2022-01-11 00:43:18 +01:00
dd2547e117 readd spaces 2022-01-11 00:32:56 +01:00
c3d7a26f5d readd api call (dont know how that happened) 2022-01-11 00:30:17 +01:00
588936f6f4 PEP fix 2022-01-10 23:53:34 +01:00
e08c87e49f Merge branch 'matmair/issue2519' of https://github.com/matmair/InvenTree into matmair/issue2519 2022-01-10 23:52:00 +01:00
3b6e31cd35 Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue2519 2022-01-10 23:48:43 +01:00
fde2b03172 Merge remote-tracking branch 'inventree/master' into triggers
# Conflicts:
#	InvenTree/plugin/mixins/__init__.py
2022-01-10 20:34:42 +11:00
4ae86c8c14 Reject triggered events when running special commands 2022-01-10 20:12:43 +11:00
0a40c253a5 Do not fire events for some tables 2022-01-10 19:56:43 +11:00
1243923944 Event refactoring 2022-01-10 17:28:44 +11:00
886b1f1d72 Simplify event triggering
- add generic receivers for database actions
- exclude django_q tables, otherwise we get an infinite loop!

Ref: https://stackoverflow.com/questions/17507784/consolidating-multiple-post-save-signals-with-one-receiver/32230933#32230933
2022-01-10 17:24:53 +11:00
2bc4d57ffa remove double code 2022-01-10 02:49:34 +01:00
18cb676ce3 another PEP fix 2022-01-10 02:17:50 +01:00
7d160039b1 PEP fixes 2022-01-10 02:15:58 +01:00
632632c8ad fix lookup function 2022-01-10 01:28:44 +01:00
20e712a287 update barcodes to use mixin 2022-01-10 01:23:48 +01:00
4fc3e85a53 use new loading mechanism for barcodes too 2022-01-10 01:06:05 +01:00
13ff94b6b2 remove dead code 2022-01-10 01:05:32 +01:00
bb559deb5d add docstrings 2022-01-10 01:00:45 +01:00
6affc7550b add depreciation TODO 2022-01-10 01:00:12 +01:00
bcb0f62e42 remove old loading mechanism 2022-01-10 00:59:24 +01:00
8088bf28fe refactor ActionPlugin to use mixin 2022-01-10 00:40:19 +01:00
6af2267e3d fix test 2022-01-09 23:05:51 +01:00
bf7af8f72a cover another missing setting 2022-01-09 23:01:38 +01:00
afada6b759 test the url arg building 2022-01-09 22:56:14 +01:00
2c05b858a4 renmae var 2022-01-09 22:34:02 +01:00
c8599039a2 added test for wrong config 2022-01-09 22:33:14 +01:00
e889f487f0 added a check for the required constants 2022-01-09 22:27:50 +01:00
31d587a9b1 unittests fdor ApiCallMixin 2022-01-09 22:19:01 +01:00
c699ced34a make general mixin tests multi mixin enabled 2022-01-09 22:16:19 +01:00
e891e0a2b9 typo fix 2022-01-09 23:02:24 +11:00
d765be8c73 Iterate through plugins in a separate background task 2022-01-09 22:58:59 +11:00
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
ad9a9da656 PEP fix 2022-01-09 03:35:29 +01:00
f9742ab41d add integration test for plugin 2022-01-09 03:34:27 +01:00
cc8948c708 fix sample url 2022-01-09 03:34:08 +01:00
b48e9bcac9 fix settings call 2022-01-09 03:33:47 +01:00
ea8fd21af0 pip fix 2022-01-09 03:10:23 +01:00
ed193e9e90 docstring for plugin base import class 2022-01-09 03:04:00 +01:00
61b21d1ec1 add sample for api caller 2022-01-09 03:03:05 +01:00
19f2c44c2a change mixin name 2022-01-09 03:02:19 +01:00
33ee7e53db append docstring 2022-01-09 03:01:50 +01:00
d939107d36 add example 2022-01-09 03:01:31 +01:00
3aea1bb7ba made docstring clearer 2022-01-08 21:59:02 +01:00
f59b59401f refactor setting 2022-01-08 21:58:44 +01:00
62394c4a82 small reformat 2022-01-08 21:54:42 +01:00
3bc3e98ed1 Merge branch 'master' of https://github.com/inventree/InvenTree into api-mixin 2022-01-08 21:50:37 +01:00
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
a604d85f0f Move events.py to the plugin app 2022-01-07 22:35:54 +11:00