2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00
Commit Graph

665 Commits

Author SHA1 Message Date
688cb7469c fix usage of old html tags 2022-05-09 19:58:38 +02:00
6c0661a6f2 PEP style fixes 2022-05-09 23:52:19 +10:00
57f3efe758 Adds an endpoint for calling the plugin code to "locate" something 2022-05-09 23:42:28 +10:00
4704db5183 Adds 'locate item' and 'locate location' buttons 2022-05-09 22:48:26 +10:00
26f32a0ce8 Plugin list API filters
- Filter by "active" status
- Filter by "mixin" support
2022-05-09 22:33:33 +10:00
6aeb7d723d Fix typo in mixin name 2022-05-09 22:25:09 +10:00
0a0a6a799a Fix for sample plugin 2022-05-09 22:20:00 +10:00
172705cc3b Adds sample plugin for locating items 2022-05-09 22:13:07 +10:00
59c747841c Adds plugin mixin to "locate" items 2022-05-09 22:01:27 +10:00
b3c1d6b603 Fix plugin registry function so tests pass 2022-05-09 07:59:01 +10:00
aed02f6f0f PEP fixes 2022-05-08 22:53:49 +10:00
3a9bacb27c Implement new approach for plugin settings
- URL specifies plugin slug and setting key
2022-05-08 22:48:47 +10:00
f733e23b65 Update serializer for plugin settings API
- Use string key rather than pk for plugin
- Allow filtering by 'enabled' status of the plugin
- Allow filtering by the plugin key
2022-05-08 17:46:19 +10:00
ada1eeeb35 Remove 'no cover' 2022-05-08 07:53:21 +10:00
e57a3870c6 Fix build index template 2022-05-07 22:47:48 +10:00
06e79ee91b Move view mixin to plugin.views 2022-05-07 22:34:03 +10:00
9f15dd8e2a Custom panels can now be rendered from a template 2022-05-07 22:32:26 +10:00
103921f5c4 Rename plugin.loader to plugin.template
- Add helper function for rendering a template
2022-05-07 19:59:59 +10:00
44c4e88646 Add a configurable setting to the demo plugin 2022-05-07 02:17:20 +10:00
96f61dfcdb Add plugin description 2022-05-06 23:48:24 +10:00
bcf6e41b48 Add some example docs 2022-05-06 23:43:54 +10:00
5ed0128435 PEP style fixes 2022-05-06 23:34:34 +10:00
12c58b14d6 Improvements for panel mixin sample 2022-05-06 23:19:47 +10:00
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
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
28e16616e5 Adds a PanelMixin plugin mixin class
Intended to allow rendering of custom panels on pages
2022-05-06 21:32:11 +10:00
9e1d8e52f3 Merge pull request #2805 from matmair/matmair/issue2385
Plugins for notifications
2022-05-06 20:00:56 +10:00
0d0b713f6e Fix tests 2022-05-06 02:26:58 +02:00
baf7e4505e do not cover pacakge code - is not CI'd 2022-05-06 01:52:32 +02:00
1a70829f5c do not cover dev error catcher 2022-05-06 01:12:11 +02:00
50b17d6ae8 add mixin test 2022-05-06 01:03:11 +02:00
17127e914d PEP fix 2022-05-04 17:44:27 +02:00
05d1f9703e Add nice repr for NotificationUserSetting 2022-05-04 17:42:45 +02:00
a27f8a427a Merge branch 'matmair/issue2385' of https://github.com/matmair/InvenTree into matmair/issue2385 2022-05-04 17:40:47 +02:00
cf986e557c make unloading safer 2022-05-04 17:40:44 +02:00
0ff407348d Add admin for NotificationUserSetting 2022-05-04 17:39:37 +02:00
34855bbb37 add API endpoint for notifications 2022-05-04 17:38:50 +02:00
c684e7d5e0 Add generic serializer 2022-05-04 16:57:39 +02:00
cf93ba7cf9 Merge branch 'inventree:master' into matmair/issue2385 2022-05-04 12:23:05 +02:00
b65a969433 Merge pull request #2928 from matmair/coverage-adaption
Increase coverage
2022-05-04 09:39:24 +10:00
8038cff874 ignore for coverage 2022-05-04 00:43:49 +02:00
6504ef535a fix test - len needs to be recalculated 2022-05-03 23:23:36 +02:00
e1b395c9be test is_active 2022-05-03 23:19:51 +02:00
cf0cbff69a we are not covering packages right now 2022-05-03 23:19:01 +02:00
5e277130fa do not cover not implemented Mixin 2022-05-03 23:07:16 +02:00
c5acfaf541 do not coverage catch for load 2022-05-03 23:06:57 +02:00
e95c3e0948 do not cover default returns 2022-05-03 23:06:38 +02:00
1522d330fa add test for is_sample 2022-05-03 23:06:11 +02:00
096c0c876c PEP fix 2022-05-03 22:58:24 +02:00
d49f74746a test that MixinImplementationErrors raise 2022-05-03 22:56:28 +02:00