Repository navigation
Label printing bug fixes - #7329
Conversation
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
|
That Pickering error is exactly #6772. and that's why I think the request object should not be part of the rendering methods. Because rendering should be done in the background. But that only works if the request (which obviously cannot be pickeld) is not in the arguments passed to the worker. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7329 +/- ##
==========================================
- Coverage 83.78% 82.70% -1.08%
==========================================
Files 1049 1049
Lines 46005 46850 +845
Branches 1386 1387 +1
==========================================
+ Hits 38544 38748 +204
- Misses 7098 7741 +643
+ Partials 363 361 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@SchrodingersGat @matmair what do you think on that: #7329 (comment) ? TL;DR I think rendering a label/report template should be done on a background worker for performance and architecture reasons. But that requires we completely strip out the request object from the args/kwargs as the request object cannot be pickelt. (That would also solve part of #6772) |
|
@wolflu05 I am completely on board to remove the request object entirely, and allow label printing to be done entirely in the background worker thread. To achieve this we would have to change what we pass through - in fact all we need to pass through is:
|
* Hide printing actions button for top level stock location * Fix typo * Add another check for null * Remove debug statement * Prevent display of multiple form-error notifications * Fix pickling for print offloading * Reset selected plugin * Exclude the entire 'context' object when pickling a printing job
Addresses some bugs in label printing framework.
Note (to self)