Commit Graph

2940 Commits

Author SHA1 Message Date
Oliver Walters
bf296057b3 Enable attachments to be uploaded via the API 2020-05-19 16:56:41 +10:00
Oliver
eb21a9027f
Merge pull request #817 from SchrodingersGat/test-features
Add some more fields to the PartTestTemplate model
2020-05-18 19:34:32 +10:00
Oliver Walters
2f6d03388d Add serializer / table display 2020-05-18 19:15:40 +10:00
Oliver Walters
fc6cad475a Add validation for StockItemTestResult based on the matching PartTestTemplate 2020-05-18 19:11:43 +10:00
Oliver Walters
e8c402ecd9 Add some more fields to the PartTestTemplate model 2020-05-18 19:00:45 +10:00
Oliver
1c67bb6026
Merge pull request #815 from SchrodingersGat/delete-test-data
Delete test data
2020-05-18 14:36:36 +10:00
Oliver Walters
0bdb62f263 Fix pep 2020-05-18 14:32:30 +10:00
Oliver Walters
fce8e3fe05 add button to delete all test data for a given stock item 2020-05-18 14:29:35 +10:00
Oliver
05e4c8f825
Merge pull request #814 from SchrodingersGat/api-tweaks
Allow stock item filtering by IPN
2020-05-18 13:38:23 +10:00
Oliver Walters
18b7baa5b9 Allow stock item filtering by IPN
(cherry picked from commit bd9aad935594e4022299567667faeb149f6d2375)
2020-05-18 13:33:41 +10:00
Oliver
915bbef3b4
Merge pull request #812 from SchrodingersGat/more-testing
Add function to generate "keys" for test results.
2020-05-17 22:38:19 +10:00
Oliver Walters
1cc0977816 Display testing status for a stock item 2020-05-17 22:33:41 +10:00
Oliver Walters
02b0c0831d Removed test that caused a bug 2020-05-17 22:29:07 +10:00
Oliver Walters
6cb017bbfd Add functions to test if a stock item has passed all tests 2020-05-17 22:03:55 +10:00
Oliver Walters
5f318799c1 Logic fix for table row grouping 2020-05-17 21:51:46 +10:00
Oliver Walters
8ace71ef56 Complete refactor of the test-result table for stock item 2020-05-17 21:09:49 +10:00
Oliver Walters
b9799e1824 Add some more part slidies 2020-05-17 17:05:04 +10:00
Oliver Walters
e30f6ec374 Add forms / views for creating / editing / deleting test templates 2020-05-17 16:50:34 +10:00
Oliver Walters
cd0e66e3c6 Add ability to edit / assign attatched files to test result data 2020-05-17 16:17:05 +10:00
Oliver Walters
e9ed50fc4b Add table displaying part test templates 2020-05-17 16:07:55 +10:00
Oliver Walters
66f2c01d5d Add (empty) page for displaying part test templates 2020-05-17 14:26:53 +10:00
Oliver Walters
bc8b3a68f0 Fixes for unit testing 2020-05-17 14:17:55 +10:00
Oliver Walters
69c748d018 PEP fix 2020-05-17 14:15:13 +10:00
Oliver Walters
95d07cd02b Add unit testing for new API features 2020-05-17 14:14:54 +10:00
Oliver Walters
4d992ea528 Expose test templates to the API 2020-05-17 13:56:49 +10:00
Oliver Walters
f791ac9f57 Register test template in the admin interface 2020-05-17 13:50:06 +10:00
Oliver Walters
badf9230a9 Add fixtures / unit testing for the stock item testing framework 2020-05-17 13:46:19 +10:00
Oliver Walters
8c8b704e38 Add PartTestTemplate model 2020-05-17 13:26:51 +10:00
Oliver Walters
17f241774f Add function to generate "keys" for test results.
- As the keys are to be used for dict-based lookup (in a template) then they cannot contains spaces.
- May as well enforce lower-case encoding!
2020-05-17 12:59:03 +10:00
Oliver
c54cb2b280
Merge pull request #811 from SchrodingersGat/stock-item-testing
Stock item testing
2020-05-17 00:37:53 +10:00
Oliver Walters
b3ca6a6ca7 PEP fixes 2020-05-17 00:26:44 +10:00
Oliver Walters
327682b719 Add forms / views / etc to create / edit / delete test results manually 2020-05-17 00:26:10 +10:00
Oliver Walters
82fe497787 Add buttons to edit / delete a Test result
- Don't do nuthin yet!
2020-05-17 00:04:45 +10:00
Oliver Walters
05856a72cf UI cleanup 2020-05-16 23:56:50 +10:00
Oliver Walters
e23a9c1269 Load testresult table for stock item
- Uses the API / bootstrap table
- Is pretty!
- Provides link to the attachment (if one exists)
2020-05-16 23:54:07 +10:00
Oliver Walters
3b53437f46 Add 'attachment_detail' to the TestResult serializer 2020-05-16 23:53:28 +10:00
Oliver Walters
608057da69 Add option for user_detail in stockitemtestresult serializer 2020-05-16 23:36:03 +10:00
Oliver Walters
e02b692ab2 Improve API filtering for StockItem 2020-05-16 23:19:16 +10:00
Oliver Walters
197a3e6731 Fixes for Stock API 2020-05-16 23:12:43 +10:00
Oliver Walters
fd11317409 Whoops 2020-05-16 23:04:37 +10:00
Oliver Walters
45556058d2 Allow files to be uploaded alongside a test report
- Attach the file to the stock item
- Link the uploaded attachment to the test report
2020-05-16 22:53:23 +10:00
Oliver Walters
247cfcc514 Add API unit tests 2020-05-16 21:57:41 +10:00
Oliver Walters
d6a56da441 PEP fixes 2020-05-16 21:15:14 +10:00
Oliver Walters
a17ab9bfbd Add an (empty) page for dispalying test results 2020-05-16 21:10:27 +10:00
Oliver Walters
fe99e92bfc Refactor table_filters javascript file to prevent loading on every single page 2020-05-16 21:02:25 +10:00
Oliver Walters
f3c71bd96f API interface for StockItemTestResult 2020-05-16 20:56:36 +10:00
Oliver Walters
880a0a4af8 Add StockItemTestResult to the admin interface 2020-05-16 20:55:30 +10:00
Oliver Walters
df91b8cf4d Add function to get all test results as a map
- This will be required for pushing out to a test report
2020-05-16 20:45:10 +10:00
Oliver Walters
2bb9fd9955 Add some unit testing for the new model 2020-05-16 20:27:01 +10:00
Oliver Walters
f39f5e5825 Add StockItemTestResult model 2020-05-16 19:56:18 +10:00