mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
Test template disable (#6526)
* Add new field to PartTestTemplate model - 'enabled' field - default = True (backwards compatibility) - Allows tests to be disabled - Retains test results but disables test * Update PartTestTemplate API - Expose new field - Enable filtering by field * CUI updates - Add to PartTestTemplate table * PUI: Update PartTestTemplateTable * Update getRequiredTests - By default, filter out tests which are "disabled" * Update StockItemTestResult table - Only display "enabled" tests - Update CUI - UPdate PUI * Update existing build output table * Bump API version * Docs updates * Updated unit tests
This commit is contained in:
@ -53,6 +53,10 @@ If this flag is set, then a corresponding test result against a stock item must
|
||||
|
||||
If this flag is set, then a corresponding test result against a stock item must provide a file attachment uploaded.
|
||||
|
||||
#### Enabled
|
||||
|
||||
Tests can be *disabled* by setting the *enabled* flag to `False`. This can be useful if a test is no longer required, but the test template should be retained for historical purposes. Note that *deleting* a test template will also delete any associated test results. So, if a test template is no longer required, it is better to disable it rather than delete it.
|
||||
|
||||
### Test Results
|
||||
|
||||
Individual stock item objects can have test results associated with them which correspond to test templates. Refer to the [stock test result](../stock/test.md) documentation for further information.
|
||||
|
Reference in New Issue
Block a user