Matt-Yorkley
|
f4bcf6c6d5
|
Eager-load line_item associations in order
|
2020-04-28 20:10:40 +02:00 |
|
Luis Ramos
|
f3e651b1f7
|
present? calls length which is breaking it with error ActiveModel::MissingAttributeError Exception: missing attribute: address_id
any? works well as it just verifies the size of the collection
|
2020-04-28 16:31:11 +01:00 |
|
Matt-Yorkley
|
eb5f8b85ff
|
Touch primary taxon when a product's primary_taxon is changed
|
2020-04-28 15:11:59 +02:00 |
|
Matt-Yorkley
|
1b18808d21
|
Touch ShippingMethod when it's assigned to a new distributor
|
2020-04-28 15:11:59 +02:00 |
|
Matt-Yorkley
|
6ef345c5d8
|
Touch taxon when a taxon is applied to a product
|
2020-04-28 15:11:59 +02:00 |
|
Matt-Yorkley
|
975afb3152
|
Enable use of Action Caching in the API 🎉
See: https://guides.rubyonrails.org/api_app.html#adding-other-modules
|
2020-04-28 15:11:00 +02:00 |
|
Luis Ramos
|
839b373b5c
|
Merge branch 'master' into 3-0-stable-Apr28
|
2020-04-28 13:40:19 +01:00 |
|
Matt-Yorkley
|
74e81b078f
|
Avoid N+1s in Order#cap_quantity_at_stock!
|
2020-04-28 01:11:28 +02:00 |
|
Matt-Yorkley
|
3fa2b3161f
|
Avoid N+1s when using OrderCycle#exchanges_supplying
|
2020-04-28 01:10:07 +02:00 |
|
Luis Ramos
|
d8d6bad11c
|
Remove config and sections related to google analytics in the cookies banner and cookies page
|
2020-04-27 18:40:00 +01:00 |
|
Matt-Yorkley
|
1152f307e2
|
Eager-load associated line_items data in #update_distribution_charge!
|
2020-04-27 19:27:07 +02:00 |
|
Luis Ramos
|
8b5378e673
|
Merge pull request #5251 from luisramos0/Issue4654
Change Result of PriceSack Calculation from Integers to Floats, clone #4812
|
2020-04-27 12:36:18 +01:00 |
|
Pau Pérez Fabregat
|
82156e32e0
|
Merge pull request #4920 from luisramos0/api_var_ctrl
Bring Spree::Variant#active from Spree so that we can improve it
|
2020-04-23 17:35:49 +02:00 |
|
Luis Ramos
|
ac6501c5d8
|
Merge pull request #5195 from luisramos0/prod_helper
Delete dead code from several places...
|
2020-04-23 11:07:44 +01:00 |
|
Luis Ramos
|
43274ecb4f
|
Remove dead code
Dead since https://github.com/openfoodfoundation/openfoodnetwork/pull/3305
|
2020-04-18 14:47:33 +01:00 |
|
Luis Ramos
|
437c7367db
|
Remove dead code
|
2020-04-18 14:37:07 +01:00 |
|
Lucas Hiago
|
41c0204cfa
|
Update instagram and linkedin links
|
2020-04-18 10:05:59 -03:00 |
|
blainebillings
|
427dc54945
|
Change Result of PriceSack Calculation from Integers to Floats
|
2020-04-17 14:43:28 +01:00 |
|
Maikel
|
2e31f234d6
|
Merge pull request #5196 from Matt-Yorkley/customers-performance
Admin Customers performance
|
2020-04-17 13:28:39 +10:00 |
|
Matt-Yorkley
|
31a54e49c5
|
Allow User#default_card to work with eager-loading
|
2020-04-10 08:20:13 +02:00 |
|
Luis Ramos
|
314fed063d
|
Merge property with property_decorator both in our codebase
|
2020-04-09 19:09:22 +01:00 |
|
Luis Ramos
|
0d5c08c363
|
Remove dead code, there's no Spree::Money in app/models/spree and the Spree::Money in lib/spree already has a class_eval with this function
|
2020-04-09 19:06:05 +01:00 |
|
Luis Ramos
|
fc5aff8c79
|
Merge pull request #5145 from luisramos0/inv_perf
Performance improvements to Inventory page
|
2020-04-09 13:56:33 +01:00 |
|
Matt-Yorkley
|
6afda141a1
|
Remove track_inventory_levels conditional
This value is always true in OFN
|
2020-04-09 09:19:37 +02:00 |
|
Matt-Yorkley
|
b3c968856b
|
Fix some rubocop issues
|
2020-04-09 09:19:37 +02:00 |
|
Matt-Yorkley
|
f959e632ea
|
Modify Spree::Stock::Quantifier to not re-fetch stock items if they are already eager-loaded
This helps to remove a big N+1 here, and will also be very helpful elsewhere in the app
|
2020-04-09 09:19:37 +02:00 |
|
Matt-Yorkley
|
f9cf826f1c
|
Bring Spree::Stock::Quantifier in to OFN
This is the original unmodified Class from Spree. Modifications added in subsequent commits.
|
2020-04-09 09:19:36 +02:00 |
|
Luis Ramos
|
53d901b41b
|
Merge pull request #5064 from luisramos0/fix_sample_data
Fix sample data and custom paper_trail config on order_cycles and schedules on rails 4
|
2020-04-04 18:29:26 +01:00 |
|
Luis Ramos
|
4ceaebf098
|
Add order.email regexp validation and add some tests for it
|
2020-04-04 16:13:23 +01:00 |
|
Luis Ramos
|
1364a5e367
|
Merge pull request #4916 from luisramos0/adj_eli
[Spree 2.1] Make Spree::OrderUpdater update all adjustments, not just promotions and shipment adjustments
|
2020-04-04 11:28:13 +01:00 |
|
Luis Ramos
|
b8f8db0341
|
Merge pull request #5147 from luisramos0/3-0-stable-apr3
[Spree 2.1] Merge master into 3-0-stable
|
2020-04-04 11:03:14 +01:00 |
|
Luis Ramos
|
384ca310a3
|
Merge branch 'master' into 3-0-stable-apr3
|
2020-04-03 18:26:26 +01:00 |
|
Luis Ramos
|
452ab3a842
|
Add comment to better explain variant_override_set.collection_to_delete
|
2020-04-03 15:36:19 +01:00 |
|
Luis Ramos
|
80b9800b36
|
Replace SQL with equivalent AR code
|
2020-04-01 10:00:07 +01:00 |
|
Luis Ramos
|
6e095bdb68
|
Fix bug in line_item_decorator, should be inner join not left outer join
|
2020-04-01 10:00:07 +01:00 |
|
Luis Ramos
|
a4c7dbc329
|
Add comment to better explain why this scope is not simply using joins(:product)
|
2020-04-01 10:00:07 +01:00 |
|
Luis Ramos
|
7c367da904
|
Adapt LineItem#supplied_by_any scope to include deleted variants and deleted products (both not included in the respective default scopes) and use it in Permissions::Order so that variants of deleted products are seen in reports
|
2020-04-01 10:00:07 +01:00 |
|
Luis Ramos
|
0c8635403a
|
Delete dead scope in line_items
This is not used anywhere in the code
|
2020-04-01 10:00:07 +01:00 |
|
Luis Ramos
|
635ea9c505
|
Fix some long lines on variant_decorator
|
2020-03-30 11:21:47 +01:00 |
|
Luis Ramos
|
fbbe586996
|
Avoid rails 3 bug where the first where clause is overriden by a second where clause
Co-Authored-By: Maikel <maikel@email.org.au>
|
2020-03-30 11:21:47 +01:00 |
|
Luis Ramos
|
a5184cce9d
|
Make method a bit more readable and add comment with details
|
2020-03-30 11:21:47 +01:00 |
|
Luis Ramos
|
69b57544f1
|
Bring Spree::Variant#active so that we can make it return just variants without includes
This makes the variants returned not readonly in rails 4 and thus fixes a spec in Spree::VariantsController#destroy
|
2020-03-30 11:21:47 +01:00 |
|
Pau Pérez Fabregat
|
a218eab67b
|
Merge pull request #4987 from Matt-Yorkley/3-0-packing
[Spree 2.1] Packing report deleted variants
|
2020-03-26 17:37:51 +01:00 |
|
Matt-Yorkley
|
48b99d02b9
|
Merge pull request #5060 from Matt-Yorkley/weight-calculator
Fix weight calculator
|
2020-03-26 14:19:21 +01:00 |
|
Pau Pérez Fabregat
|
9daa40ce9c
|
Merge pull request #5028 from luisramos0/remove_attr_accessible
[Spree 2.1] Remove new attr_accessible entries
|
2020-03-26 11:20:08 +01:00 |
|
Maikel Linke
|
4bcd665379
|
Handle all line items without unit_value in weight calculation
|
2020-03-26 17:13:29 +11:00 |
|
Luis Ramos
|
ac0a62e962
|
Merge pull request #5050 from Matt-Yorkley/bullet_tweaks
Performance tweaks 2
|
2020-03-25 18:32:49 +00:00 |
|
Luis Ramos
|
e5e9325499
|
Fix paper_trail custom_data for order_cycle, custom data must be a string, cant be an array
|
2020-03-25 15:35:51 +00:00 |
|
Luis Ramos
|
b801bffcd9
|
Merge pull request #5030 from Matt-Yorkley/reports-loading
Improve reports performance
|
2020-03-25 12:54:34 +00:00 |
|
Luis Ramos
|
f1b64e90e0
|
Add comment to explain unusual fix
|
2020-03-25 11:49:14 +00:00 |
|