Commit Graph

57 Commits

Author SHA1 Message Date
Oliver Walters e57a3870c6 Fix build index template 2022-05-07 22:47:48 +10:00
Oliver Walters 9f15dd8e2a Custom panels can now be rendered from a template 2022-05-07 22:32:26 +10:00
Oliver Walters 44c4e88646 Add a configurable setting to the demo plugin 2022-05-07 02:17:20 +10:00
Oliver Walters 96f61dfcdb Add plugin description 2022-05-06 23:48:24 +10:00
Oliver Walters bcf6e41b48 Add some example docs 2022-05-06 23:43:54 +10:00
Oliver Walters 12c58b14d6 Improvements for panel mixin sample 2022-05-06 23:19:47 +10:00
Oliver Walters c80b36fc2f Adds a new InvenTreePluginMixin mixin class for enabling custom plugin rendering on a page
- Any view which needs custom plugin code must implement this mixin
- Initially implement for the PartDetail page
2022-05-06 22:52:52 +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 Walters 28e16616e5 Adds a PanelMixin plugin mixin class
Intended to allow rendering of custom panels on pages
2022-05-06 21:32:11 +10:00
Matthias 8038cff874
ignore for coverage 2022-05-04 00:43:49 +02:00
Matthias 6504ef535a
fix test - len needs to be recalculated 2022-05-03 23:23:36 +02:00
Matthias 096c0c876c
PEP fix 2022-05-03 22:58:24 +02:00
Matthias d49f74746a
test that MixinImplementationErrors raise 2022-05-03 22:56:28 +02:00
Matthias 204b4fd527
rename test 2022-05-03 22:55:39 +02:00
Matthias 626e3838ae
also cover errors 2022-05-03 22:15:24 +02:00
Matthias a357c4ef88
also cover unregistering 2022-05-03 22:13:29 +02:00
Matthias 58a5eac66a
ignore outside sample code in coverage 2022-05-03 22:06:10 +02:00
Matthias 7c437a3cf2
adjust testing function to also check return 2022-05-03 21:59:17 +02:00
Matthias 70b108d813
add check for call function 2022-05-03 21:56:58 +02:00
Matthias 5ea6a325ee
fix smaple code 2022-05-03 21:48:49 +02:00
Matthias 5fa7b45d1d
Add tests for scheduling
Closes #2523
2022-05-03 21:39:45 +02:00
Matthias e7a0cf7342
fix old url() usage 2022-05-01 22:04:37 +02: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
Oliver 934de1f772 Adds the ability for 'scheduled tasks' to be member functions of plugins 2022-01-13 10:24:47 +11:00
Matthias f53e66d4c3
Rename registry to make it clearer 2022-01-11 01:00:41 +01:00
Oliver fde2b03172 Merge remote-tracking branch 'inventree/master' into triggers
# Conflicts:
#	InvenTree/plugin/mixins/__init__.py
2022-01-10 20:34:42 +11: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
Matthias ad9a9da656
PEP fix 2022-01-09 03:35:29 +01:00
Matthias f9742ab41d
add integration test for plugin 2022-01-09 03:34:27 +01:00
Matthias cc8948c708
fix sample url 2022-01-09 03:34:08 +01:00
Matthias ea8fd21af0
pip fix 2022-01-09 03:10:23 +01:00
Matthias 61b21d1ec1
add sample for api caller 2022-01-09 03:03:05 +01: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
Oliver Walters c04e07c1fa Add a task which fails on purpose 2022-01-07 17:04:33 +11:00
Oliver Walters 3eb1fa32f9 Scheduled tasks get registered for the background worker 2022-01-07 16:51:00 +11:00
Oliver Walters 794a9e75e8 Add validation for scheduled tasks defined by a plugin 2022-01-07 15:37:43 +11:00
Oliver Walters 0773545615 Add "ScheduleMixin" for scheduling tasks 2022-01-07 14:54:04 +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 f3bfe6e7ca More refactoring:
- Rename "mixins_globalsettings" to "mixing_settings"
- Fix translation on settings page template
2022-01-02 11:22:05 +11:00
Oliver 02e0ea6e3a Rename "GlobalSettingsPlugin" -> "SettingsPlugin" 2021-12-31 14:25:22 +11:00
Matthias 2e28bb225f
fix broken integration plugin def 2021-11-21 23:50:54 +01:00
Matthias 6b1c436135
names of plugins must be unique 2021-11-21 02:24:08 +01:00
Matthias 290e91ff79
there are many ways to be broken ... 2021-11-21 02:19:14 +01:00
Matthias 8ac41970ad
simpler imports 2021-11-20 17:46:50 +01:00
Matthias b596e4f164
remove unneeded stuff from broken sample
and optimize for coverage
2021-11-20 16:37:54 +01:00
Matthias 98b0a2995f
ignore error in borken sampel -> it should not work 2021-11-20 12:29:29 +01:00
Matthias f667367a6b
add broken plugin for testing error stack 2021-11-20 04:08:21 +01:00
Matthias 40cf7869d3
refactor mixin locations 2021-11-16 00:40:49 +01:00
Matthias 45167fe2f0
PEP fixes 2021-11-15 07:47:52 +01:00