-
-
Notifications
You must be signed in to change notification settings - Fork 861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option ot mark the build item as complete if all tests passed #8061
Conversation
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8061 +/- ##
==========================================
- Coverage 83.87% 83.80% -0.07%
==========================================
Files 1142 1143 +1
Lines 50979 51019 +40
Branches 1783 1785 +2
==========================================
- Hits 42760 42758 -2
- Misses 7760 7824 +64
+ Partials 459 437 -22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@martonmiklos thanks for looking at this, and apologies for the delayed response. Looking at the new model field implementation here, I think that it should be an option against the |
No worries.
I see your point, but I would say both options could make sense. In my use case most of the products got packaged as the part of the last teststep so closing the build order when all units passed makes sense. Enabling the "autoclose" feature for each build order created would not makes too much sense in this case. I am open to tailor this feature further by adding an "autoclose" option to the build orders dynamically (if it is not enabled at part level). |
@martonmiklos I was envisioning a much "simpler" approach, where you can set the "default value" for the "auto close" option as a global setting, but then adjust on a per-build level as needed. Having this as a "per part" option seems a bit messy (for lack of a better word) especially as most parts cannot be "built" (they are components, e.g. ) and so the option does not even make sense for them. At a bare minimum the option should be hidden for parts which are not "assemblies". The issue here is that we do not have any other "dependent attributes" - the attributes such as "purcahsesable", "trackable" , "salable" (etc) are all independent of each other. |
@martonmiklos thinking about this further, I believe that this would be much better as a custom plugin. This way we do not need to add new internal logic to multiple points in the code to implement a feature which most people would disable anyway. We have a comprehensive set of event triggers which could be hooked into by a plugin to "auto-complete" a build when the tests are completed. And, the plugin could expand with additional complexity as required, without needing to change core behaviour. |
@martonmiklos I'm going to close this out, but if you want to discuss further how to implement this as a plugin I'd be happy to assist |
Fixes #6006