1d67b4cdaa
Sliders now update the part options via AJAX
2019-06-18 19:24:10 +10:00
ff6df9741f
Perform model validation on API serializers
...
If you have a class, why not subclass it?!
2019-06-13 23:03:58 +10:00
c9b946655c
Add some more data to Part serializer
2019-06-13 18:33:15 +10:00
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
91a5a7f051
Simplify part model
...
- Remove 'varian't or ''revision' field
- Part name must be unique across database
2019-05-26 12:16:57 +10:00
21dd893c01
Display templated parts as italic in the part list
2019-05-26 00:29:17 +10:00
aeaf4e7dc9
Merge pull request #363 from SchrodingersGat/rest-simplify
...
Rest simplify
2019-05-23 23:03:39 +10:00
c2ca5a24f8
PEP
2019-05-23 22:59:56 +10:00
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
d386c2a6f9
Include total stock in PartBrief serializer
2019-05-23 21:51:27 +10:00
d3a5661dbd
Serializer fix
2019-05-21 15:42:52 +10:00
988a35d237
Serialize BOMItem pricing information
...
- Account for quantity
- Prefetch required items
2019-05-21 15:15:54 +10:00
9d5b938ced
Don't serialize 'available_stock' in PartSerializer
2019-05-21 07:57:44 +10:00
72aba30e81
More hungry fetching
2019-05-21 00:16:00 +10:00
8adb4f6c20
Further query reduction
...
- Also improved query reporting middleware
2019-05-20 23:26:27 +10:00
d15b09a5f4
Don't serialize pricing
...
- Saves MANY queries and provides drastic speedup
2019-05-20 23:03:19 +10:00
18ff80312b
Fixes
2019-05-20 22:53:01 +10:00
ee2ddbf512
Reduce some database queries by using aggregate Sum
2019-05-20 21:47:30 +10:00
fc75ab7420
Reduce response time for stock list
...
Initial time - 6.2s
After prefetch - 4.3s
2019-05-20 08:44:52 +10:00
5055226490
Reduce BOM listing time to ~1.8s
2019-05-20 08:31:03 +10:00
cee1062b51
Prefetch locations - 2.6s
...
However the 'total_stock' and 'available_stock' fields are still the majority of the response time
2019-05-20 08:24:05 +10:00
6766063c8b
Reducing request time for PartList API
...
- Initial query time = 5.91s
- Prefetch related part categories = 3.64s
2019-05-20 08:13:22 +10:00
2b098942b0
Fix pricing bug
...
- Include BOM item pricing in API
2019-05-18 23:08:56 +10:00
2a1fd2b03b
More complex pricing calculations
...
- Calculate BOM price for a part
- Calculate total pricing for a part (build or purchase)
- Display pricing information in BOM table
2019-05-18 23:08:51 +10:00
0cfb243eb3
Move SupplierPart and SupplierPriceBreak to the 'Company' app
...
- https://docs.djangoproject.com/en/2.2/ref/models/options/#django.db.models.Options.db_table
- https://stackoverflow.com/questions/3519143/django-how-to-specify-a-database-for-a-model
- And others, presumably
2019-05-18 23:08:34 +10:00
8c92c2c2a1
Display overage values in BOM table
2019-05-15 07:23:02 +10:00
2164cac28a
PEP
2019-05-14 18:32:20 +10:00
02033c2157
Add 'keywords' field to Part
...
- Shows up in search results
2019-05-14 17:23:20 +10:00
d5dbc1b072
Display supplier part URL in table
2019-05-12 12:20:15 +10:00
1d36ea3e2e
Add a 'full_name' field for Part
...
- Combines IPN | Name | Variant
- Use this to display in most views
2019-05-12 12:16:04 +10:00
f76f1f54ae
Add 'variant' field to Part model
...
- Display 'long_name' which is concatenation of name and variant
2019-05-10 22:17:13 +10:00
58e5b10d26
Display supplier logo in part suppliers list
...
- Also add a background colour for popup image in case of transparent image file
2019-05-08 20:23:54 +10:00
0754afd5f5
Display icons in supplier_part list
...
- Bug fix for part list API query
2019-05-08 20:16:53 +10:00
416b5c9820
Include part image URL in Part API
2019-05-08 15:25:28 +10:00
7987fcc7cc
PEP fixes
2019-05-05 11:44:23 +10:00
3bd7c28558
Add API endpoint for viewing and deleting a PartStar entry
2019-05-05 10:36:48 +10:00
70f1097ea0
API endpoint for accessing part star information
2019-05-05 09:05:44 +10:00
73f672495d
Use API to mark part as active/inactive
2019-04-28 23:40:26 +10:00
1a66a12d57
Enable Part API to filter by active status
2019-04-28 23:15:30 +10:00
ed3ae30248
Documentation for Part app
2019-04-27 22:18:07 +10:00
529beb3d58
Abstract DRF serializer validation
...
- Subclass InvenTree.InvenTreeModelSerializer
- Ensures model data is checked too (after serializer checks are performed)
2019-04-26 23:34:15 +10:00
accec07fe9
BOM serializer now validates against model
...
- Need to call instance.clean()
- https://stackoverflow.com/questions/40697648/django-dry-model-form-serializer-validation
2019-04-26 22:36:44 +10:00
da540e1b26
Improve BOM API endpoint
...
- Origin at /api/bom
- Add detail view
- Add create power to list view
2019-04-26 21:44:38 +10:00
6f7082a919
Peppy
2019-04-26 21:44:38 +10:00
9b4e86f36a
Add ability to create a new supplierpart from the API
2019-04-26 21:44:37 +10:00
19a11eac1a
PEP fixes
2019-04-17 07:49:46 +10:00
150bc1e674
Add API interface for SupplierPriceBreak
2019-04-17 00:35:49 +10:00
6e2b111b9c
Add 'consumable' field to Part
...
- Indicates that a part can be used to make other parts
- This is the inverse of 'buildable'
- Add this field to the serializer and edit forms
- Display parameter on part info page
- BOM edit window only requests sub-parts that are marked as 'consumable'
- Also added option to edit 'units' field for part
2019-04-16 00:01:52 +10:00
3d9a1acc2e
Don't render full category information in part API
...
- Lots of data duplication!
- Just send the category ID (and the category name)
-
2019-04-15 22:52:53 +10:00
e370cb8d3c
Add note field to BomItem serializer
2019-04-14 22:20:11 +10:00