Repository navigation
Add additional test fields - #6149
Conversation
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
|
In general I am happy with these additions, except for the "retest" field. I think that this could be easily calculated dynamically by counting the number of test results (for a single stock item) which have the same test key... |
My intention with the retest "caching" is the fact that we are mainly interested in the retesting percentage per part/test type/build order. In these queries we could have a plenty of test results: sometimes we manufacture 1K Build orders, atm. I have 270K serial numbers imported in InvenTree. |
One more question came into my mind the (old) UI: I would rather sort the results by the Test finished date (which is identical if no other date passed) and would rename the "Test date" to "Result save date" or something similar. This would always allow the test execution process to be overviewed in the "natural flow" regardless if the test results were uploaded asynchronously or mixed orders. The test "Start date" and the "Result save date" columns could be hidden by default to spare "screen estate". |
|
This PR seems stale. Please react to show this is still important. |
@SchrodingersGat |
|
@martonmiklos I would like to see this move forward too. After another chance to look at it: TimestampingWe already have the Retest FieldWould you be opposed to a dynamic calculation which calculates percentage of failed tests on the fly? I'm still not 100% sure on your proposed usage for this field |
The date field currently holds the date when the test was uploaded to InvenTree, which is not necessary the same as the execution start date. (In the case if the test result uploading is done asynchronously.) Storing the end date might also help making statistics (i.e. some operators performing testing way slower than others etc.)
You are right, I will remove the field and do the calculations on the fly. |
|
@martonmiklos ok, happy if you keep the new date fields, and remove the "retest" field. Please address conflicts in the current PR. Can you also update the new testresulttable in the react interface? |
- Test start timestamp - Test finish timestamp - Test station name
c5b4a8a to
faf5b00
Compare
faf5b00 to
eb12383
Compare
|
@martonmiklos thanks for the contribution! Please submit a separate PR to add these new fields to the test result table in the react interface! |
Thank you for your patience and the merging! |

As we discussed in the #5995 I would like to add the following extra fields to the test results:
I have an another branch where I built some statistics UI on the top of this:

Once we iron out this I will PR those changes as well.