-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Part Test refactor #9928
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
base: master
Are you sure you want to change the base?
Part Test refactor #9928
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
categoryId?: number; | ||
}>) { | ||
const table = useTable('part-test'); | ||
const user = useUserState(); |
Check notice
Code scanning / SonarCloud
Unused assignments should be removed Low
}>) { | ||
const table = useTable('part-test'); | ||
const user = useUserState(); | ||
const navigate = useNavigate(); |
Check notice
Code scanning / SonarCloud
Unused assignments should be removed Low
Bumping to the next release target, a lot to think about here which I don't have time for |
This PR represents a major overhaul of the testing framework in preparation for the 1.0.0 release.
Prior to this change, the
PartTestTemplate
model was linked to a specific part. So if the user wanted to assign the "same" test to another part (say in a different category) then the template had to be duplicated.The major change here is to decouple the
PartTestTemplate
model from thePart
model - templates are now generic and can be reused. We then add thePartTest
model which links a template to either aPart
orPartCategory
instance.Link to Part
If a template is linked to a given part, then test results can be generated for any stock item of that part (or any variants of that part).
Link to Category
If a template is linked to a given category then test results can be generated for any part which lives under that category.
TODO
PartTest
modelPartTest
instances against a partPart
instanceStockItem
instance.