Commit Graph

7780 Commits

Author SHA1 Message Date
Oliver Walters
cd7bc6cce5 Include pricing information in part supplier view
Also some CSS tweaks to secondary modal buttons
2019-05-22 22:11:27 +10:00
Oliver Walters
afb927258c Merge remote-tracking branch 'inventree/master' 2019-05-21 16:37:16 +10:00
Oliver
49425efef9
Merge pull request #358 from SchrodingersGat/bom-pricing
Bom pricing
2019-05-21 16:33:45 +10:00
Oliver Walters
d3a5661dbd Serializer fix 2019-05-21 15:42:52 +10:00
Oliver Walters
d1dfad591d Pepperoni 2019-05-21 15:38:22 +10:00
Oliver Walters
988a35d237 Serialize BOMItem pricing information
- Account for quantity
- Prefetch required items
2019-05-21 15:15:54 +10:00
Oliver Walters
a15f46c972 Merge remote-tracking branch 'inventree/master' 2019-05-21 14:13:30 +10:00
Oliver
74479a7d52
Merge pull request #357 from SchrodingersGat/price-testing
Price testing
2019-05-21 14:12:56 +10:00
Oliver Walters
2817e6ca31 Added further part pricing 2019-05-21 14:08:40 +10:00
Oliver Walters
cdcc4f9ca1 Simple tests for price breaks 2019-05-21 13:53:25 +10:00
Oliver Walters
6f73c379c2 Remove 'minimum' order from SupplierPart
- This can be handled using the 'PriceBreak' set
2019-05-21 13:51:43 +10:00
Oliver Walters
357bfdae3f Add some test fixtures for Company app 2019-05-21 13:33:05 +10:00
Oliver Walters
92b0ed6599 Merge remote-tracking branch 'inventree/master' 2019-05-21 08:58:08 +10:00
Oliver
e9f681e736
Merge pull request #355 from SchrodingersGat/speed2
Don't serialize 'available_stock' in PartSerializer
2019-05-21 08:57:37 +10:00
Oliver Walters
f19d4eec79 Improve query speed for supplierpart api 2019-05-21 08:19:16 +10:00
Oliver Walters
9d5b938ced Don't serialize 'available_stock' in PartSerializer 2019-05-21 07:57:44 +10:00
Oliver Walters
29ab493cbe Merge remote-tracking branch 'inventree/master' 2019-05-21 00:58:19 +10:00
Oliver
2439d9edde
Merge pull request #353 from SchrodingersGat/api-speed
Optimizing db queries
2019-05-21 00:57:57 +10:00
Oliver Walters
ca9d6e6e25 PEP fixes 2019-05-21 00:54:48 +10:00
Oliver Walters
49ed17db56 Add a line 2019-05-21 00:52:17 +10:00
Oliver Walters
ae865d1de1 Commit 2019-05-21 00:40:42 +10:00
Oliver Walters
4b41766312 And mode 2019-05-21 00:31:34 +10:00
Oliver Walters
72aba30e81 More hungry fetching 2019-05-21 00:16:00 +10:00
Oliver Walters
157919f47a More prefetching
-
2019-05-21 00:06:57 +10:00
Oliver Walters
6ae48d07c4 Cleanup pricing algorithms 2019-05-20 23:53:39 +10:00
Oliver Walters
8adb4f6c20 Further query reduction
- Also improved query reporting middleware
2019-05-20 23:26:27 +10:00
Oliver Walters
d15b09a5f4 Don't serialize pricing
- Saves MANY queries and provides drastic speedup
2019-05-20 23:03:19 +10:00
Oliver Walters
18ff80312b Fixes 2019-05-20 22:53:01 +10:00
Oliver Walters
4bde00d925 AND AGAIN
Use --fake to force the migration
2019-05-20 22:24:18 +10:00
Oliver Walters
ee2ddbf512 Reduce some database queries by using aggregate Sum 2019-05-20 21:47:30 +10:00
Oliver Walters
dd5de91c23 Add middleware to report response time (and number of queries) 2019-05-20 21:46:50 +10:00
Oliver Walters
70be052c74 Rebuilt migrations again (arrrrrrrrrrrrrrrrrrrrrrrrrrgh never do this) 2019-05-20 21:45:37 +10:00
Oliver Walters
34620b22b0 Add a middleware to count queries
- https://www.dabapps.com/blog/logging-sql-queries-django-13/
2019-05-20 18:51:57 +10:00
Oliver Walters
fc75ab7420 Reduce response time for stock list
Initial time - 6.2s
After prefetch - 4.3s
2019-05-20 08:44:52 +10:00
Oliver Walters
5055226490 Reduce BOM listing time to ~1.8s 2019-05-20 08:31:03 +10:00
Oliver Walters
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
Oliver Walters
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
Oliver Walters
73041a3fe6 Fix div-by-zero for part pricing 2019-05-20 07:53:23 +10:00
Oliver Walters
90915f8dc0 Merge remote-tracking branch 'inventree/master' 2019-05-19 00:14:35 +10:00
Oliver
2e2c51b271
Merge pull request #350 from SchrodingersGat/part-pricing
Part pricing
2019-05-19 00:14:02 +10:00
Oliver Walters
9ddedc6915 Restart migrations
- Easier to delete all the migrations and start again :'(
2019-05-19 00:11:41 +10:00
Oliver Walters
a8846dc515 Hopefully fix the thingy 2019-05-18 23:52:22 +10:00
Oliver Walters
f88e26cd5c Remove backup database file 2019-05-18 23:48:03 +10:00
Oliver Walters
a54760b219 Improve pricing display 2019-05-18 23:44:43 +10:00
Oliver Walters
ffda5a1b29 Add warning if no pricing data available 2019-05-18 23:13:18 +10:00
Oliver Walters
368193d397 Fix formatting 2019-05-18 23:09:12 +10:00
Oliver Walters
dcf79338c1 Add pop-up pricing window for part
- Cost to purchase from suppliers
- Cost to build from BOM
2019-05-18 23:09:08 +10:00
Oliver Walters
54ccf6c7b3 PEP 2019-05-18 23:09:04 +10:00
Oliver Walters
b64a29b897 Display build pricing information 2019-05-18 23:09:00 +10:00
Oliver Walters
2b098942b0 Fix pricing bug
- Include BOM item pricing in API
2019-05-18 23:08:56 +10:00