Jean-Baptiste Bellet
3e5656e638
Remove distinct to make proper ORDER BY
...
Update specs as well to test match array and test duplication by adding property2 to product1
2022-04-21 11:03:22 +02:00
Filipe
f831154b6f
Merge pull request #8950 from jibees/5903-delete-coordinators_fees-linked-to-cloned-OC
...
Delete linked coordinators fees when deleting an order cycle
2022-04-18 11:55:53 +01:00
Maikel Linke
41746459fa
Restrict allow_charges attribute to read-only
...
We want people to use the UI to change this attribute.
2022-03-28 10:55:57 +11:00
Matt-Yorkley
ad5c834342
Merge pull request #8995 from apricot12/7853-deprecation-warnings-1
...
7853 deprecation warnings 1
2022-03-25 19:54:06 +00:00
Filipe
0dd398abba
Merge pull request #8926 from mkllnk/8925-invalid-param
...
Gracefully handle admin UI failure on updating enterprise notifications
2022-03-17 14:19:34 +00:00
Nihal Mohammed
ccc3322c12
Change deprecated file path upload path syntax in enterprises_controller_spec
2022-03-14 18:42:58 +05:30
Jean-Baptiste Bellet
1fe7ebcec2
Check uncheck save_bill|ship_address don't save bill|ship_address
2022-03-07 17:42:06 +01:00
Jean-Baptiste Bellet
440e5aaf97
Default checked/unchecked values for checkbox is 0/1
2022-03-07 17:41:05 +01:00
Jean-Baptiste Bellet
7ca6434b14
Improve the test to delete a cloned order_cycle
2022-03-04 11:34:19 +01:00
Jean-Baptiste Bellet
5fc7d72b09
Check destroying order_cycle will delete associated coordinator fees
2022-03-03 09:06:38 +01:00
filipefurtad0
f6304892c2
Adds controller coverage for stock restrictions
2022-02-27 22:01:48 +00:00
Maikel Linke
8ffe6f6052
Sanitise user_id param on enterprise update
2022-02-24 14:51:23 +11:00
Maikel Linke
8e070f55ff
Spec fail on bad enterprise param
...
It looks like some JS component can submit an invalid value here and it
causes a server error.
2022-02-24 14:46:42 +11:00
Filipe
7590b3ecf8
Merge pull request #8756 from jibees/8075-take-into-account-the-inherits_properties-attribute
...
Product that don't inherits from "producer"/"enterprise" properties should be filtered out by user on shop page
2022-02-21 19:04:08 +00:00
Adrien Chauve
9b93102a96
More fixes
2022-02-16 10:23:22 +11:00
Filipe
30c1d89525
Merge pull request #8822 from Matt-Yorkley/split-checkout-payment-total
...
[Split Checkout] Move setting of payment total during checkout into OrderUpdater
2022-02-09 16:21:47 +00:00
Jean-Baptiste Bellet
dfe8ed26d9
Update tests and use ransack to search with the new scope: with_properties
2022-02-07 08:57:18 +01:00
Jean-Baptiste Bellet
f8002ae49a
Add some controller specs that handle the supplier_property filtering
...
with product that don't inherits properties
2022-02-07 08:57:18 +01:00
Filipe
e403fc171d
Merge pull request #8808 from Matt-Yorkley/login-modal
...
Remove all Angular code from Login/Signup process
2022-02-03 19:36:44 +00:00
Matt-Yorkley
f77ecc1968
Improve and simplify return authorizations test setup
2022-02-01 11:39:07 +00:00
Matt-Yorkley
31e6405125
Handle setting of payment amount during checkout in OrderUpdater
2022-02-01 11:39:07 +00:00
Filipe
ca0166a420
Merge pull request #8807 from Matt-Yorkley/closed-oc-payment-auth
...
Fix Stripe payment authorizing for closed order cycles
2022-02-01 11:16:31 +00:00
Matt-Yorkley
11ed1574ca
Call #check_order_cycle_expiry in PaypalController and StripeController, but avoid it on #authorize action
...
The authorize action is used for authorizing off-session payments where the order is *already complete* and the order cycle may have closed (backoffice and subscriptions). They are essentially asynchronous and not coupled to the current open/closed state of the order cycle.
2022-01-31 15:55:35 +00:00
Matt-Yorkley
5e6dd1e6e1
Move #check_order_cycle_expiry method to OrderStockCheck and don't call it from BaseController :before_action callback
2022-01-31 15:55:35 +00:00
Matt-Yorkley
8b59ef20db
Improve controller tests
2022-01-29 14:49:23 +00:00
Matt-Yorkley
13a7fb79cf
Move more login handling out of Angular
2022-01-29 14:49:23 +00:00
Matt-Yorkley
8a18a4de66
Clear up redirecting logic and path building
2022-01-29 10:08:51 +00:00
Matt-Yorkley
6c6e5ca316
Ensure fees are applied during checkout
2022-01-28 11:38:23 +00:00
Filipe
53b96896a9
Merge pull request #8779 from mkllnk/7872-remove-stripe-connect
...
Upgrade old Stripe Connect payment methods to Stripe SCA and remove Stripe Connect
2022-01-26 11:57:26 +00:00
Matt-Yorkley
b5a1d9ebef
Allow using saved cards at checkout
2022-01-24 23:06:43 +00:00
Matt-Yorkley
8c9ca3b0c3
Extract method and allow Stripe payment completion on orders in confirmation state
2022-01-24 20:49:06 +00:00
Matt-Yorkley
8552da2377
Extract and stub PaymentMethodFetcher
2022-01-24 20:28:59 +00:00
Matt-Yorkley
ebb69d7f93
Add controller test for payment redirect
2022-01-24 20:28:59 +00:00
Matt-Yorkley
48a7cfa09e
Fix more deprecated keyword arguments
2022-01-24 14:11:08 +00:00
Maikel Linke
ee85b9654d
Remove references to StripeConnect class
2022-01-24 12:35:45 +11:00
Maikel Linke
f22c2b0e73
Remove option to create StripeConnect methods
2022-01-24 12:35:45 +11:00
Matt-Yorkley
8f37aa71f2
Save default addresses when requested during checkout
2022-01-19 13:40:33 +00:00
Matt-Yorkley
fb00a51ae8
Merge pull request #8653 from Matt-Yorkley/split-checkout-t-and-c
...
Split checkout T&Cs
2022-01-19 13:39:15 +00:00
Filipe
8114eb1c9f
Merge pull request #8666 from openfoodfoundation/stripe-controller
...
Extract new StripeController
2022-01-17 20:21:40 +00:00
Filipe
62f0de75ee
Merge pull request #8679 from Matt-Yorkley/drop-jquery-ujs
...
Drop jquery_ujs
2022-01-17 16:30:25 +00:00
Filipe
dfdeb7368e
Merge pull request #8681 from SarvarKh/translation-correction
...
Add flash message translation for log out
2022-01-15 14:55:26 +00:00
Matt-Yorkley
11c6ce16ea
Move payment-authorizing tests to stripe controller spec
2022-01-14 19:41:08 +00:00
Matt-Yorkley
5a70664a6a
Pull stripe-related tests into new controller spec
2022-01-14 19:41:08 +00:00
Matt-Yorkley
48c4ecde08
Update checkout specs using deleted OrderCompletionReset
2022-01-14 19:41:08 +00:00
Matt-Yorkley
7b8e1f5c30
Update/improve paypal controller specs
2022-01-14 19:41:08 +00:00
Matt-Yorkley
9583a3cc3d
Use order token param in specs
2022-01-14 19:41:08 +00:00
Matt-Yorkley
9b2801db24
Fix calls to private method #expire_current_order in specs
2022-01-14 19:41:08 +00:00
Matt-Yorkley
b850fd6fda
Add controller spec for split checkout
2022-01-13 13:55:33 +00:00
Filipe
da703b2d95
Merge pull request #8615 from jibees/8559-enable-sort-orders-by-order-full-name
...
Enable sorting orders by order full name
2022-01-11 11:27:36 +00:00
SarvarKhalimov
f09f6208c2
Remove trailing whitespace from user_sessions_controller_spec.rb
2022-01-11 00:01:08 +05:00