Commit Graph

12186 Commits

Author SHA1 Message Date
Oliver
6e30ec5603 PEP fix 2022-03-25 16:42:20 +11:00
Oliver
15a221509b Bump API version 2022-03-25 16:40:30 +11:00
Oliver
052d9770ce Override view permissions for plugin list API
- It is necessary for *any* logged in user to view this endpoint
- This is how the user determines which plugins are available (e.g. for label printing!)
2022-03-25 16:39:43 +11:00
Oliver
42f03296d2
Merge pull request #2772 from SchrodingersGat/print-failed
Send notification if printing fails
2022-03-25 16:22:30 +11:00
Oliver
9046c74628 Only send printing failed as a UI notification 2022-03-25 16:05:35 +11:00
Oliver
c1b408f8a3 Send notification if printing fails
If label printing fails (due to a plugin error) then the user is notified.
2022-03-25 15:57:32 +11:00
Oliver
5921964fdb
Merge pull request #2771 from SchrodingersGat/plugin-settings-fix
Ensure that kwargs are correctly passed through the settings chain
2022-03-25 14:53:22 +11:00
Oliver
011d97db3d Tweak display of label printing plugins 2022-03-25 14:20:25 +11:00
Oliver
bc48a95844 PEP fixes 2022-03-25 14:13:02 +11:00
Oliver
5ee9af7f0e Remove old "get_filters" function
- It was confusing!
- Manually filter where required
2022-03-25 14:10:05 +11:00
Oliver
63b5b95610 Ensure that kwargs are correctly passed through the settings chain
Problem: validate_unique fails

- Otherwise, the <plugin> object is not correctly passed
- Then, validate_unique fails
2022-03-25 13:43:19 +11:00
Oliver
fd03db4363
Merge pull request #2769 from SchrodingersGat/api-endpoint
Add 'plugins_enabled' information to the root API endpoint
2022-03-24 20:48:25 +11:00
Oliver Walters
acd796f127 Add 'plugins_enabled' information to the root API endpoint 2022-03-24 20:11:17 +11:00
Oliver
36665a7622
Merge pull request #2768 from SchrodingersGat/label-printing-plugin
Label printing plugin
2022-03-24 17:07:49 +11:00
Oliver
708ba566cb URL fix 2022-03-24 16:44:46 +11:00
Oliver
b2b9ceec46 javascript fixes 2022-03-24 16:38:01 +11:00
Oliver
f24aa37f8f Allow labels to be printed from the "incomplete build output" table 2022-03-24 16:34:47 +11:00
Oliver
2fc522ad15 Hard code url - it is not always available 2022-03-24 16:34:31 +11:00
Oliver
fcdd1eb55b Remove old function call 2022-03-24 16:18:50 +11:00
Oliver
efc6af5f4c PEP fixes 2022-03-24 16:18:08 +11:00
Oliver
f50dab22a6 fixes for label template 2022-03-24 16:17:04 +11:00
Oliver
6c25a5805d Allow offloading of label printing to the configured plugin 2022-03-24 14:57:01 +11:00
Oliver
f1f07a1977 Extract plugin information from label printing request 2022-03-24 13:31:01 +11:00
Oliver
e62b6063bb If printing plugins are available, let the user select them when printing 2022-03-24 13:20:26 +11:00
Oliver
86b5655c5f Simplify new plugin class 2022-03-24 13:15:57 +11:00
Oliver
4e041e97b9 Catch potential IntegrityError when importing plugins 2022-03-24 13:00:03 +11:00
Oliver
69e9d1625a Adds a LabelPrintingMixin plugin class
- Enables the implementation of custom label printing plugins
- Will be available directly from the "print labels" dialog box
2022-03-24 12:51:27 +11:00
Oliver
170c4dfd4c
Merge pull request #2767 from SchrodingersGat/date-render-fix
Check for empty string when rendering dates
2022-03-24 12:50:08 +11:00
Oliver
bd0bf4368c Remove more debug messages 2022-03-24 12:08:56 +11:00
Oliver
66487817dd Remove debug messages 2022-03-24 12:03:16 +11:00
Oliver
31b71fe29f Catch error when incorrect date format string is passed 2022-03-24 11:56:39 +11:00
Oliver
b720c2e431 Check for empty string when rendering dates 2022-03-24 11:49:34 +11:00
Oliver
d02fc61a8f
Merge pull request #2766 from SchrodingersGat/latest-serial-number-fix
Fix null values in build order serial number field
2022-03-23 12:40:42 +11:00
Oliver
f92aa07f82 Fix null values in build order serial number field 2022-03-23 12:01:50 +11:00
Oliver
27b55eb8f8
Merge pull request #2764 from SchrodingersGat/notification-settings
Notification settings
2022-03-21 09:29:38 +11:00
Oliver
c082cec3ee
Merge pull request #2748 from matmair/matmair/issue2524
Run plugin install on startup
2022-03-21 07:15:37 +11:00
Matthias
eef51600c5
do not write to db 2022-03-20 18:10:42 +01:00
Oliver Walters
c8bbd25001 Bug fix 2022-03-20 19:41:42 +11:00
Oliver Walters
ace61c6aab Little bit of eye candy 2022-03-20 19:38:40 +11:00
Oliver Walters
9cc2cc5683 Fix asynchronous order of events for "mark all as read" button 2022-03-20 19:36:52 +11:00
Oliver Walters
5f98cdf3c7 Email notifications are only sent for users who have the setting enabled 2022-03-20 19:31:59 +11:00
Oliver Walters
d2969d0235 Adds a per-user setting to allow sending of emails for notification events 2022-03-20 19:19:42 +11:00
Oliver
8be6223967
Merge pull request #2372 from matmair/matmair/issue2279
Notification center and refactor
2022-03-20 19:07:16 +11:00
Oliver
bab47d1425
Merge pull request #2763 from SchrodingersGat/bo-allocation-table-fix
Fix table toolbar for stock item allocations
2022-03-20 16:43:40 +11:00
Oliver
402104448f
Merge pull request #2746 from matmair/fix-set_user
Fix set user
2022-03-20 16:34:24 +11:00
Matthias
2bb4e55d4a
remove test
something complex is happning on gh actions
2022-03-20 02:59:08 +01:00
Matthias
2861ee0843
another style fix 2022-03-20 02:26:36 +01:00
Matthias
20b0ccefea
style fix 2022-03-20 02:23:11 +01:00
Matthias
c139b90598
move button 2022-03-20 02:05:30 +01:00
Matthias
a4c9dfdd6f
add read all endpoint 2022-03-20 02:05:18 +01:00