Andy Brett
7bbfb6b8db
use rpsec subject in payments spec
2021-02-26 07:44:08 -08:00
Andy Brett
c23fb27031
remove unnecessary join
2021-02-26 07:44:08 -08:00
Andy Brett
7bb49b51fd
use scope on payment model
2021-02-26 07:44:08 -08:00
Andy Brett
e5eb8f97f9
add basic feature spec for authorisation table
2021-02-26 07:44:08 -08:00
Andy Brett
83bc9d2a12
add unit spec for Payments query
2021-02-26 07:44:08 -08:00
Andy Brett
0b245ad7b1
make user attr private
2021-02-26 07:44:08 -08:00
Andy Brett
ee351d91a9
show authorization links in separate table
2021-02-26 07:44:08 -08:00
Matt-Yorkley
f1fca874a1
Update all locales with the latest Transifex translations
v3.5.11
2021-02-26 13:13:59 +00:00
Pau Pérez Fabregat
4116066a75
Merge pull request #6725 from Matt-Yorkley/adjustments-tax-totals
...
[Adjustments] Order tax totals
2021-02-25 19:24:23 +01:00
Pau Pérez Fabregat
5ded4ed938
Merge pull request #6958 from Matt-Yorkley/remove-weird-file
...
Remove dead file
2021-02-25 15:56:04 +01:00
Matt-Yorkley
d92de62a0b
I guess this was committed by mistake
2021-02-25 12:56:07 +00:00
Pau Pérez Fabregat
404ec7bf92
Merge pull request #6950 from andrewpbrett/fix-nil-enterprise-category
...
Fix #6949 : Add default icon value if enterprise.category is nil
2021-02-25 13:20:10 +01:00
Pau Pérez Fabregat
a6d6530852
Merge pull request #6957 from openfoodfoundation/dependabot/bundler/webmock-3.11.3
...
Bump webmock from 3.11.2 to 3.11.3
2021-02-25 13:19:54 +01:00
Pau Pérez Fabregat
dc4ec4d69d
Merge pull request #6955 from openfoodfoundation/transifex
...
Transifex
2021-02-25 11:49:49 +01:00
dependabot[bot]
5cf7fbd48c
Bump webmock from 3.11.2 to 3.11.3
...
Bumps [webmock](https://github.com/bblimke/webmock ) from 3.11.2 to 3.11.3.
- [Release notes](https://github.com/bblimke/webmock/releases )
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bblimke/webmock/compare/v3.11.2...v3.11.3 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-25 05:31:20 +00:00
Transifex-Openfoodnetwork
2c66184f73
Updating translations for config/locales/es_US.yml
2021-02-25 09:31:10 +11:00
Transifex-Openfoodnetwork
b81686133e
Updating translations for config/locales/ca.yml
2021-02-25 09:31:08 +11:00
Transifex-Openfoodnetwork
a4ea792325
Updating translations for config/locales/en_GB.yml
2021-02-25 09:31:07 +11:00
Transifex-Openfoodnetwork
4c28bcf0d1
Updating translations for config/locales/fr_CA.yml
2021-02-25 09:31:05 +11:00
Transifex-Openfoodnetwork
3cbb14af04
Updating translations for config/locales/en_CA.yml
2021-02-25 09:31:02 +11:00
Transifex-Openfoodnetwork
f77417acef
Updating translations for config/locales/en_US.yml
2021-02-25 09:31:00 +11:00
Transifex-Openfoodnetwork
65e040948f
Updating translations for config/locales/fr.yml
2021-02-25 09:30:58 +11:00
Transifex-Openfoodnetwork
2fa6583176
Updating translations for config/locales/es.yml
2021-02-25 09:30:55 +11:00
Andy Brett
bc7477795c
Merge pull request #6910 from andrewpbrett/remove-order-capture
...
Make orders not capturable if they have a payment pending authorization
2021-02-24 12:20:43 -08:00
Pau Pérez Fabregat
d7d86729ad
Merge pull request #6929 from efgalvao/issue#6892
...
Fix the issue #6892
2021-02-24 20:48:27 +01:00
Andy Brett
741ed73cf5
add specs for enterprises with nil or unknown category
2021-02-24 11:43:53 -08:00
Andy Brett
106803cc0b
Merge pull request #6945 from openfoodfoundation/dependabot/bundler/stripe-5.30.0
...
Bump stripe from 5.29.1 to 5.30.0
2021-02-24 10:11:24 -08:00
Pau Pérez Fabregat
15e6c28cc5
Merge pull request #6954 from coopdevs/remove-dead-serializer
...
Remove dead serializer
2021-02-24 18:01:29 +01:00
Transifex-Openfoodnetwork
6b0339df63
Updating translations for config/locales/fr_CA.yml
2021-02-25 03:33:32 +11:00
Transifex-Openfoodnetwork
3eec52b8f1
Updating translations for config/locales/en_CA.yml
2021-02-25 03:33:26 +11:00
Transifex-Openfoodnetwork
7b52abbd35
Updating translations for config/locales/fr_CA.yml
2021-02-25 03:30:39 +11:00
Transifex-Openfoodnetwork
3825712755
Updating translations for config/locales/es_US.yml
2021-02-25 03:30:28 +11:00
Transifex-Openfoodnetwork
0a0ba1255a
Updating translations for config/locales/ca.yml
2021-02-25 03:30:26 +11:00
Transifex-Openfoodnetwork
dbb0d9bd38
Updating translations for config/locales/en_GB.yml
2021-02-25 03:30:24 +11:00
Transifex-Openfoodnetwork
583e091f67
Updating translations for config/locales/de_DE.yml
2021-02-25 03:30:23 +11:00
Transifex-Openfoodnetwork
c169e63b53
Updating translations for config/locales/fr.yml
2021-02-25 03:30:19 +11:00
Matt-Yorkley
0f0f3e1ab4
Merge pull request #6940 from drummer83/patch-1
...
Create independent title string for 'Map' page
2021-02-24 17:24:25 +01:00
Pau Perez
ec3b402856
Remove dead serializer
...
This became unused in
b9d72ce4cf (diff-5df9d1d16b9e9ac1724af5c6180ca86f7caeb6a4880d2f77ac25fbe757b597b9) .
2021-02-24 17:09:16 +01:00
Pau Pérez Fabregat
0e03864aa9
Merge pull request #6906 from jibees/6895-close-tooptip-when-user-clicks-anywhere-else
...
Close unit price tooltip when user click outside the tooltip
2021-02-24 15:19:25 +01:00
Pau Pérez Fabregat
d513dc31de
Merge pull request #6905 from jibees/6498-show-unit-price-in-checkout
...
Show unit price in checkout process (both cart page and cart sidebar)
2021-02-24 11:59:25 +01:00
Maikel
0654e3d1cf
Merge pull request #6854 from openfoodfoundation/dependabot/bundler/rswag-2.4.0
...
Bump rswag from 2.3.3 to 2.4.0
2021-02-24 15:47:31 +11:00
Maikel Linke
bcd9ea2b87
Update generated swagger file
...
rake rswag PATTERN="spec/requests/api/*_spec.rb"
This file is just a demo so far. The more complete description of the
API is: /swagger.yaml
2021-02-24 15:45:47 +11:00
Andy Brett
2d304bd997
add default icon value if enterprise.category is nil
2021-02-23 11:37:36 -08:00
Pau Pérez Fabregat
89947c8154
Merge pull request #6946 from openfoodfoundation/dependabot/bundler/awesome_nested_set-3.4.0
...
Bump awesome_nested_set from 3.3.1 to 3.4.0
2021-02-23 20:37:07 +01:00
Pau Perez
116109c63d
Make /api/orders N+1 free
...
With the help of the bullet gem, and since we remove a couple of N+1s
already, remove them all was just a few keystrokes away. This commits
gets us from 42 SQL queries to 17, and 364.5ms to 253.9ms on my machine
where I just have the sample data's orders. As usual, this will have
a much bigger impact in scenarios with more data.
2021-02-23 10:26:12 -08:00
Pau Perez
20a7f2f24e
Eager load payment and subs. order associations
...
This removes the N+1 queries caused by
`Api::Admin::OrderSerialier#ready_to_capture` when used from
`Api::OrdersController#index`. While it's fine for the single-order
controller actions, it's not for this one that deals with a collection
of orders.
Fortunately, `SearchOrders` is used only in this controller action so we
can put the `includes` calls there, otherwise, we would need to refactor
it a bit to pass in a context-specific AR relation.
2021-02-23 10:26:12 -08:00
Andy Brett
d62a984939
make orders not capturable if they have a payment pending authorization
2021-02-23 10:26:04 -08:00
Matt-Yorkley
9852470ef6
Merge pull request #6913 from Matt-Yorkley/rails-5-backports
...
Rails 5 backports
2021-02-23 11:55:31 +01:00
dependabot[bot]
37707f4a5b
Bump awesome_nested_set from 3.3.1 to 3.4.0
...
Bumps [awesome_nested_set](https://github.com/collectiveidea/awesome_nested_set ) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/collectiveidea/awesome_nested_set/releases )
- [Changelog](https://github.com/collectiveidea/awesome_nested_set/blob/master/CHANGELOG )
- [Commits](https://github.com/collectiveidea/awesome_nested_set/compare/v3.3.1...v3.4.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-23 05:35:38 +00:00
dependabot[bot]
f7173ff0b0
Bump stripe from 5.29.1 to 5.30.0
...
Bumps [stripe](https://github.com/stripe/stripe-ruby ) from 5.29.1 to 5.30.0.
- [Release notes](https://github.com/stripe/stripe-ruby/releases )
- [Changelog](https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/stripe/stripe-ruby/compare/v5.29.1...v5.30.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-23 05:35:07 +00:00