Oliver Walters
087001f29d
Fix BOM table rendering
...
- Price was not being sent in the PartBriefSerializer!
2020-04-28 23:17:15 +10:00
Oliver Walters
fee6246a8f
PEP fix
2020-04-20 08:25:24 +10:00
Oliver Walters
ef66a3b8f3
Make PartDetail view same as PartList view
2020-04-20 08:10:59 +10:00
Oliver Walters
f5c86bc457
"Fix" for unit tests
...
- Not working in travis for some reason?
- But they are working locally...
2020-04-20 01:23:05 +10:00
Oliver Walters
6a89e0089d
Updates for stock serializer
2020-04-20 00:49:13 +10:00
Oliver Walters
092215918c
PEP fixes
2020-04-19 23:56:16 +10:00
Oliver Walters
2621c51a7e
Further API cleanup
...
- Perform a single call to get starred parts for current user and record results
- This provides significant speed improvements
- Remove old manual serializer
- More data prefetching
2020-04-19 23:50:41 +10:00
Oliver Walters
69b8eed028
Fixes for aggregation issues
...
- Ensure that "distinct=True" is set!
- ARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
2020-04-19 22:54:46 +10:00
Oliver Walters
0e55911a6b
Index page rendering is now a lot faster
...
- Hide some elements which are currently very expensive to compute
-
2020-04-13 22:07:14 +10:00
Oliver Walters
124fab3eee
Display a part as 'starred' in the part table
2020-04-13 21:30:17 +10:00
Oliver Walters
b850beb687
Add ability to filter by 'starred' status
2020-04-13 21:24:36 +10:00
Oliver Walters
a65c80dbf3
Small fixes here and there
2020-04-12 00:20:29 +10:00
Oliver Walters
de6f2d37e5
Coalesce baby, yeah!
2020-04-11 23:05:07 +10:00
Oliver Walters
2560613e36
Update API docstring
2020-04-11 23:03:03 +10:00
Oliver Walters
f5a8b110b5
Filter part table by 'is_component' status
2020-04-11 23:02:18 +10:00
Oliver Walters
e1c6ad7761
Logic fix for part filtering
2020-04-11 22:57:16 +10:00
Oliver Walters
e86bc4fa6d
Add ability to filter parts by "low_stock"
...
- Huzzah for the "Coalesce" function, eh?
2020-04-11 22:43:51 +10:00
Oliver Walters
5e706554b1
Part table filtering
...
- Filter by active status
- Filter by 'is_template' status
- Filter by 'has_stock'
- Allow cascading sublocations
- API improvements to allow new features
2020-04-11 22:10:15 +10:00
Oliver Walters
b28487760a
Rename Part.URL -> part.link
...
- Previous migration needed some tweaking to get it to run... because.. why?
- It seems to pass when running manage.py migrate but fails when running manage.py test
- Stumped on this one
2020-04-06 11:16:39 +10:00
Oliver Walters
791eb63f35
Same fix for Part API
2020-04-05 22:59:45 +10:00
Oliver Walters
d739c2dea8
"URL" is renamed to "link" in the URL
2020-04-05 19:18:32 +10:00
Oliver Walters
0cfb293ca9
List API now uses the thumbnail image
2020-04-05 00:19:37 +11:00
Oliver Walters
f5150f549a
Part API changes
...
- Allow filtering parts with null parent (top-level category parts)
- Option to include sub-category parts or not
2020-04-03 09:37:03 +11:00
Oliver Walters
6e65a736e7
Add isNull function to query against null keys
2020-04-03 09:31:26 +11:00
Oliver Walters
d17056820b
Allow PartCategory filtering by null parent
2020-04-03 09:25:58 +11:00
Oliver Walters
e8e0ab8416
Include 'minimum_stock' information in part list api
2020-03-30 13:21:33 +11:00
Oliver Walters
6a78f6d451
Include quantity currently being build in Part API
2020-03-26 17:43:02 +11:00
Oliver Walters
57123283f4
Better filtering of annotations for Part-list API
2020-03-26 17:08:01 +11:00
Oliver Walters
dae45875fb
Add 'on_order' quantity to the part list API
2020-03-26 14:46:23 +11:00
Oliver Walters
d51ac2f5c2
Save creation user when making a new part via the API
2020-03-18 22:00:32 +11:00
Oliver Walters
d4fe83170f
Select existing image and upload successfully
2020-02-10 23:48:45 +11:00
Oliver Walters
1327c1d3b1
Add API endpoint for querying part images
2020-02-10 22:03:06 +11:00
Oliver Walters
67ea0fa887
Create a new part parameter template
2019-09-07 19:53:47 +10:00
Oliver Walters
f415e2040e
API endpoint for PartParameter and PartParameterTemplate
2019-09-07 19:44:10 +10:00
Oliver Walters
37d9c59a0e
Add API endpoint for validating a BOM item
2019-09-05 19:29:51 +10:00
Oliver Walters
20ec36d3ea
Enforce authentication for API access
2019-07-08 19:20:00 +10:00
Oliver Walters
b185abbb87
Catch case in which a request.GET is not available
...
(cherry picked from commit 9296c0ba0f8c4914cd04b820c6172f8c3a794750)
2019-07-08 09:41:20 +10:00
Oliver Walters
faf2fd408f
PEP fix
2019-06-24 00:01:34 +10:00
Oliver Walters
a5306ec81b
Add 'revision' field to part
...
- e.g. different versions of a product
- Can keep old versions in database and mark as inactive
2019-06-20 21:46:16 +10:00
Oliver Walters
a47be24410
Fixed test cases
2019-06-18 01:38:43 +10:00
Oliver Walters
ea0da4c8f8
PEP
2019-06-18 01:32:29 +10:00
Oliver Walters
79cd05423c
Custom aggregation of Part API
...
- Reduced full part query from 2.5s to 200ms!
2019-06-18 01:31:30 +10:00
Oliver Walters
37dba91b4a
Add 'include self' option to getUniqueChildren
2019-06-18 01:02:56 +10:00
Oliver Walters
16b6ae8d61
Fixed up some stupid recursion on the Tree model template
2019-06-18 00:59:54 +10:00
Oliver Walters
037dc6a0d6
Reduced tree time with some better queries
2019-06-17 23:52:49 +10:00
Oliver Walters
ba26acd487
Rename some fields
...
- Oops didn't think that through, gotta go through and fix the data now...
2019-06-02 19:46:30 +10:00
Oliver Walters
fd2e2a71f9
Add search results for part-category and stock-location
2019-06-02 19:15:05 +10:00
Oliver Walters
1312148721
Filter parts by template or variant status (in API)
2019-05-26 11:15:41 +10:00
Oliver Walters
cf5b8d0249
Optional part_detail and sub_part_detail for BOM API
...
- Significant speed boost on request
- Request the relevent information at the right place
2019-05-23 22:36:19 +10:00
Oliver Walters
5055226490
Reduce BOM listing time to ~1.8s
2019-05-20 08:31:03 +10:00