Luis Ramos
|
839b373b5c
|
Merge branch 'master' into 3-0-stable-Apr28
|
2020-04-28 13:40:19 +01:00 |
|
Luis Ramos
|
868929eed3
|
Merge pull request #4993 from luisramos0/move_ent_fees
Change engine routes to better work with specs in rails 4
|
2020-04-28 11:48:41 +01:00 |
|
Luis Ramos
|
ab16931d70
|
Merge pull request #5257 from luisramos0/stripe_sca_payments_last
StripeSCA - reuse better method to fetch last payment of an order to avoid nasty bugs in the future
|
2020-04-27 18:34:35 +01:00 |
|
Luis Ramos
|
6e23f5bdac
|
Merge pull request #5233 from luisramos0/stripe_sca_bo
[StripeSCA] Fix card payments in the Backoffice
|
2020-04-27 13:00:24 +01: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 |
|
Luis Ramos
|
b3eda9fecb
|
Merge pull request #5256 from dacook/5190-fix-order-sorting
Fix sorting of orders list
|
2020-04-26 14:24:00 +01:00 |
|
Luis Ramos
|
2984829790
|
Merge pull request #5253 from luisramos0/edit_order
Make edit order page work even if inventory_items dont have a corresponding line_item in the order
|
2020-04-23 19:27:31 +01: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
|
42be6c905f
|
Added spec for OrderPaymentFinder
|
2020-04-23 16:08:10 +10:00 |
|
Pau Pérez Fabregat
|
e20e19f963
|
Merge pull request #5244 from coopdevs/include-deleted-variants-and-products
Include deleted products in OC mailer
|
2020-04-20 20:46:21 +02: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 |
|
Luis Ramos
|
910cc99c2f
|
Add spec to cover orders_controller watch sortOptions
|
2020-04-18 10:23:02 +01:00 |
|
Luis Ramos
|
8973a1b76c
|
Merging 6 specs in one takes around 1 minute of execution time
|
2020-04-17 20:18:13 +01:00 |
|
Luis Ramos
|
c1b28543c6
|
Extract print ticket spec to a separate file
|
2020-04-17 20:07:45 +01:00 |
|
Luis Ramos
|
c33352904a
|
Make spec a bit more resilient
|
2020-04-17 18:48:20 +01:00 |
|
Luis Ramos
|
8bd3062b16
|
Fix rubocop issues
|
2020-04-17 18:17:54 +01:00 |
|
Luis Ramos
|
c7fb85a715
|
Replace background with members with before with let statements
|
2020-04-17 17:34:36 +01:00 |
|
Luis Ramos
|
e901615b61
|
Make spec simpler
|
2020-04-17 16:56:56 +01:00 |
|
Luis Ramos
|
c455dfb609
|
Make some specs faster by going directly to the order edit page and move incomplete order spec to a specific context
|
2020-04-17 16:28:27 +01:00 |
|
Pau Perez
|
04c962432a
|
Skip deleted default_scope in OC notification
This fixes the RuntimeError we get when accessing deleted variants due
to the variant being nil.
https://github.com/rails/rails/issues/11036 is still an open Rails bug,
as some people mention in https://github.com/rails/rails/pull/21550.
The issue is that `includes` doesn't respect `unscoped`. I found
a potential solution for the entire app in
https://github.com/rails/rails/issues/11036#issuecomment-302133116 but
our friend @markets has a gem,
https://github.com/markets/unscoped_associations, that solves that too.
|
2020-04-17 17:25:34 +02:00 |
|
Luis Ramos
|
d96d6b2337
|
Split orders_spec in two: tests for orders list page and tests for orders edit page
|
2020-04-17 15:21:03 +01:00 |
|
Luis Ramos
|
9147518422
|
Remove some unnecessary code
|
2020-04-17 14:51:06 +01:00 |
|
Luis Ramos
|
d23397f250
|
Move float test to a separate context
|
2020-04-17 14:49:09 +01:00 |
|
blainebillings
|
993a684e44
|
Add Price Sack Spec for Float Amounts
|
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 |
|
Maikel
|
e29a81cacc
|
Merge pull request #5186 from oeoeaio/customer-totals-inventory-sku
Take sku overrides into account in customer totals report
|
2020-04-17 13:27:43 +10:00 |
|
Luis Ramos
|
fcc746a1b7
|
Fix long lines in payments_controller_spec
|
2020-04-15 16:18:17 +01:00 |
|
Luis Ramos
|
8f7b3df9b5
|
Make payment controller authorize stripe_sca payments before processing them or advancing order workflow (that also calls payment.process)
|
2020-04-15 16:07:34 +01:00 |
|
Luis Ramos
|
cedf1b26f2
|
If no flash is sent from the server, show the generic error
|
2020-04-14 14:31:34 +01:00 |
|
Luis Ramos
|
62471bf2ab
|
Clear Loading spinner when exception is caught
|
2020-04-14 13:50:38 +01:00 |
|
Luis Ramos
|
cdf5bcb7eb
|
Improve unexpected error handling and add test cases for it
|
2020-04-14 13:44:58 +01:00 |
|
Luis Ramos
|
7414047b92
|
Switch from old success/error to modern then/catch structure
Catch() will get a few more errors then errors()
Also, add try/catch inside catch to detect any errors parsing the
response error payload
|
2020-04-14 13:04:28 +01:00 |
|
Rob H
|
dcdd3f2444
|
Modify interface of VariantOverridesIndexed#indexed
Stop using keyword args and accept variant_ids instead of line_items
|
2020-04-13 22:11:58 +10:00 |
|
Rob H
|
6820919552
|
Rename VariantOverrides class to VariantOverridesIndexed
|
2020-04-13 21:56:37 +10:00 |
|
Rob H
|
4a4173bdc0
|
Move VariantOverrides class to app/services
|
2020-04-13 21:54:10 +10:00 |
|
Rob H
|
9a7e782102
|
Only load up variant overrides for relevant hubs
|
2020-04-13 12:07:17 +10:00 |
|
Rob H
|
14cf168e3b
|
Take sku overrides into account in customer totals report
|
2020-04-11 16:05:15 +10:00 |
|
Matt-Yorkley
|
4c41c84cc1
|
Refactor tag rules loading for customers
Fixes N+1 queries on customer tags
|
2020-04-10 10:12:32 +02:00 |
|
Luis Ramos
|
b5ba2acb21
|
Merge pull request #5169 from jeduardo824/enhancement/5102-make-shop-names-links
make shop name a link on /account
|
2020-04-09 22:01:34 +01:00 |
|
Luis Ramos
|
2ff8356c63
|
Delete dead code from products helper
|
2020-04-09 16:33:17 +01:00 |
|
Luis Ramos
|
dd717fe8ac
|
Merge pull request #5184 from Matt-Yorkley/inventory-loading
Inventory loading
|
2020-04-09 13:26:12 +01:00 |
|
Matt-Yorkley
|
5bb2614f9d
|
Refactor PagedFetcher so it makes one request at a time
|
2020-04-09 09:19:37 +02:00 |
|
Matt-Yorkley
|
3aff7f62e3
|
Don't query distributed properties on enterprises that aren't active distributors
Cuts page load on /shops by ~75% (with production data) and removes ~300 expensive and superfluous queries.
|
2020-04-08 20:08:12 +02:00 |
|
Matt-Yorkley
|
fc5e346a06
|
Merge pull request #5156 from Matt-Yorkley/closed-shops
Load closed shops in a separate request on /shops page
|
2020-04-08 20:05:26 +02:00 |
|
Luis Ramos
|
ff799b6e82
|
Avoid using update_attributes that save the order to the DB
|
2020-04-07 11:13:29 +01:00 |
|
Luis Ramos
|
d18a06a0f7
|
Merge pull request #4783 from luisramos0/stripe_sca_extra_subs
Move all subscriptions services to the OrderManagement engine
|
2020-04-06 20:20:02 +01:00 |
|
Eduardo
|
e7b780f963
|
make shop name a link on /account
|
2020-04-06 08:34:24 -03:00 |
|
Luis Ramos
|
4ceaebf098
|
Add order.email regexp validation and add some tests for it
|
2020-04-04 16:13:23 +01:00 |
|
Matt-Yorkley
|
bc859cf9f7
|
Add api/shops_controller and refactor
|
2020-04-04 17:02:27 +02:00 |
|