Luis Ramos
|
19da0ba969
|
Merge branch 'master' into 3-0-stable-may13
|
2020-05-13 19:50:32 +01:00 |
|
Luis Ramos
|
0a6bd1424c
|
Make ship method display on back_end work correcly by making checkout ignore ship methods configured for backoffice only
Adding both unit and feature tests as this is important enough for that
|
2020-05-08 12:59:17 +01:00 |
|
Luis Ramos
|
d967d855fc
|
Merge pull request #5319 from Matt-Yorkley/caching-by-class
[Caching] Caching data by class
|
2020-05-07 11:43:44 +01:00 |
|
Luis Ramos
|
be4104d6f3
|
Merge branch 'master' into 3-0-stable-may-5
|
2020-05-05 19:11:20 +01:00 |
|
Matt-Yorkley
|
6afda87baf
|
Add explanatory comment on soft-deleted variant stock logic
|
2020-05-05 13:57:50 +02:00 |
|
Matt-Yorkley
|
0e429da377
|
Return zero available stock (total_on_hand) for variants that are soft-deleted
|
2020-05-05 13:57:50 +02:00 |
|
Matt-Yorkley
|
068c8feea7
|
Merge pull request #5289 from Matt-Yorkley/cart-populate
Cart populate
|
2020-05-05 13:56:17 +02:00 |
|
Pau Pérez Fabregat
|
f9f4bdae8f
|
Merge pull request #5238 from Matt-Yorkley/moar-performance
Improve Pain Points
|
2020-04-29 16:36:15 +02:00 |
|
Matt-Yorkley
|
f4bcf6c6d5
|
Eager-load line_item associations in order
|
2020-04-28 20:10:40 +02: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
|
6ef345c5d8
|
Touch taxon when a taxon is applied to a product
|
2020-04-28 15:11:59 +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 |
|
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 |
|
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 |
|
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
|
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
|
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 |
|
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 |
|
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 |
|
Luis Ramos
|
2de550eac1
|
Make OrderUpdate update all adjustments again as in v2.0.4 otherwise adjustments that are not shipment adjustments will not be calculated correctly
|
2020-03-22 20:08:11 +00:00 |
|
Matt-Yorkley
|
0b878dd0a2
|
Use named scope for finding line_items in a set of orders
|
2020-03-21 09:45:35 +01:00 |
|
Luis Ramos
|
17c2f7b138
|
Merge pull request #4889 from luisramos0/3-0-prod-set
[Spree 2.1] Fix ProductSet spec (1 broken spec)
|
2020-03-20 19:33:19 +00:00 |
|
Luis Ramos
|
03cdaf589e
|
Remove newly added attr_accessible from stripe_sca
This is not needed, in rails 4 the params are permitted at controller level
|
2020-03-20 15:08:29 +00:00 |
|