Matt-Yorkley
ac5766b00b
Report current order info on all checkout failures
2021-11-14 20:01:32 +00:00
Matt-Yorkley
f8349434bf
Skip address setup logic if we're coming from Stripe
...
The code here runs from a callback which was originally designed to make sure the checkout page was set up correctly in the "normal" checkout workflow. It wasn't really designed to be run when the page is being loaded a second time due to the user being redirected back from Stripe (with SCA). The things it's doing here are necessary in the former case, but a really bad idea in the latter (potentially messing up the order's ship and bill addresses in certain cases like guest checkout).
2021-11-14 16:54:44 +00:00
Matt-Yorkley
f83d0a766f
Memoize Checkout#valid_payment_intent_provided?
2021-11-14 14:24:23 +00:00
Matt-Yorkley
bbb47964db
Notify Bugsnag if the order loaded at checkout is invalid after being redirected back from Stripe during payment processing.
2021-11-14 13:58:15 +00:00
Matt-Yorkley
1bf4e6fa56
Reorder conditions for performance
...
A little micro-optimisation: `@order.checkout_allowed?` requires a database query, whereas `@order.completed?` does not. So in cases where the order is completed we can return early here before hitting the database.
2021-11-14 13:58:15 +00:00
Matt-Yorkley
8d0cbe886a
Rename method for clarity
2021-11-14 13:58:15 +00:00
Matt-Yorkley
48acc0ecd0
Add Bugsnag notice when an OC closes during checkout completion
...
This info could be useful to know whilst debugging order completion issues.
2021-11-14 13:58:15 +00:00
Matt-Yorkley
d0f572b051
Remove dead code: session[:guest_token]
...
This `session[:guest_token]` doesn't seem to ever be assigned anywhere in the codebase, and it doesn't seem to be read at any point either..? There are some various places where `current_order.token` is used and `session[:access_token]` is used, but not this.
As far as I can tell: it was part of an old version of Spree and related to the spree_auth_devise gem (which we no longer use).
2021-11-14 12:02:07 +00:00
Matt-Yorkley
00862844d5
Memoize Checkout#valid_payment_intent_provided?
2021-11-14 11:39:36 +00:00
Jean-Baptiste Bellet
3df304c9d6
Search and match through name + city and state_name
...
- Rename enterpriseMatchesNameQueryFilter as well to enterpriseMatchesQueryFilter
- Update tests as well
2021-11-12 15:57:28 +01:00
Matt-Yorkley
0a22a3baa6
Merge pull request #8478 from Matt-Yorkley/split-admin-system-tests
...
Split admin system tests into two groups
2021-11-12 10:20:46 +00:00
Jean-Baptiste Bellet
fff2c3ae74
Update spec to take into account the non-duplication of product in inventory
2021-11-12 10:55:47 +01:00
Maikel Linke
4c4691adbb
Update translations
2021-11-12 14:48:30 +11:00
Maikel
28b8b9cc55
Merge pull request #8460 from openfoodfoundation/transifex
...
Transifex
2021-11-12 14:38:45 +11:00
Maikel Linke
6212ad18a8
Test for concurrent checkouts reliably
...
Apparently, controller specs are not thread safe and we got random test
failures. I converted it into a request spec and fine-tuned it to make
it more reliable.
2021-11-12 14:09:17 +11:00
Matt-Yorkley
f3d22ba777
Merge pull request #8439 from openfoodfoundation/dependabot/npm_and_yarn/mrujs-0.6.0
...
Bump mrujs from 0.5.11 to 0.6.0
2021-11-11 16:29:33 +00:00
Matt-Yorkley
6635b59250
Split admin system tests into two groups
2021-11-11 14:49:03 +00:00
Matt-Yorkley
0d8d4db41f
Fix keyword args deprecations
...
/home/runner/work/openfoodnetwork/openfoodnetwork/lib/spree/core/delegate_belongs_to.rb:75: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/home/runner/work/openfoodnetwork/openfoodnetwork/lib/spree/i18n.rb:20: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
2021-11-11 14:16:37 +00:00
Matt-Yorkley
b1c1284c18
Merge pull request #8450 from filipefurtad0/admin_into_system_3
...
Moves/Updates admin into system (cont. III)
2021-11-11 14:05:19 +00:00
Matt-Yorkley
0683941f88
Ensure line items are correctly scoped for producers
2021-11-11 13:11:19 +00:00
Jean-Baptiste Bellet
7041ec71a4
Translate some error messages during payment processing if exists
...
- Stripe error messages aren't translated. But, Stripe send the error code. Use it (if found it, and translation key does exist) to translated the error message
- Populate the en.yml file with some of the most known errors
Co-Authored-By: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com >
2021-11-11 12:04:38 +01:00
Matt-Yorkley
fa4751b998
Include items from resumed orders when mailing producers
2021-11-10 15:09:24 +00:00
Jean-Baptiste Bellet
d2dbe6c738
Use distinct to return unique product
...
- Product were displayed twice (or more) in certain condition under order cycle incoming products admin interface
2021-11-10 14:49:19 +01:00
Maikel
d799f446be
Merge pull request #8466 from filipefurtad0/admin_into_system_v
...
Moves/updates missing admin feature specs into system (cont.)
2021-11-10 11:30:11 +11:00
Maikel
6cc194a10b
Merge pull request #8464 from openfoodfoundation/dependabot/npm_and_yarn/karma-6.3.8
...
Bump karma from 6.3.7 to 6.3.8
2021-11-10 11:24:56 +11:00
jibees
7bbb68e0c2
Merge pull request #8462 from filipefurtad0/admin_into_features_iv
...
Moves/updates subscriptions_spec into system
2021-11-09 14:56:36 +01:00
filipefurtad0
901d1cbc44
Moves/updates variants_spec into system
2021-11-08 19:15:37 +00:00
filipefurtad0
42992e63a5
Moves/updates users_spec into system
2021-11-08 16:46:41 +00:00
filipefurtad0
05393351f6
Moves/updates unit_price_spec into system
2021-11-08 16:45:32 +00:00
filipefurtad0
7e0d24c784
Moves/updates tax_settings into system
2021-11-08 16:33:25 +00:00
Jean-Baptiste Bellet
6266c3c5ae
User can delete relationship between enterprises in both direction
...
A permits B
B permits A
Manager for A and B enterprises can delete the two relations.
Update specs as well
2021-11-08 14:21:42 +01:00
Transifex-Openfoodnetwork
bb23be0909
Updating translations for config/locales/en_GB.yml
2021-11-08 22:02:14 +11:00
dependabot[bot]
de6ebc361a
Bump karma from 6.3.7 to 6.3.8
...
Bumps [karma](https://github.com/karma-runner/karma ) from 6.3.7 to 6.3.8.
- [Release notes](https://github.com/karma-runner/karma/releases )
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md )
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.7...v6.3.8 )
---
updated-dependencies:
- dependency-name: karma
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-08 09:07:47 +00:00
filipefurtad0
d646b29573
Comments out drag_to block - not implemented in Cuprite
2021-11-06 19:23:36 +00:00
filipefurtad0
fa4a2dbab4
Moves/updates tag_rules into system
2021-11-06 19:18:42 +00:00
filipefurtad0
151ff59d1b
Moves/updates subscriptions_spec into system
2021-11-06 17:11:14 +00:00
Guido Oliveira
db45d7f4eb
Cancel empty orders on BOM page
2021-11-06 10:25:34 -03:00
filipefurtad0
6a33ad44f0
Fixes failing example on enterprises spec
2021-11-06 12:33:04 +00:00
filipefurtad0
a946b93fb9
Deletes obsolete example
2021-11-06 12:13:07 +00:00
filipefurtad0
182ef9eb3e
Changes deletion action
2021-11-06 11:54:39 +00:00
filipefurtad0
9b3db4e667
Updates/moves shipping_methods into system
2021-11-06 11:53:02 +00:00
filipefurtad0
5fae9e2b30
Updates/moves schedules_spec into system
2021-11-06 11:50:20 +00:00
Matt-Yorkley
8cb2a2cc96
Merge pull request #8451 from Matt-Yorkley/variant-search-debounce
...
Fix debounce on variant search dropdown
v4.1.7
2021-11-05 18:59:44 +00:00
jibees
a737ee4d1b
Merge pull request #8446 from filipefurtad0/admin_into_system_2
...
Moves/Updates admin into system (cont.)
2021-11-05 17:02:56 +01:00
Transifex-Openfoodnetwork
42b00abf3e
Updating translations for config/locales/fr.yml
2021-11-06 02:29:34 +11:00
Transifex-Openfoodnetwork
70634dc0c1
Updating translations for config/locales/en_FR.yml
2021-11-06 00:12:34 +11:00
Matt-Yorkley
4dfbdc3bfa
Merge pull request #8456 from openfoodfoundation/dependabot/npm_and_yarn/dns-packet-1.3.4
...
Bump dns-packet from 1.3.1 to 1.3.4
2021-11-05 11:26:14 +00:00
Matt-Yorkley
40e4e6427e
Merge pull request #8454 from openfoodfoundation/dependabot/npm_and_yarn/url-parse-1.5.3
...
Bump url-parse from 1.5.1 to 1.5.3
2021-11-05 11:26:04 +00:00
dependabot[bot]
f0d0f8620f
Bump dns-packet from 1.3.1 to 1.3.4
...
Bumps [dns-packet](https://github.com/mafintosh/dns-packet ) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases )
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4 )
---
updated-dependencies:
- dependency-name: dns-packet
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-05 10:51:13 +00:00
Matt-Yorkley
22ec427951
Merge pull request #8452 from openfoodfoundation/dependabot/npm_and_yarn/postcss-7.0.39
...
Bump postcss from 7.0.35 to 7.0.39
2021-11-05 10:50:33 +00:00