Pau Perez
91306d5ce4
Update all locales with the latest Transifex translations
2020-04-21 10:13:00 +02: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
15e56b21ae
Merge pull request #5229 from chrishil1/missing_translation
...
Added missing translations to enterprise_relationship page
2020-04-18 18:15:54 +01:00
Luis Ramos
629db3ae4d
Merge pull request #5230 from chrishil1/missing_translation_2
...
Add product translations to admin order creation
2020-04-18 18:15:01 +01:00
Pau Perez
d8e6d98912
Preload line item's option_values
...
This fixes an N+1 with the query
```sql
SELECT "spree_option_values".* FROM "spree_option_values"
INNER JOIN "spree_option_types"
ON "spree_option_types"."id" = "spree_option_values"."option_type_id"
INNER JOIN "spree_option_values_line_items"
ON "spree_option_values"."id" = "spree_option_values_line_items"."option_value_id"
WHERE "spree_option_values_line_items"."line_item_id" = 1679
ORDER BY spree_option_types.position asc
```
2020-04-17 17:34:53 +02:00
Pau Perez
63eb0980eb
Memoize result of line items query
...
No need to fetch twice what we just loaded from DB.
2020-04-17 17:27:21 +02:00
Pau Perez
06ead827d8
Split long method
2020-04-17 17:27:21 +02:00
Pau Perez
6dd4a866e5
Address some Rubocop violations
2020-04-17 17:25:35 +02: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
ffceff3f0a
Update GETTING_STARTED.md
...
Update link to osx catalina setup guide in wiki
2020-04-17 11:41:02 +01:00
Maikel Linke
4658a53aeb
Update translations from Transifex
2020-04-17 15:37:54 +10:00
Maikel
3bc834435d
Merge pull request #5152 from Matt-Yorkley/missing-indexes
...
Add missing indexes to spree_orders and spree_products
2020-04-17 15:16:03 +10:00
Maikel
9111ff1a38
Merge pull request #5211 from openfoodfoundation/transifex
...
Transifex
2020-04-17 14:24:26 +10:00
Maikel
b0eac1ecaa
Merge branch 'master' into missing-indexes
2020-04-17 14:17:32 +10: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
Maikel
a672af1a79
Merge pull request #5237 from luisramos0/master_with_change
...
Clone of #5176
2020-04-17 13:27:14 +10:00
Maikel
f282ff805d
Merge pull request #5172 from kristinalim/feature/5170-increase_locale_chars_in_spree_users
...
Increase max characters for locale in spree_users
2020-04-16 18:18:45 +10:00
Transifex-Openfoodnetwork
2f7dc9a578
Updating translations for config/locales/es.yml
2020-04-16 17:09:44 +10:00
chrishil1
a9829ba5d9
Update _enterprise_relationship.html.haml
2020-04-15 17:01:22 -05:00
Luis Ramos
8532fa16cd
Merge pull request #5202 from luisramos0/improve_checkout_js
...
Improve Checkout error handling in JS
2020-04-15 22:25:05 +01:00
chrishil1
c3f01be580
Fixed display all required tag
2020-04-15 19:00:35 +01:00
jeffrey s hill md
e23045b19e
Add product translations
2020-04-14 14:15:57 -05:00
jeffrey s hill md
5e1dea61a8
added missing translations to enterprise_relationship page
2020-04-14 11:20:56 -05: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
47a93568dc
Make code simpler by extracting methods
2020-04-14 13:55:20 +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
Pau Pérez Fabregat
4ef5dfe430
Merge pull request #5199 from openfoodfoundation/dependabot/bundler/rubocop-rails-2.5.2
...
Bump rubocop-rails from 2.5.1 to 2.5.2
2020-04-14 10:17:59 +02:00
Pau Pérez Fabregat
e58a1d080f
Merge pull request #5205 from openfoodfoundation/dependabot/bundler/ddtrace-0.34.2
...
Bump ddtrace from 0.34.1 to 0.34.2
2020-04-14 10:17:06 +02:00
Luis Ramos
357a88fa22
Merge pull request #4786 from luisramos0/stripe_sca_extra_subs_fix
...
Make StripeSCA (with new authorize/purchase workflow) work with Subscriptions again
2020-04-13 17:21:53 +01:00
Rob H
f71045b3f2
Improve naming of variables in VariantOverridesIndexed for readability
2020-04-13 22:24:25 +10: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
Transifex-Openfoodnetwork
9fa892346e
Updating translations for config/locales/es_CR.yml
2020-04-13 10:30:00 +10:00
Transifex-Openfoodnetwork
7341912390
Updating translations for config/locales/pt_BR.yml
2020-04-12 07:14:21 +10:00
Transifex-Openfoodnetwork
d0c797b797
Updating translations for config/locales/es_CR.yml
2020-04-12 07:12:21 +10:00
Transifex-Openfoodnetwork
cb2e17d7dc
Updating translations for config/locales/es_CR.yml
2020-04-12 07:09:21 +10:00
Transifex-Openfoodnetwork
147654df41
Updating translations for config/locales/es_CR.yml
2020-04-12 07:05:59 +10:00
Rob H
14cf168e3b
Take sku overrides into account in customer totals report
2020-04-11 16:05:15 +10:00
dependabot-preview[bot]
c3ee7b7c64
Bump ddtrace from 0.34.1 to 0.34.2
...
Bumps [ddtrace](https://github.com/DataDog/dd-trace-rb ) from 0.34.1 to 0.34.2.
- [Release notes](https://github.com/DataDog/dd-trace-rb/releases )
- [Changelog](https://github.com/DataDog/dd-trace-rb/blob/master/CHANGELOG.md )
- [Commits](https://github.com/DataDog/dd-trace-rb/compare/v0.34.1...v0.34.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-04-10 19:19:13 +00:00
Matt-Yorkley
a6414b6dbe
Make sure taggable_type is 'Customer' when querying customer tags
2020-04-10 20:14:14 +02:00
Luis Ramos
eafffa2c23
Update all locales with the latest Transifex translations
2020-04-10 13:08:11 +01:00
Luis Ramos
82a4753eec
Merge pull request #5191 from openfoodfoundation/transifex
...
Transifex
2020-04-10 13:05:30 +01:00
Matt-Yorkley
b92e858448
Merge pull request #5197 from Matt-Yorkley/cart-populate-performance
...
Cart populate performance
2020-04-10 11:41:56 +02: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
Matt-Yorkley
e53f733966
Eager-load addresses in customer serializer
2020-04-10 08:20:15 +02:00
Matt-Yorkley
2a8809e6e8
Eager-load default card in customer serializer
2020-04-10 08:20:15 +02:00
Matt-Yorkley
31a54e49c5
Allow User#default_card to work with eager-loading
2020-04-10 08:20:13 +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
dependabot-preview[bot]
0fabde8849
Bump rubocop-rails from 2.5.1 to 2.5.2
...
Bumps [rubocop-rails](https://github.com/rubocop-hq/rubocop-rails ) from 2.5.1 to 2.5.2.
- [Release notes](https://github.com/rubocop-hq/rubocop-rails/releases )
- [Changelog](https://github.com/rubocop-hq/rubocop-rails/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop-rails/compare/v2.5.1...v2.5.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-04-09 19:21:30 +00:00
Transifex-Openfoodnetwork
e97a16cb40
Updating translations for config/locales/ca.yml
2020-04-10 04:14:21 +10:00
Matt-Yorkley
57d87a8042
Eager-load variant stock items
...
Avoids another N+1
2020-04-09 19:55:08 +02:00
Matt-Yorkley
0ca87580e8
Load variants in cart in one query
...
Avoids an N+1
2020-04-09 19:55:06 +02:00
Matt-Yorkley
cf712e9478
Select only enterprise id
2020-04-09 17:41:13 +02:00
Luis Ramos
59e0f3d9f4
Merge pull request #5175 from Matt-Yorkley/memoize-scoper
...
Memoize ScopeProductToHub in product list
2020-04-09 14:45:57 +01:00
Luis Ramos
fc5aff8c79
Merge pull request #5145 from luisramos0/inv_perf
...
Performance improvements to Inventory page
2020-04-09 13:56:33 +01:00
Luis Ramos
dd717fe8ac
Merge pull request #5184 from Matt-Yorkley/inventory-loading
...
Inventory loading
2020-04-09 13:26:12 +01:00
Luis Ramos
6341c5fd80
Merge pull request #4964 from luisramos0/po_fix
...
Fix proxy orders controller in rails 4 by removing the use of responders
2020-04-09 10:12:33 +01:00
Matt-Yorkley
47ac6c1491
Remove unused methods from ProductSimpleSerializer
2020-04-09 09:51:32 +02: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
5bb2614f9d
Refactor PagedFetcher so it makes one request at a time
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
b0a7497f2a
Remove another N+1 in product serialization
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
Matt-Yorkley
ececbce596
Only select id in producers query
2020-04-09 09:16:44 +02:00
Matt-Yorkley
1b7ac1a252
Don't re-use fat serializers when thin ones are needed.
...
This cuts the pageload and query count in half, again.
2020-04-09 09:10:41 +02:00
Transifex-Openfoodnetwork
d31b24786a
Updating translations for config/locales/en_NZ.yml
2020-04-09 16:16:24 +10:00
Matt-Yorkley
374bf04118
Merge pull request #5142 from Matt-Yorkley/shops-firefighting
...
Don't load distributed properties on inactive distributors
2020-04-08 20:45:01 +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
29bbf2fa74
Merge pull request #5088 from coopdevs/do-not-recreate-when-booting-docker
...
Do not reset the dev env when booting docker
2020-04-07 21:56:09 +01:00
Matt-Yorkley
64c66ddedc
Eager-load variant data for overridable products
...
Cuts query count and page load time in half for this endpoint.
2020-04-07 15:16:32 +02:00
Luis Ramos
e0e2c32d9f
Merge pull request #5177 from openfoodfoundation/dependabot/bundler/oj-3.10.6
...
Bump oj from 3.10.5 to 3.10.6
2020-04-07 11:44:09 +01:00
Matt-Yorkley
003341ef7a
Add loading indicator when showing closed shops
2020-04-07 10:40:49 +02:00
Matt-Yorkley
94f8ea2f93
Fix flicker effect showing 3 buttons when clicking "Show Closed Shops" button
2020-04-07 10:31:56 +02:00
Kristina Lim
e6cd33ee57
Increase max characters for locale in spree_users
...
There are many locales that have six (6) characters.
2020-04-07 15:08:49 +08:00
Maikel
eb64112b22
Merge pull request #5144 from openfoodfoundation/transifex
...
Transifex
2020-04-07 16:23:35 +10:00
Maikel
3e14b62b46
Merge pull request #5136 from openfoodfoundation/dependabot/bundler/ddtrace-0.34.1
...
Bump ddtrace from 0.34.0 to 0.34.1
2020-04-07 16:05:53 +10:00
Maikel
3244650932
Merge pull request #5135 from openfoodfoundation/dependabot/bundler/rubocop-rails-2.5.1
...
Bump rubocop-rails from 2.5.0 to 2.5.1
2020-04-07 16:05:18 +10:00
Transifex-Openfoodnetwork
b6753a2593
Updating translations for config/locales/fil_PH.yml
2020-04-07 16:03:57 +10:00
Transifex-Openfoodnetwork
1b119805b4
Updating translations for config/locales/fil_PH.yml
2020-04-07 15:15:12 +10:00
Transifex-Openfoodnetwork
edde7689a9
Updating translations for config/locales/de_DE.yml
2020-04-07 13:57:54 +10:00
Transifex-Openfoodnetwork
8060977786
Updating translations for config/locales/en_GB.yml
2020-04-07 13:54:53 +10:00
Transifex-Openfoodnetwork
837a345958
Updating translations for config/locales/en_FR.yml
2020-04-07 13:54:46 +10:00
dependabot-preview[bot]
7c5e511fde
Bump oj from 3.10.5 to 3.10.6
...
Bumps [oj](https://github.com/ohler55/oj ) from 3.10.5 to 3.10.6.
- [Release notes](https://github.com/ohler55/oj/releases )
- [Changelog](https://github.com/ohler55/oj/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/ohler55/oj/compare/v3.10.5...v3.10.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-04-06 19:24:48 +00: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
Luis Ramos
d23b4fd307
Merge pull request #5174 from coopdevs/change-pool-size
...
Allow changing the connection pool size
2020-04-06 19:29:09 +01:00
Matt-Yorkley
2cb4c6bec2
Memoize OpenFoodNetwork::ScopeProductToHub
...
This means we avoid fetching all of the hub's variants every time we scope a product. Applies to every product loaded when displaying a shops's product list.
2020-04-06 19:41:05 +02:00
Pau Pérez Fabregat
924e816a5b
Merge pull request #5151 from luisramos0/fix_order_perms
...
Fix Permissions::Order spec in rails 4
2020-04-06 18:07:39 +02:00
Pau Pérez Fabregat
109da43905
Merge pull request #2 from luisramos0/do-not-recreate-when-booting-docker
...
Re-add setup instructions removed from docker-compose into Dockerfile…
2020-04-06 16:55:59 +02:00
Pau Perez
33ca6a2096
Allow changing the connection pool size
...
This allows us to tune for UK. The hypothesis from @kristinalim is:
> From what I understand, it can result to Rails processes waiting for
each other to complete, while the DB server can take more simultaneous
connections.
2020-04-06 16:03:06 +02:00
Eduardo
e7b780f963
make shop name a link on /account
2020-04-06 08:34:24 -03:00
dependabot-preview[bot]
13cba3d244
Bump ddtrace from 0.34.0 to 0.34.1
...
Bumps [ddtrace](https://github.com/DataDog/dd-trace-rb ) from 0.34.0 to 0.34.1.
- [Release notes](https://github.com/DataDog/dd-trace-rb/releases )
- [Changelog](https://github.com/DataDog/dd-trace-rb/blob/master/CHANGELOG.md )
- [Commits](https://github.com/DataDog/dd-trace-rb/compare/v0.34.0...v0.34.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-04-06 11:27:10 +00:00
Matt-Yorkley
ce45e7cf71
Merge pull request #5162 from Matt-Yorkley/unicorn-worker-killer
...
Add optional unicorn-worker-killer configs
2020-04-06 13:25:22 +02:00
Matt-Yorkley
ba5a56db14
Make upper and lower bounds configurable
2020-04-06 10:39:51 +02:00
Matt-Yorkley
276dcf4a3b
Add optional unicorn-worker-killer configs
2020-04-06 10:39:50 +02:00
Transifex-Openfoodnetwork
dcfb1aec6d
Updating translations for config/locales/en_PH.yml
2020-04-06 18:11:07 +10:00
Pau Pérez Fabregat
fde2aac366
Merge pull request #5163 from coopdevs/collect-Ruby-GC
...
Enable Ruby Runtime Metrics in Datadog
2020-04-05 14:32:54 +02:00
Luis Ramos
63138aef30
Re-add setup instructions removed from docker-compose into Dockerfile and Docker.md
2020-04-05 00:06:31 +01:00
Pau Perez
7612415991
Enable Ruby Runtime Metrics in Datadog
...
This automatically collects a bunch of Ruby's GC-related metrics that
will come in handy while we tune the Unicorn workers. Some of theres
are:
* runtime.ruby.class_count
* runtime.ruby.gc.malloc_increase_bytes
* runtime.ruby.gc.total_allocated_objects
* runtime.ruby.gc.total_freed_objects
* runtime.ruby.gc.heap_marked_slots
* runtime.ruby.gc.heap_available_slots
* runtime.ruby.gc.heap_free_slots
* runtime.ruby.thread_count
Check https://docs.datadoghq.com/tracing/runtime_metrics/ruby/#data-collected for the complete list.
The cool thing is that
> Runtime metrics can be viewed in correlation with your Ruby services
2020-04-05 00:16:10 +02:00
Luis Ramos
53d901b41b
Merge pull request #5064 from luisramos0/fix_sample_data
...
Fix sample data and custom paper_trail config on order_cycles and schedules on rails 4
2020-04-04 18:29:26 +01:00
Matt-Yorkley
bc859cf9f7
Add api/shops_controller and refactor
2020-04-04 17:02:27 +02:00
Matt-Yorkley
af48cac140
Load closed shops in a separate request on /shops page
2020-04-04 14:06:10 +02:00
Luis Ramos
59bb956677
Merge pull request #5010 from Matt-Yorkley/remove_simple_form
...
Remove simple_form
2020-04-04 11:53:06 +01:00
Matt-Yorkley
8a544f3ab3
Add missing indexes to spree_orders and spree_products
2020-04-04 10:12:15 +02:00
Luis Ramos
55b3f4d54f
Move search params test case to a different context so that we dont have to set the producer of the products in the order
...
This is working in master by chance of the factories but breaks in rails 4 because the orders in this test dont have products supplied by the producer which is a necessary condition in the context where it was
2020-04-03 19:47:33 +01:00
Luis Ramos
452ab3a842
Add comment to better explain variant_override_set.collection_to_delete
2020-04-03 15:36:19 +01:00
Luis Ramos
a049e7a433
Add product to includes to avoid N+1 queries to fetch products when VO authorization is done right after this
2020-04-03 14:48:06 +01:00
Transifex-Openfoodnetwork
97063bf47e
Updating translations for config/locales/en_GB.yml
2020-04-03 23:24:25 +11:00
Luis Ramos
e64d573337
Revert accidental push of a byebug statement with the direct translations push to master 🙈
2020-04-03 12:06:39 +01:00
Luis Ramos
7858a26e5e
Update all locales with the latest Transifex translations
2020-04-03 12:03:40 +01:00
Luis Ramos
4922c05bcf
Merge pull request #5139 from openfoodfoundation/transifex
...
Transifex
2020-04-03 11:28:11 +01:00
Transifex-Openfoodnetwork
d06b7b8606
Updating translations for config/locales/de_DE.yml
2020-04-03 19:26:04 +11:00
Transifex-Openfoodnetwork
72b47fbceb
Updating translations for config/locales/de_DE.yml
2020-04-03 19:22:55 +11:00
Luis Ramos
da7b0966be
Merge pull request #5133 from Matt-Yorkley/cache-in-hand
...
Cache counts used in homepage for 24 hours
2020-04-03 08:34:58 +01:00
Luis Ramos
445eb9f287
Merge pull request #5121 from Matt-Yorkley/flaky-maps-js
...
Update vendor/assets/angular-google-maps.min.js
2020-04-02 22:13:51 +01:00
dependabot-preview[bot]
5b4dd57380
Bump rubocop-rails from 2.5.0 to 2.5.1
...
Bumps [rubocop-rails](https://github.com/rubocop-hq/rubocop-rails ) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/rubocop-hq/rubocop-rails/releases )
- [Changelog](https://github.com/rubocop-hq/rubocop-rails/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop-rails/compare/v2.5.0...v2.5.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-04-02 19:15:11 +00:00
Matt-Yorkley
adb61e48c5
Cache counts used in homepage for 24 hours
2020-04-02 19:09:03 +02:00
Matt-Yorkley
838ffdbf00
Add code comment for dependency
2020-04-02 17:33:10 +02:00
Pau Pérez Fabregat
fe8beb5448
Merge pull request #5099 from Matt-Yorkley/ticking-time-bom
...
Improve BOM
2020-04-02 16:01:48 +02:00
Matt-Yorkley
18ee5254f9
Make Geo service calls more resilient in /shops page
...
The Geo service is used heavily in the /shops page and especially in the search function. If the google maps js library has failed to load it was throwing a lot of fatal errors, so this change ensures the /shops page can at least: a) load, b) show some shops, and c) search for shops by name (but not location)
2020-04-02 13:56:25 +02:00
Matt-Yorkley
40f8cf660c
Update vendor/assets/angular-google-maps.min.js
...
Fixes an issue where if the js library from maps.googleapis.com failed to load in the <head>, all of our subsequent Angular would completely break.
See: https://github.com/angular-ui/angular-google-maps
Note: `bluebird.js` is a new dependency of `angular-google-maps.js`.
2020-04-02 13:32:55 +02:00
Matt-Yorkley
2c70db7952
Merge pull request #5070 from luisramos0/master_card
...
Translate credit card brand so that active merchand code handles the payment correctly
2020-04-02 12:18:00 +02:00
Pau Pérez Fabregat
1a38a4e1a7
Merge pull request #5091 from openfoodfoundation/transifex
...
Transifex
2020-04-02 11:56:29 +02:00
Pau Pérez Fabregat
15d106bb0a
Merge pull request #5116 from openfoodfoundation/dependabot/bundler/ddtrace-0.34.0
...
Bump ddtrace from 0.33.1 to 0.34.0
2020-04-02 11:55:53 +02:00
Pau Pérez Fabregat
c8be2fb89a
Merge pull request #5125 from openfoodfoundation/dependabot/bundler/rubocop-0.81.0
...
Bump rubocop from 0.80.1 to 0.81.0
2020-04-02 11:54:00 +02:00
Transifex-Openfoodnetwork
b1f8f91011
Updating translations for config/locales/fr.yml
2020-04-02 18:03:11 +11:00
Transifex-Openfoodnetwork
e08606a310
Updating translations for config/locales/en_FR.yml
2020-04-02 18:02:57 +11:00
Transifex-Openfoodnetwork
2230d83729
Updating translations for config/locales/pt_BR.yml
2020-04-02 08:41:25 +11:00
dependabot-preview[bot]
d38da02113
Bump rubocop from 0.80.1 to 0.81.0
...
Bumps [rubocop](https://github.com/rubocop-hq/rubocop ) from 0.80.1 to 0.81.0.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases )
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.80.1...v0.81.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-04-01 19:20:42 +00:00
Luis Ramos
0e268a171f
Switch to console.error so we get a bugsnag alert everytime a user has a problem with their card
...
Add paymentMethodsAPI specific mapping function, we had some errors in production with mastercards probably caused by ActiveMerchant not handling the card type correctly
2020-04-01 18:58:43 +01:00
Luis Ramos
73c4eedd06
Translate credit card brand so that active merchant code handles the payment correctly
...
Adds a simple console.log statement in case there is an error adding the
card
2020-04-01 18:58:10 +01:00
Luis Ramos
8a220742f5
Merge pull request #5103 from jeduardo824/bug/5092-remove-blue-setence-in-payment-method-setting
...
remove blue sentence in payment method setting
2020-04-01 18:56:09 +01:00
Luis Ramos
9fa604db0d
Merge pull request #5076 from luisramos0/rails_f_helper
...
Remove Rails Foundation Helper and improve error display and logging in checkout controller
2020-04-01 18:54:45 +01:00
Transifex-Openfoodnetwork
6083d91d3e
Updating translations for config/locales/ca.yml
2020-04-02 01:57:50 +11:00
Transifex-Openfoodnetwork
9bdb396b86
Updating translations for config/locales/ca.yml
2020-04-02 01:54:42 +11:00
Matt-Yorkley
ad42b1b485
Remove pagination limits in BOM
...
We can re-assess this later, but for now it looks like some of the BOM functionality won't work if results are returned across multiple pages.
2020-04-01 13:43:21 +02:00
Luis Ramos
78170bc709
Merge pull request #4807 from openfoodfoundation/dependabot/bundler/compass-rails-4.0.0
...
Bump compass-rails from 3.1.0 to 4.0.0
2020-04-01 12:42:42 +01:00
Luis Ramos
957b398a54
Add call to $evalAsync() after Loading and FlashLoader are updated so
...
that a angular digest is triggered
This is required so that Loading.clear triggers a refresh and makes its placeholder to be cleared
2020-04-01 12:08:55 +01:00
Luis Ramos
c3d25bf163
Make checkout controller send bugsnag alerts on every checkout problem
...
There are two new situations here: we will see order.errors after update_attributes fails but before order restart; and we will see how often the order is not complete when the workflow finishes (maybe none)
2020-04-01 12:03:39 +01:00
Luis Ramos
ce2a164c66
Stop using f_form_for
...
Add labels for some fields, this was done automatically by rails foundation helper
2020-04-01 12:03:39 +01:00
Luis Ramos
b898ce1ae1
Make checkout controller add flash error if order contains any type of error
...
Here we add translations for a particular case where the credit card expiry date is in the past
2020-04-01 12:03:39 +01:00
Luis Ramos
409681b7af
Merge pull request #5089 from Matt-Yorkley/checkout-scoping
...
Cart variant scoping
2020-04-01 11:49:23 +01:00
Luis Ramos
9317549103
Merge pull request #4813 from luisramos0/oc_selector
...
If there's only one OC available to the customer because there are tag rules hidding other OCs, select that OC by default
2020-04-01 10:44:58 +01:00
dependabot-preview[bot]
b22ad244f9
Bump ddtrace from 0.33.1 to 0.34.0
...
Bumps [ddtrace](https://github.com/DataDog/dd-trace-rb ) from 0.33.1 to 0.34.0.
- [Release notes](https://github.com/DataDog/dd-trace-rb/releases )
- [Changelog](https://github.com/DataDog/dd-trace-rb/blob/master/CHANGELOG.md )
- [Commits](https://github.com/DataDog/dd-trace-rb/compare/v0.33.1...v0.34.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-31 19:40:01 +00:00
Transifex-Openfoodnetwork
9c17a91215
Updating translations for config/locales/en_GB.yml
2020-04-01 05:07:08 +11:00
Luis Ramos
6a1c541479
Remove specific error color on checkout page so that the error message takes the default foundation error color which is white
2020-03-31 16:32:33 +01:00
Luis Ramos
6c64261868
Merge pull request #5113 from mkllnk/5110-bugsnag-js-logging
...
Add Bugsnag JS logging
2020-03-31 15:51:12 +01:00
Matt-Yorkley
f437d0f8a0
Report environment correctly in Bugsnag JS
2020-03-31 15:59:17 +02:00
Transifex-Openfoodnetwork
79d6d7cc9e
Updating translations for config/locales/de_DE.yml
2020-03-31 22:09:16 +11:00
Matt-Yorkley
e200ece280
Rename partial to bugsnag_js for clarity
2020-03-31 12:57:12 +02:00
Matt-Yorkley
30bf9257ab
Move conditional inside partial and use default key as fallback
2020-03-31 12:55:28 +02:00
Matt-Yorkley
03e229da08
Add bugsnag js script to admin layout above all.js
2020-03-31 12:25:42 +02:00
Maikel Linke
28473c9087
Add Bugsnag JS logging
2020-03-31 15:51:04 +11:00
Matt-Yorkley
09c8819e5a
Remove unnecessary Bugsnag calls
...
The Bugsnag notification was just here to see if this was dead code. It's not.
2020-03-30 20:36:45 +02:00
Matt-Yorkley
f7c047b798
Memoize ScopeVariantToHub to avoid fetching the hub's overrides each time
2020-03-30 20:33:27 +02:00
Eduardo
b6da0e2092
remove @payment_method explict variable from the view
2020-03-29 20:32:55 -03:00
Matt-Yorkley
95963c5732
Refactor Angular line_items_controller
2020-03-29 19:54:49 +02:00
Matt-Yorkley
aba1b5b67a
Add pagination specs and refactor
2020-03-29 19:54:49 +02:00
Matt-Yorkley
fe58121c7f
Fix clear filters button
2020-03-29 19:54:49 +02:00
Matt-Yorkley
5c4a2c2790
Update javascript specs
2020-03-29 19:54:49 +02:00
Matt-Yorkley
a07281910b
Fix dropdown placeholders
2020-03-29 19:54:49 +02:00
Matt-Yorkley
72f9da3ac4
Fix regex validation and HTML "type" settings not allowing decimals for final_weight_volume
...
`final_weight_volume` can be a decimal, and often *is* in production data. Not regarding them as valid was breaking the form submission in various cases
2020-03-29 19:54:49 +02:00
Matt-Yorkley
375b4648dc
Add pagination to Bulk Order Management
2020-03-29 19:54:47 +02:00
Transifex-Openfoodnetwork
9af0a39305
Updating translations for config/locales/en_FR.yml
2020-03-29 06:43:01 +11:00
Transifex-Openfoodnetwork
6817231f29
Updating translations for config/locales/fr.yml
2020-03-29 06:42:36 +11:00
Matt-Yorkley
7c7f9551d6
Fix bug in order cycle select dropdown
...
The date filters were being filled with the string: "Invalid date" because momentjs was not able to parse the input
2020-03-28 15:17:31 +01:00
Matt-Yorkley
d568b45d4a
Limit spamming the server with lots of requests
...
This uses "debounce" to add a little waiting time whilst the user is part-way through selecting dates (or manually typing in the date filter) so we don't make too many unnecessary requests.
2020-03-28 11:20:23 +01:00
Matt-Yorkley
b76a6d15a3
Improve date field query triggers
...
Don't submit the request if the user is part-way through typing something in the date field and the date is (currently) invalid; this results in the date ranges being broken and triggering a query for *all* results (with no date range).
2020-03-28 11:16:25 +01:00
Luis Ramos
940423acfc
Merge pull request #5067 from gao329700254/fix/fix_fr_translation_in_order_cycles_outgoing(4937)
...
Fix translation missing in order cycles outgoing page (closed #4937 )
2020-03-27 22:00:19 +00:00
Transifex-Openfoodnetwork
6a57aa3b29
Updating translations for config/locales/en_FR.yml
2020-03-28 04:08:31 +11:00
Transifex-Openfoodnetwork
ca78e9d0e2
Updating translations for config/locales/fr.yml
2020-03-28 04:08:17 +11:00
Luis Ramos
e705e88007
Merge pull request #5087 from luisramos0/custom_data
...
Fix bug in subscriptions logging by making versions.custom_data a longer field
2020-03-27 16:04:31 +00:00
Pau Pérez Fabregat
1fbb9fa3df
Merge pull request #5083 from openfoodfoundation/transifex
...
Transifex
2020-03-27 16:51:30 +01:00
Matt-Yorkley
71f00f9283
Remove comment warning about this issue
2020-03-27 14:23:48 +01:00
Matt-Yorkley
7d33a237d0
Add scoping to VariantsStockLevels when variant is not in the order
2020-03-27 14:15:15 +01:00
Matt-Yorkley
857cacb74b
Add test for additional case where variant is not in the order
2020-03-27 14:03:17 +01:00
Matt-Yorkley
fbfe663ebc
Add variant scoping to VariantStockLevels
2020-03-27 13:38:57 +01:00
Matt-Yorkley
83b90f3167
Add spec variant override test to VariantsStockLevels
2020-03-27 13:31:39 +01:00
Luis Ramos
14fd9a121e
Make versions.custom_data text so it can take longer lists
2020-03-27 11:34:01 +00:00
Pau Perez
904e89e325
Do not reset the dev env when booting docker
...
The current web container's command destroys anything you might have in
your local DB from a previous session, assuming you always want start
from a clean environment. This is hardly the case and makes
`docker-compose up` take quite long. What if you just stopped containers
temporally while developing?
This changes the approach to not assume anything. If you need to install
a new gem or reset your DB just run the commands you would without
docker. You can run anything you want with `docker-compose run web bundle exec
<rails/rake command>` anyway.
For someone setting things for the first time, the `Dockerfile` process
still installs all dependencies.
2020-03-27 12:17:09 +01:00
Maikel
d254df7ccc
Merge pull request #5073 from Matt-Yorkley/mobile-checkout
...
[Mobile UX] Order cycle section updates
2020-03-27 15:34:19 +11:00
Pau Pérez Fabregat
8caf10f634
Merge pull request #5079 from openfoodfoundation/dependabot/bundler/unicorn-5.5.4
...
Bump unicorn from 5.5.3 to 5.5.4
2020-03-26 17:32:17 +01:00
Transifex-Openfoodnetwork
2e98b0b5c1
Updating translations for config/locales/en_GB.yml
2020-03-27 01:40:20 +11:00
Matt-Yorkley
2966dd9536
Update all locales with the latest Transifex translations
2020-03-26 14:25:34 +01:00
Matt-Yorkley
21e1c0ed0b
Merge pull request #5025 from openfoodfoundation/transifex
...
Transifex
2020-03-26 14:22:38 +01:00
Matt-Yorkley
48b99d02b9
Merge pull request #5060 from Matt-Yorkley/weight-calculator
...
Fix weight calculator
2020-03-26 14:19:21 +01:00
Pau Pérez Fabregat
f17a2eeaea
Merge pull request #5062 from luisramos0/prop_bug
...
Fix broken new property button in properties page (regression from removing spree_backend)
2020-03-26 11:35:47 +01:00
Pau Pérez Fabregat
18419d0276
Merge pull request #5043 from luisramos0/fix_cookies
...
Fix cookies policy helper spec in rails 4
2020-03-26 11:23:49 +01:00
Pau Pérez Fabregat
bd19d8b0bd
Merge pull request #5042 from luisramos0/api_base
...
Make explicit the namespace of the BaseController for api controllers
2020-03-26 11:21:27 +01:00
Maikel Linke
4bcd665379
Handle all line items without unit_value in weight calculation
2020-03-26 17:13:29 +11:00
Matt-Yorkley
e63dbcfa89
Fix some SCSS linting warnings
2020-03-25 23:12:23 +01:00
Matt-Yorkley
c3283adcf5
Show full-width ordercycle subheader on tablet and below
2020-03-25 23:12:23 +01:00
Matt-Yorkley
b2ed69831b
Adjust style contexts
2020-03-25 23:12:23 +01:00
Matt-Yorkley
7daba62f43
Update colours for different order cycle sidebar cases
2020-03-25 23:12:23 +01:00
Matt-Yorkley
a08020490d
Define new colour and use variable where already in use
2020-03-25 23:12:23 +01:00
Matt-Yorkley
eb4d970bc7
Adjust positioning for order cycle sidebar
2020-03-25 23:12:23 +01:00
Matt-Yorkley
7a3549209f
Use 4 columns on checkout sidebar
2020-03-25 23:12:23 +01:00
Matt-Yorkley
52ebd1b402
Remove order cycle popovers; these styles are no longer used
2020-03-25 23:12:08 +01:00
Matt-Yorkley
a3a26f704f
Extract re-used box-shadow style
2020-03-25 23:07:39 +01:00
Matt-Yorkley
cff8f6dd96
Add box-shadow to distributor header for cart, checkout, and order confirmation pages
2020-03-25 23:07:39 +01:00
Matt-Yorkley
81537d92cf
Extract styles for distributor header
...
These styles are used in shop, cart, checkout, order confirmation. Not just shop.
2020-03-25 23:07:39 +01:00
Matt-Yorkley
91e88bd028
Allow conditional use of order cycle sidebar
...
We need to re-use the "shopping_shared/header" partial in multiple places, but we don't always want the (nested) order cycle sidebar inside it.
2020-03-25 23:07:39 +01:00
Matt-Yorkley
f5e254a105
Remove quick fix for hiding oc selector
2020-03-25 23:07:39 +01:00
Sigmund Petersen
b41b5d0395
Update Slack invitation link
2020-03-25 20:38:45 +01:00
dependabot-preview[bot]
296d2e5edb
Bump unicorn from 5.5.3 to 5.5.4
...
Bumps [unicorn](https://yhbt.net/unicorn/ ) from 5.5.3 to 5.5.4.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-25 19:17:31 +00:00
Luis Ramos
ac0a62e962
Merge pull request #5050 from Matt-Yorkley/bullet_tweaks
...
Performance tweaks 2
2020-03-25 18:32:49 +00:00
Luis Ramos
523faa670d
Remove FoundationRailsHelper, this is dead code now
2020-03-25 17:31:56 +00:00
Luis Ramos
2c5db8935b
Merge pull request #5022 from Matt-Yorkley/performance_tweaks
...
Performance tweaks
2020-03-25 15:42:07 +00:00
Luis Ramos
e5e9325499
Fix paper_trail custom_data for order_cycle, custom data must be a string, cant be an array
2020-03-25 15:35:51 +00:00
Luis Ramos
2e4f8003b6
Fix group factory in rails 4
...
params[:address] was breaking the creation of the EnterpriseGroup
2020-03-25 15:32:16 +00:00
Luis Ramos
24c8f38111
Restructure spec to avoid variable names with numbers
2020-03-25 15:48:57 +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
Yuhao Gao
60d9edb185
fix translation missing in order cycles outgoing page ( closed #4937 )
2020-03-25 21:51:13 +09:00
Luis Ramos
434b68b019
Merge pull request #5048 from Matt-Yorkley/3-0-user-spec
...
Ensure perform_deliveries is correctly set in user email spec
2020-03-25 11:52:43 +00:00
Luis Ramos
9af4bb9757
Use create instead of build so that we test with callbacks
2020-03-25 11:22:40 +00:00
Matt-Yorkley
d847560d7c
Fix rubocop issues
2020-03-25 10:15:03 +01:00
Pau Pérez Fabregat
87fae15434
Merge pull request #4909 from luisramos0/line_items_spec
...
Adapt line_items_spec to work in the rails 4 branch as well
2020-03-25 10:05:20 +01:00
Matt-Yorkley
e27f7a4301
Ensure perform_deliveries is correctly set when testing user confirmation emails
2020-03-25 08:42:21 +01:00
Luis Ramos
bddfa95eb5
Fix broken new property button in properties page
2020-03-24 21:50:49 +00:00
Matt-Yorkley
ef0fb18fda
Fix calculations for weight when variant.unit_value is zero
2020-03-24 22:05:55 +01:00
Matt-Yorkley
87ee4bbebc
Add spec for current problematic behaviour
2020-03-24 20:09:54 +01:00
Transifex-Openfoodnetwork
f5567e556b
Updating translations for config/locales/pt_BR.yml
2020-03-25 02:22:31 +11:00
Matt-Yorkley
54c3c73ed2
Fix duplicate key in hash
2020-03-24 12:46:21 +01:00
Luis Ramos
8dfdc9bc15
Merge pull request #5056 from openfoodfoundation/dependabot/bundler/rubocop-rails-2.5.0
...
Bump rubocop-rails from 2.4.2 to 2.5.0
2020-03-24 11:22:21 +00:00
Matt-Yorkley
36aa52736a
Refactor order filtering logic
2020-03-24 09:36:59 +01:00
Matt-Yorkley
ac38b2735c
Eager-load data in OrdersController
2020-03-23 22:38:57 +01:00
Matt-Yorkley
8b93c5ab56
Invert conditionals for better readability
2020-03-23 22:38:57 +01:00
Matt-Yorkley
434f98fb46
Fix insane N+1 in Package
...
The #ships_with? method was being called ~800 times when loading the admin order edit page (with Aus production data), and triggering a new query each time it was called.
2020-03-23 22:38:57 +01:00
Matt-Yorkley
c82c54873c
Pluck :id when querying active distributors for serializer data
2020-03-23 22:38:55 +01:00
dependabot-preview[bot]
de180d32bf
Bump rubocop-rails from 2.4.2 to 2.5.0
...
Bumps [rubocop-rails](https://github.com/rubocop-hq/rubocop-rails ) from 2.4.2 to 2.5.0.
- [Release notes](https://github.com/rubocop-hq/rubocop-rails/releases )
- [Changelog](https://github.com/rubocop-hq/rubocop-rails/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop-rails/compare/v2.4.2...v2.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-23 20:37:57 +00:00
Matt-Yorkley
5b481c19cc
Eager-load country in Producers controller
2020-03-23 19:33:15 +01:00
Matt-Yorkley
7110f9e6ee
Eager-load data used in EnterpriseGroupsController
...
Cuts page load time by ~75%
2020-03-23 19:33:13 +01:00
Transifex-Openfoodnetwork
63d748b2a4
Updating translations for config/locales/pt_BR.yml
2020-03-24 03:32:23 +11:00
Transifex-Openfoodnetwork
310906c7da
Updating translations for config/locales/en_NZ.yml
2020-03-23 15:49:19 +11:00
Transifex-Openfoodnetwork
b81843921b
Updating translations for config/locales/en_CA.yml
2020-03-23 08:57:54 +11:00
Matt-Yorkley
dd0e135a4d
Add test coverage for Permissions::Order with search_params
2020-03-22 11:45:40 +01:00
Luis Ramos
0f2c5d379a
Add test locales to I18n.available_locales before the test and reset them afterwards
2020-03-22 10:32:16 +00:00
Luis Ramos
a29f263041
Make explicit the namespace of the BaseController for api controllers
2020-03-22 09:55:07 +00:00
Luis Ramos
26cd0f4a9d
Merge pull request #5023 from mkllnk/5019-invoice-bill-address
...
Display shipping and billing address on invoices
2020-03-21 20:38:00 +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
Matt-Yorkley
45c204017f
Improve reports performance
...
Add the scoping from the search filters for reports into the logic of building sets like `editable_line_items` before combining them into the query to reduce the number of `line_item` ids in the IN clause.
2020-03-21 09:45:33 +01:00
Transifex-Openfoodnetwork
fa98a8ea17
Updating translations for config/locales/en_NZ.yml
2020-03-21 15:19:06 +11: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
Matt-Yorkley
70643a84b2
Update all locales with the latest Transifex translations
2020-03-20 18:44:23 +01:00
Matt-Yorkley
62a00b17a2
Merge pull request #5026 from Matt-Yorkley/checkout_display
...
Temporarily hide OC selector in checkout page
2020-03-20 18:33:47 +01:00
Pau Pérez Fabregat
c4f96a1dcf
Merge pull request #4972 from mkllnk/4810-tab-navigation
...
4810 Shop tab / page navigation with browser buttons
2020-03-20 15:24:50 +01:00
Pau Pérez Fabregat
6f4f3d42cc
Merge pull request #5012 from openfoodfoundation/dependabot/bundler/rack-mini-profiler-2.0.1
...
Bump rack-mini-profiler from 2.0.0 to 2.0.1
2020-03-20 15:22:43 +01:00
Transifex-Openfoodnetwork
7582df2771
Updating translations for config/locales/en_CA.yml
2020-03-21 00:37:37 +11:00
Matt-Yorkley
e8692fec4c
Temporarily hide OC selector in checkout page
2020-03-20 12:08:58 +01:00
Luis Ramos
3b2c10526d
Merge pull request #4838 from openfoodfoundation/dependabot/bundler/jquery-rails-3.1.5
...
[Security] Bump jquery-rails from 3.0.4 to 3.1.5
2020-03-20 09:49:22 +00:00
Luis Ramos
0e62dc04bd
Improve comments to explain glitch on set_order_cycle and OrderCyclesList
2020-03-20 09:47:59 +00:00
Luis Ramos
e2940eb9ff
Add namespace to OrderCyclesList
...
Shop will probably be the name of the future engine/domain for the shopfront pages
2020-03-20 09:47:59 +00:00
Luis Ramos
1c1f066884
Extract Shop::OrderCyclesList from base_controller
2020-03-20 09:47:59 +00:00
Luis Ramos
d5cf355a11
Call fetch_order_cycles from reset_order_cycles so we dont repeat the calculation
...
BaseController#set_order_cycle cant be used in reset_order_cycle because it will empty the order if the OC is not defined previously
2020-03-20 09:47:59 +00:00
Luis Ramos
d2eee1dafd
Extract and fix reset_order_cycle logic from set_order_cycles: ActiveRecord.count will reload the relation and ignore the changes done by the TagRuleApplicator
2020-03-20 09:46:05 +00:00
Luis Ramos
540b26105f
Delete dead code in oc helper
2020-03-20 09:46:05 +00:00
Transifex-Openfoodnetwork
c788f1ae57
Updating translations for config/locales/it.yml
2020-03-20 19:32:35 +11:00
Maikel Linke
b1a274ea27
Update translations
2020-03-20 16:20:21 +11:00
Maikel
00c7b9986b
Merge pull request #5020 from openfoodfoundation/transifex
...
Transifex
2020-03-20 16:15:54 +11:00
Maikel Linke
25b11f1f4b
Display delivery details in the header
2020-03-20 15:51:49 +11:00
Maikel Linke
22384cb4da
Display shipping and billing address on invoices
2020-03-20 15:14:24 +11:00
Transifex-Openfoodnetwork
9dc18afef0
Updating translations for config/locales/pt_BR.yml
2020-03-20 12:20:04 +11:00
Matt-Yorkley
7baa875a91
Fix big N+1 issues in enterprises#edit for superadmin
...
The page is usable now as superadmin. Roughly 10x faster...
2020-03-19 23:41:47 +01:00
Matt-Yorkley
3de887e1d8
Remove some N+1s relating to address (found with bullet gem)
2020-03-19 23:41:47 +01:00
Transifex-Openfoodnetwork
d2d3d767ac
Updating translations for config/locales/en_GB.yml
2020-03-19 23:53:09 +11:00
Transifex-Openfoodnetwork
a4ff74272b
Updating translations for config/locales/nb.yml
2020-03-19 22:47:36 +11:00
Transifex-Openfoodnetwork
1000dc52bf
Updating translations for config/locales/en_FR.yml
2020-03-19 19:37:32 +11:00
Transifex-Openfoodnetwork
54b8d22e0d
Updating translations for config/locales/fr.yml
2020-03-19 19:37:21 +11:00
Maikel Linke
7e00f78a77
Highlight menu item only when active or hovered
...
The `:focus` selector meant that every link that was clicked on was
still highlighted after going back or forward in the browser history. We
don't need that selector because tabs you click on are then active and
are highlighted anyway.
2020-03-19 15:49:29 +11:00
Maikel Linke
5a9b5660f1
Simplify logic in PageSelectionCtrl
2020-03-19 15:38:00 +11:00
Maikel Linke
1d42ce885b
Stay on shop page when opening login modal
...
The login modal changes the URL to `#/login` which interfers with our
shop pages. In order to show the right shop page, we need to know which
pages are valid and where we have been before we clicked on Login.
2020-03-19 15:38:00 +11:00
Maikel Linke
17751c448f
Rename PageSelectionCtrl for clarity
2020-03-19 15:37:13 +11:00
Maikel Linke
4b8d9d18d7
Simplify PagesetCtrl
2020-03-19 15:37:13 +11:00
Maikel Linke
a21ef19529
Render only shop tabs within shop
...
The include directive was listening to all $location paths including
`#login` which is unrelated to the shop tabs. Angular tried to load the
template `shop/login.html` which doesn't exist.
We now whitelist the templates that can be included by having an include
tag for each shop tab/page.
2020-03-19 15:37:13 +11:00
Maikel Linke
ea80ae3832
Enable page navigation via URL fragment
...
The broadcasting of notifications didn't update properly and I couldn't
find a way to listen to $location updates. I replaced the three
intertwined directives with one controller and a bit more HTML code. Now
we have only one scope that listens to $location and all browser actions
like the back button is reflected in the page.
As nice side-effect, the menu links have now the right destination so
that you can copy the link and paste it into another browser window.
40 lines less code.
2020-03-19 15:37:13 +11:00
Maikel Linke
bf26a26743
Reduce complexity by removing unused code branch
2020-03-19 15:36:24 +11:00
Maikel Linke
e3f840f48c
Remove dependency to Tabsets
2020-03-19 15:36:23 +11:00
Maikel Linke
42ca7888c0
Simplify by reducing unused options
2020-03-19 15:36:23 +11:00
Maikel Linke
8aa892136e
Duplicate shop tab code for rewrite
...
The old code is still used on the user page.
2020-03-19 15:36:23 +11:00
Maikel Linke
2d21341183
Update all locales with the latest Transifex translations
2020-03-19 14:06:04 +11:00
Maikel
5cabf59015
Merge pull request #5016 from openfoodfoundation/revert-4879-inner-join-visible-orders
...
Revert "Inner join visible orders"
2020-03-19 12:37:20 +11:00
Maikel
289dff5b91
Merge pull request #4988 from openfoodfoundation/transifex
...
Transifex
2020-03-19 12:06:37 +11:00
Maikel
c4e4beb912
Revert "Inner join visible orders"
2020-03-19 12:01:00 +11:00
Maikel
27d8951add
Merge pull request #5013 from openfoodfoundation/mobile-ux-3
...
Merge mobile-ux-3 branch into master
2020-03-19 11:51:41 +11:00
Transifex-Openfoodnetwork
f7720f1b1f
Updating translations for config/locales/en_FR.yml
2020-03-19 05:18:19 +11:00
Transifex-Openfoodnetwork
c46ae4354d
Updating translations for config/locales/en_FR.yml
2020-03-19 05:15:09 +11:00
Transifex-Openfoodnetwork
5f00323cbb
Updating translations for config/locales/fr.yml
2020-03-19 05:14:27 +11:00
Transifex-Openfoodnetwork
c52f29706b
Updating translations for config/locales/en_CA.yml
2020-03-19 03:47:42 +11:00
Luis Ramos
2590745b2e
Merge pull request #4954 from luisramos0/dead_temp
...
Delete templates that are not used
2020-03-18 13:52:15 +00:00
Matt-Yorkley
6db0421347
Merge pull request #4764 from Matt-Yorkley/mobile-tabs-styling
...
[mobile ux] Mobile tabs styling
2020-03-18 08:42:44 +01:00
Maikel
b63c47cca2
Merge pull request #4816 from mkllnk/1860-copy-paste
...
1860 Remove style from pasted text for shopfront messages
2020-03-18 16:23:50 +11:00
Maikel
2b9f57f4e0
Merge pull request #4998 from mkllnk/4277-signup-flow
...
Direct new enterprise users to their dashboard
2020-03-18 16:17:41 +11:00
Matt-Yorkley
8a1de72542
Center order cycle select elements in tablet view
2020-03-17 20:32:18 +01:00
Matt-Yorkley
2cb3a0cd99
Adjust padding, size, colour (transparency), caret size and position, border-radius, etc
2020-03-17 20:32:18 +01:00
Matt-Yorkley
b0637a24ff
Adjust padding, size, colour transparency, caret size
2020-03-17 20:32:18 +01:00
Matt-Yorkley
d969b68c8c
Add placeholder to order cycle selector
2020-03-17 20:32:18 +01:00
Matt-Yorkley
a89d4266d5
Update ordercycleselector to show message in red and remove powertip.
2020-03-17 20:32:18 +01:00
Matt-Yorkley
4b8ced5fc0
Add right-margin on bullet points in groups tab
2020-03-17 20:32:18 +01:00
Matt-Yorkley
2678342122
Reduce padding on ordercycle selector
2020-03-17 20:32:18 +01:00
Matt-Yorkley
b33c819863
Reduce rounding on ordercycle edges (box-radius)
2020-03-17 20:32:18 +01:00
Matt-Yorkley
97d7e27786
Update social icon colours
2020-03-17 20:32:18 +01:00
Matt-Yorkley
e73e43838c
Add 2px margin under Contact subheadings
2020-03-17 20:32:18 +01:00
Matt-Yorkley
cdc40fbc38
Update Contact tab subheading text colour
2020-03-17 20:32:18 +01:00
Matt-Yorkley
3430cc617a
Maximise space for tabs to fit on small screens
2020-03-17 20:32:18 +01:00
Matt-Yorkley
ed6f042446
Adjust tab widths/spacing on mobile and tablet
2020-03-17 20:32:18 +01:00
Matt-Yorkley
80a8c436d6
Update box-shadow underneath tab buttons
2020-03-17 20:32:18 +01:00
Matt-Yorkley
049a87e8a9
Remove defunct text-shadow from tab text
2020-03-17 20:32:18 +01:00
Matt-Yorkley
deb5b8e74c
Fix minor display issue where "Ready For" option with lots of characters is too big to fit on screen on mobile.
...
The layout was breaking in some specific cases where the content didn't fit on very small screens.
2020-03-17 20:32:18 +01:00
Matt-Yorkley
a5dd14d902
Adjust new colour variables to match Zeplin
2020-03-17 20:32:18 +01:00
Matt-Yorkley
9a6859edc0
Fix CodeClimate issue with SCSS variable naming
2020-03-17 20:32:18 +01:00
Matt-Yorkley
c0c53113d3
Change font on shop tab titles
2020-03-17 20:32:18 +01:00
Matt-Yorkley
26688409a1
Use alternate dots in <ul> display
2020-03-17 20:32:18 +01:00
Matt-Yorkley
0893d14025
Add new shop link colours
2020-03-17 20:32:18 +01:00
Matt-Yorkley
efd314e3b1
Restyle contact tab
2020-03-17 20:23:45 +01:00
Matt-Yorkley
bd7549c57f
Update layout for producers and groups tabs
2020-03-17 20:23:45 +01:00
Matt-Yorkley
45cf54408d
Readjust layout after rebase
2020-03-17 20:23:45 +01:00
Matt-Yorkley
15360740b1
Add ng-cloak to ordercycle box to improve appearance whilst page loads
2020-03-17 20:23:45 +01:00
Matt-Yorkley
5ce5072f26
Adjust position of OC popover tip to not cover up the "ready for" label
2020-03-17 20:23:45 +01:00
Matt-Yorkley
35133f7ee8
Adjust height of ordercycle selector on desktop
2020-03-17 20:23:45 +01:00
Matt-Yorkley
5becbc2a11
Move caret svg to /app/assets/images
2020-03-17 20:23:45 +01:00
Matt-Yorkley
390d80f0eb
Update order cycle selector positioning
2020-03-17 20:23:45 +01:00
Matt-Yorkley
6da43850d1
Restyle order cycle dropdown
2020-03-17 20:23:45 +01:00
Matt-Yorkley
a146bdacc8
Realign ordercycle text on tablet downwards
2020-03-17 20:23:45 +01:00
Matt-Yorkley
43cadb00c4
Recolour order cycle selector
2020-03-17 20:23:45 +01:00
Matt-Yorkley
2e616a9e31
Fix conditional display of order cycle selection element
2020-03-17 20:23:45 +01:00
Matt-Yorkley
1927e2883e
Move brackets inside conditionals for rendering last closed / next open message
2020-03-17 20:23:45 +01:00
Matt-Yorkley
a4b94cf39f
Add dividing line on tabs
...
Shows a thin grey line when the tab view content is white, but doesn't interfere when the content below is a full-width colour image.
2020-03-17 20:23:45 +01:00
Matt-Yorkley
a35f3c130e
Recolour shop tab buttons
2020-03-17 20:23:45 +01:00
Matt-Yorkley
a93243a8b7
Change vertical position of shop name in relation to logo
2020-03-17 20:23:45 +01:00
Matt-Yorkley
de4402457a
Improve layout and positioning on mobile and tablet
2020-03-17 20:23:45 +01:00
Matt-Yorkley
bf9f7309f7
Adapt style definitions to altered layout
2020-03-17 20:23:45 +01:00
Matt-Yorkley
4b0e1610ec
Update order cycle selection box
2020-03-17 20:23:45 +01:00
dependabot-preview[bot]
0c6fe20e82
Bump rack-mini-profiler from 2.0.0 to 2.0.1
...
Bumps [rack-mini-profiler](https://github.com/MiniProfiler/rack-mini-profiler ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/MiniProfiler/rack-mini-profiler/releases )
- [Changelog](https://github.com/MiniProfiler/rack-mini-profiler/blob/master/CHANGELOG.md )
- [Commits](https://github.com/MiniProfiler/rack-mini-profiler/compare/v2.0.0...v2.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-17 19:19:22 +00:00
Luis Ramos
0f2e23d225
Merge pull request #4968 from lin-d-hop/customer-balances
...
Revert changes that broke existing usage of this report
2020-03-17 18:06:35 +00:00
Matt-Yorkley
45b5e838b7
Remove simple_form
...
It looks like we don't use this at all. Discovered during the Spree 2.1 upgrade.
2020-03-17 17:03:48 +01:00
Pau Pérez Fabregat
129de8fd57
Merge pull request #5006 from Matt-Yorkley/loggageddon
...
Logageddon Hotfix
2020-03-17 14:48:12 +01:00
Matt-Yorkley
e24d858af9
Ensure log level is the default :info for staging and production
...
The default was being ignored in our new logging configuration, and the actual log output was way too high. This was causing serious disk space issues.
2020-03-17 12:25:25 +01:00
Matt-Yorkley
d2cacf5330
Add comments for unusable log_level setting
2020-03-17 12:22:58 +01:00
Transifex-Openfoodnetwork
af231d2ebe
Updating translations for config/locales/fr.yml
2020-03-17 20:32:15 +11:00
Pau Pérez Fabregat
711a3debe7
Merge pull request #4990 from openfoodfoundation/dependabot/bundler/webmock-3.8.3
...
Bump webmock from 3.8.2 to 3.8.3
2020-03-17 09:59:10 +01:00
Pau Pérez Fabregat
d09b0849e4
Merge pull request #4936 from luisramos0/fix_order_syncer
...
Fixes spec/services/order_syncer_spec in rails 4
2020-03-17 09:56:17 +01:00
Pau Pérez Fabregat
c639821dc3
Merge pull request #4931 from luisramos0/fix_ent_ser
...
Fix serializers/api/enterprise_shopfront_serializer_spec in rails 4
2020-03-17 09:53:31 +01:00
Maikel
d9b643d795
Merge pull request #4799 from mkllnk/4771-back-to-shop-button
...
4771 Back to shop button
2020-03-17 19:51:02 +11:00
Maikel Linke
6b8b3be524
Show "Back To Store" button when no shop has been selected yet
2020-03-17 10:28:03 +11:00
Maikel Linke
1db8283e98
Link "Back To Store" button to products page
2020-03-17 10:28:03 +11:00
Maikel Linke
5fce40ee71
Link "Continue shopping" to products tab
2020-03-17 10:28:03 +11:00
Maikel Linke
c64493ca77
Continue shopping with the products list
2020-03-17 10:28:03 +11:00
Maikel Linke
5b942e6933
Add spec for "continue shopping" from cart
...
https://github.com/openfoodfoundation/openfoodnetwork/issues/4771
2020-03-17 10:28:03 +11:00
Luis Ramos
26769b4150
Add StripeSCA payment authorize and use it both subs_confirm job as well as on teh checkout stripe redirect
2020-03-16 20:04:59 +00:00
Luis Ramos
84745e4ccb
Add stripe payment setup spec and make minor tweaks to the code itself.
...
Also, add a missing . to card_set? that eanbles it! If the card was
already set, it would anyway set the default card. Now it will use the
defined card if there is one already.
2020-03-16 20:03:12 +00:00
Luis Ramos
aac7a5e559
Adapt PaymentSetup spec to new version and remove some private method testing (payment) as well as some tests testing order.pending_payments logic
2020-03-16 20:03:12 +00:00
Luis Ramos
0a2941ed96
Extract StripePaymentSetup from PaymentSetup
2020-03-16 20:03:12 +00:00
Luis Ramos
ffbb5934d7
Merge pull request #4989 from luisramos0/specs_in_engines
...
Adapt task that runs engine specs
2020-03-16 19:17:04 +00:00
dependabot-preview[bot]
05ccd1ecbf
Bump compass-rails from 3.1.0 to 4.0.0
...
Bumps [compass-rails](https://github.com/Compass/compass-rails ) from 3.1.0 to 4.0.0.
- [Release notes](https://github.com/Compass/compass-rails/releases )
- [Changelog](https://github.com/Compass/compass-rails/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Compass/compass-rails/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-16 18:49:51 +00:00
Luis Ramos
bae9df8214
Merge pull request #4787 from luisramos0/catalog_domain
...
Add new domain/engine Catalog
2020-03-16 18:47:55 +00:00
Luis Ramos
f8a4f00d52
Fix rubocop issues in subs specs
2020-03-16 17:20:01 +00:00
Luis Ramos
29377bbff9
Move 5 subscriptions services from app/services to the engines/order_management/app/services
2020-03-16 17:20:01 +00:00
Luis Ramos
f68d0c2a0f
Remove Subscription from the name of the subscription summarizer and summary because it is already in the namespace
2020-03-16 17:20:01 +00:00
Luis Ramos
3901c49af9
Fix rubocop issues
2020-03-16 17:20:01 +00:00
Luis Ramos
ae0ceb61a1
Move ProxyOrderSyncer to OrderManagement engine
2020-03-16 17:20:01 +00:00
Luis Ramos
fb1c825fbc
Move both subscription summarizer and subscription summary to order management engine
2020-03-16 17:20:01 +00:00
Luis Ramos
e36b0249b9
Use nested module names to fix rubocpo issue
2020-03-16 17:20:01 +00:00
Luis Ramos
34fa2d7ad6
Move Subscriptions::PaymentSetup to OrderManagement engine where all subscription code will be at some point in the future
2020-03-16 17:19:04 +00:00
Luis Ramos
3aefea9f04
Prepare SubsConfirmJob to receive a bit more payment logic
2020-03-16 17:19:04 +00:00
Luis Ramos
15231a9128
Make SubsConfirmJob more readable
2020-03-16 17:19:04 +00:00
Luis Ramos
25e3f72934
Fix rubocop issues in subs payment_setup
2020-03-16 17:19:04 +00:00
Luis Ramos
523d819575
Move and rename SubscriptionPaymentUpdater to Subscriptios::PaymentSetup to move to services/subscriptions and call it Setup instead to make explicit this is executed before the payment is processed
2020-03-16 17:16:31 +00:00
Luis Ramos
5da47b3f19
Merge pull request #4757 from luisramos0/stripe_sca_extra
...
StripeSCA - Handle further SCA auth request when checking out
2020-03-16 16:45:28 +00:00
Luis Ramos
b14e4237cc
Make the task that runs engines specs run from the main app, not inside the engine
...
Right now and for some time the engines are not independent of the main_app. We should aim for that but it will naturally take a while to disentangle the code
2020-03-16 16:20:36 +00:00
Pau Pérez Fabregat
3e7685193f
Merge pull request #4996 from luisramos0/fix_build
...
Fix broken master build
2020-03-16 16:37:09 +01:00
Luis Ramos
8558000c22
Merge pull request #5 from coopdevs/fix-suppliers-report-test-case
...
Fix suppliers report test case
2020-03-16 13:47:03 +00:00
Pau Perez
6486e5f908
Provide a non-zero amount for ship/pay calculator
...
This way the adjustment's total_amount is not 0 and thus, not filtered
out but the report service.
2020-03-16 13:56:52 +01:00
Maikel Linke
9244a95472
Direct new enterprise users to their dashboard
...
People were directed to the home page and had to do several more clicks
to continue with their enterprise setup.
2020-03-16 11:18:32 +11:00
Transifex-Openfoodnetwork
bd237ef257
Updating translations for config/locales/fr_CA.yml
2020-03-15 07:22:12 +11:00
Transifex-Openfoodnetwork
bc06e10146
Updating translations for config/locales/en_CA.yml
2020-03-15 07:21:33 +11:00
Pau Perez
05eadac935
Fix some filtering test cases for fee report
...
The calculators of the adjustments related to the enterprise fees
created in the test setup have a preferred_amount of 0. So, when
computed, the adjustments' amounts end up being `0 = 0 * 1 line_item`.
Then, the ReportService filters these out in
`#exclude_groups_with_zero_total` from the result set. This is why the
assertions can't find them in `totals`.
2020-03-14 11:19:35 +01:00
Pau Perez
5a83b12c66
Make EnterpriseFee report SQL readable
2020-03-14 11:04:49 +01:00
Pau Perez
71576fd7db
Refactor PerItem calculator to ease readability
2020-03-14 11:04:16 +01:00
Luis Ramos
63a1d4145a
Adapt order factories to work with enterprise fees summaries report specs
2020-03-13 12:36:01 +00:00
Luis Ramos
1049525e50
Merge pull request #4963 from luisramos0/variants_fix
...
Fix 2 broken buttons in the product variants list page
2020-03-12 23:48:50 +00:00
Luis Ramos
bd32510837
Merge pull request #4860 from mkllnk/3395-remove-unused-assets
...
3395 remove unused assets
2020-03-12 22:44:41 +00:00
dependabot-preview[bot]
f0b40eea1e
Bump webmock from 3.8.2 to 3.8.3
...
Bumps [webmock](https://github.com/bblimke/webmock ) from 3.8.2 to 3.8.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.8.2...v3.8.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-12 19:20:17 +00:00
Transifex-Openfoodnetwork
ed790ab65d
Updating translations for config/locales/en_GB.yml
2020-03-13 05:26:37 +11:00
Luis Ramos
46e23b28fd
Merge pull request #4975 from openfoodfoundation/dependabot/bundler/rspec-rails-3.9.1
...
Bump rspec-rails from 3.9.0 to 3.9.1
2020-03-12 16:47:14 +00:00
Luis Ramos
bc904a7afa
Merge pull request #4976 from openfoodfoundation/dependabot/bundler/rack-mini-profiler-2.0.0
...
Bump rack-mini-profiler from 1.1.6 to 2.0.0
2020-03-12 16:46:43 +00:00
Pau Perez
8ccc8dfaf6
Update all locales with the latest Transifex translations
2020-03-12 13:33:42 +01:00
Luis Ramos
55b32c828c
Merge pull request #4978 from Matt-Yorkley/dev-env-reload
...
Fix reloading issue in dev environment
2020-03-12 12:22:00 +00:00
Pau Pérez Fabregat
25dfd8ad40
Merge pull request #4939 from openfoodfoundation/transifex
...
Transifex
2020-03-12 13:19:59 +01:00
Pau Pérez Fabregat
2a5311493f
Merge pull request #4969 from luisramos0/oc_apli
...
Fix spec in rails 4 branch by making code in OrderCycleFormApplicator a bit more resilient
2020-03-12 12:51:23 +01:00
Pau Pérez Fabregat
57ac28cfbd
Merge pull request #4970 from openfoodfoundation/dependabot/bundler/ddtrace-0.33.1
...
Bump ddtrace from 0.33.0 to 0.33.1
2020-03-12 12:50:01 +01:00
Pau Pérez Fabregat
fb02043e6e
Merge pull request #4926 from luisramos0/prod_api
...
Fix products api spec in rails 4
2020-03-12 12:46:45 +01:00
Transifex-Openfoodnetwork
30d7cc89fa
Updating translations for config/locales/pt_BR.yml
2020-03-12 09:25:51 +11:00
Transifex-Openfoodnetwork
d14b5eb46b
Updating translations for config/locales/pt_BR.yml
2020-03-12 09:22:44 +11:00
dependabot-preview[bot]
8eb60388fd
Bump rack-mini-profiler from 1.1.6 to 2.0.0
...
Bumps [rack-mini-profiler](https://github.com/MiniProfiler/rack-mini-profiler ) from 1.1.6 to 2.0.0.
- [Release notes](https://github.com/MiniProfiler/rack-mini-profiler/releases )
- [Changelog](https://github.com/MiniProfiler/rack-mini-profiler/blob/master/CHANGELOG.md )
- [Commits](https://github.com/MiniProfiler/rack-mini-profiler/compare/v1.1.6...v2.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-11 19:19:24 +00:00
dependabot-preview[bot]
633f1bd7cf
Bump rspec-rails from 3.9.0 to 3.9.1
...
Bumps [rspec-rails](https://github.com/rspec/rspec-rails ) from 3.9.0 to 3.9.1.
- [Release notes](https://github.com/rspec/rspec-rails/releases )
- [Changelog](https://github.com/rspec/rspec-rails/blob/master/Changelog.md )
- [Commits](https://github.com/rspec/rspec-rails/compare/v3.9.0...v3.9.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-11 19:15:51 +00:00
Matt-Yorkley
933b5f1606
Fix reloading issue in dev environment
...
I constantly get `NameError: uninitialized constant Spree::AuthenticationHelpers` when touching local files and then reloading a page, and have to restart my rails server every time (in development). I read the other day that this is the best way to fix the issue, and it seems to work...
2020-03-11 15:31:25 +01:00
Transifex-Openfoodnetwork
4c7b8209b9
Updating translations for config/locales/nb.yml
2020-03-11 19:49:14 +11:00
Pau Pérez Fabregat
802ac647e3
Merge pull request #4879 from coopdevs/inner-join-visible-orders
...
Inner join visible orders
2020-03-10 22:54:03 +01:00
dependabot-preview[bot]
c83bded763
Bump ddtrace from 0.33.0 to 0.33.1
...
Bumps [ddtrace](https://github.com/DataDog/dd-trace-rb ) from 0.33.0 to 0.33.1.
- [Release notes](https://github.com/DataDog/dd-trace-rb/releases )
- [Changelog](https://github.com/DataDog/dd-trace-rb/blob/master/CHANGELOG.md )
- [Commits](https://github.com/DataDog/dd-trace-rb/compare/v0.33.0...v0.33.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-10 19:19:31 +00:00
Luis Ramos
03246d425d
Make this method handle the case where the variants hash passed is nil
...
This fixes a spec in the rails 4 branch
2020-03-10 18:41:26 +00:00
Luis Ramos
7585e3d1d6
The variants_to_a method was dead but actually we can use it to make the code simpler
2020-03-10 18:40:46 +00:00
Luis Ramos
bc0a1d9bae
Remove one more responder and fix rubocop issues
2020-03-10 15:56:08 +00:00
Luis Ramos
a53dc3a8c1
Remove usage of the responder as this is a json only controller
2020-03-10 14:46:16 +00:00
Luis Ramos
bc1430c984
Make new_variant button work again by making a normal call to the server, isntead of an ajax call that was no longer working
2020-03-10 14:21:26 +00:00
Luis Ramos
676d949972
Make variants collection show deleted again by bypassing the default scope that removed deleted variants
2020-03-10 14:21:20 +00:00
lin-d-hop
e4bd7c4e30
Revert changes that broke existing usage of this report
2020-03-10 10:59:18 +00:00
Pau Pérez Fabregat
50cdda7c63
Merge pull request #4802 from luisramos0/too_many
...
Last batch to fix error "subquery with too many columns" in rails 4 branch
2020-03-10 09:20:44 +01:00
Pau Pérez Fabregat
d0af046e59
Merge pull request #4908 from luisramos0/package_spec
...
Make package spec work in rails 4
2020-03-10 09:17:53 +01:00
Pau Pérez Fabregat
5811f3ead1
Merge pull request #4905 from luisramos0/untouch
...
Remove some live but elderly debug code
2020-03-10 09:17:13 +01:00
Pau Pérez Fabregat
d7d3c9ea53
Merge pull request #4938 from openfoodfoundation/dependabot/bundler/ddtrace-0.33.0
...
Bump ddtrace from 0.32.0 to 0.33.0
2020-03-10 08:48:31 +01:00
Pau Pérez Fabregat
a02cc1de34
Merge pull request #4857 from luisramos0/schedules_ctrl
...
Remove dead spec in SchedulesController
2020-03-10 08:38:46 +01:00
Luis Ramos
94783f44f9
Delete templates that are not used
2020-03-09 15:30:37 +00:00
Luis Ramos
2184c7c06b
Merge pull request #4856 from Matt-Yorkley/dead-code
...
Delete some dead code in Product Import (fixes 1 broken spec)
2020-03-07 15:26:39 +00:00
Transifex-Openfoodnetwork
928bf0d9c7
Updating translations for config/locales/fr.yml
2020-03-08 01:24:08 +11:00
Transifex-Openfoodnetwork
0d02b2afcf
Updating translations for config/locales/en_FR.yml
2020-03-08 01:21:12 +11:00
Transifex-Openfoodnetwork
1e76f3f744
Updating translations for config/locales/fr.yml
2020-03-08 01:20:57 +11:00
dependabot-preview[bot]
7c3a0a292f
Bump ddtrace from 0.32.0 to 0.33.0
...
Bumps [ddtrace](https://github.com/DataDog/dd-trace-rb ) from 0.32.0 to 0.33.0.
- [Release notes](https://github.com/DataDog/dd-trace-rb/releases )
- [Changelog](https://github.com/DataDog/dd-trace-rb/blob/master/CHANGELOG.md )
- [Commits](https://github.com/DataDog/dd-trace-rb/compare/v0.32.0...v0.33.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-06 19:31:47 +00:00
Luis Ramos
c5ca0976a5
Merge pull request #4873 from jeduardo824/ampersand-not-showing-correctly
...
fix ampersand problem using ng-bind-html
2020-03-06 17:40:54 +00:00
Pau Pérez Fabregat
be7b3d5a12
Merge pull request #4809 from jeduardo824/redirect-to-shops-when-shop-does-not-exist
...
redirect to shops list when an enterprise is not found
2020-03-06 18:39:00 +01:00
Luis Ramos
d3f498f5b1
The shipping rates refresh process changed a little in spree 2.1 and the selection is and was random, it picks the first acceptable
...
In this case we need to specifically select one shipping method so that the test is valid
2020-03-06 16:39:20 +00:00
Luis Ramos
55941a1206
Round time values to make spec green as in rails 4, for unknown reason, the timestamps are differing in some miliseconds
2020-03-06 10:16:58 +00:00
Luis Ramos
6304a085c0
Update all locales with the latest Transifex translations
2020-03-06 08:30:04 +00:00
Luis Ramos
7c708de937
Merge pull request #4928 from openfoodfoundation/transifex
...
Transifex
2020-03-06 08:28:09 +00:00
Transifex-Openfoodnetwork
5d51e5d393
Updating translations for config/locales/pt_BR.yml
2020-03-06 07:41:46 +11:00
Transifex-Openfoodnetwork
464717dec5
Updating translations for config/locales/pt_BR.yml
2020-03-06 07:38:36 +11:00
Pau Pérez Fabregat
7a06018c3e
Merge pull request #4874 from openfoodfoundation/transifex
...
Transifex
2020-03-05 19:29:21 +01:00
Pau Pérez Fabregat
b8c76ff633
Merge pull request #4906 from luisramos0/ent_caching
...
Fix enterprise_caching_spec in rails 4
2020-03-05 19:28:54 +01:00
Pau Pérez Fabregat
1ecc0bfe07
Merge pull request #4927 from luisramos0/variants_delete
...
Fix spree/admin/variants_controller_spec.rb in rails 4
2020-03-05 19:24:35 +01:00
Pau Pérez Fabregat
600d2d23c8
Merge pull request #4912 from luisramos0/cart_serv_fix
...
Make cart_service spec green in rails 4 branch
2020-03-05 19:11:58 +01:00
Pau Pérez Fabregat
bf3211fd01
Merge pull request #4918 from luisramos0/bulk_lis
...
Fix spec/controllers/admin/bulk_line_items_controller_spec in rails 4
2020-03-05 19:07:37 +01:00
Pau Pérez Fabregat
5fd0d9406d
Merge pull request #4923 from openfoodfoundation/dependabot/bundler/oj-3.10.5
...
Bump oj from 3.10.3 to 3.10.5
2020-03-05 19:06:20 +01:00
Pau Pérez Fabregat
c78a6bea91
Merge pull request #4921 from luisramos0/li_ctrl
...
Fix line_items_controller_spec in the rails 4 branch
2020-03-05 19:05:46 +01:00
Pau Pérez Fabregat
be9f33312b
Merge pull request #4904 from luisramos0/tax_rates_match
...
Move TaxRate#match to OFN to avoid having to adapt to the spree 2.1 version
2020-03-05 18:55:55 +01:00
Luis Ramos
f23575302b
In rails 4 variant.destroy is removing the variants from the exchanges as needed and variant.exchange_variants becomes immediatly empty but variant.exchanges is not automatically updated anymore and needs a refresh to become empty
2020-03-05 17:07:08 +00:00
Pau Perez
0042ab2f28
Rewrite INNER JOIN in ActiveRecord's DSL
2020-03-05 17:45:06 +01:00
Pau Perez
53a63775fe
Replace LEFT JOIN with INNER JOIN
...
I see no reason why a LEFT might be needed and its the root cause of the
awful performance.
2020-03-05 17:45:06 +01:00
Pau Perez
461b1b26f3
Add controller tests to cover totals by supplier
2020-03-05 17:45:06 +01:00
Luis Ramos
f13d7d6845
Fix products api spec in rails 4
2020-03-05 15:20:45 +00:00
dependabot-preview[bot]
e4d09b5404
Bump oj from 3.10.3 to 3.10.5
...
Bumps [oj](https://github.com/ohler55/oj ) from 3.10.3 to 3.10.5.
- [Release notes](https://github.com/ohler55/oj/releases )
- [Changelog](https://github.com/ohler55/oj/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/ohler55/oj/compare/v3.10.3...v3.10.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-04 19:16:40 +00:00
Luis Ramos
415415273c
In rails 4 we need to update the stub after we update the order.user otherwise the stub will return the previous value
2020-03-04 15:50:52 +00:00
Luis Ramos
d969190ca5
Bypass problem with quick_login_as_admin in rails 4 and just user simple factory
2020-03-04 14:29:11 +00:00
Luis Ramos
a180576c0a
Make cart_service spec green in rails 4 branch
2020-03-03 17:29:38 +00:00
Luis Ramos
1382bb3c6b
For some reason in rails 4/spree 2.1 setting the line item as adjustable on the adjustment is not enough to populate line_item.adjustments. Here we make this assignment explicit fixing the spec in rails 4
2020-03-03 15:04:51 +00:00
Luis Ramos
7fdaa0f0c7
Make package spec work in rails 4 by persisting the test enterprises so that the copnnection between shipping methods and enterprises works
2020-03-03 14:46:12 +00:00
Luis Ramos
ba750547a2
The touch process in 'belongs_to :supplier, class_name: 'Enterprise', touch: true' must have changed in rails 4 and now we need to reload the enterprise to get the new updated_at value
2020-03-03 12:26:18 +00:00
Luis Ramos
af8369ae1b
Remove 5 years old debug code
...
This reverts ab9bc7b1dc , it can be added if the issue happens again
2020-03-03 10:56:57 +00:00
Luis Ramos
829a73c58d
Merge pull request #4886 from openfoodfoundation/dependabot/bundler/oj-3.10.3
...
Bump oj from 3.10.2 to 3.10.3
2020-03-03 09:57:46 +00:00
Luis Ramos
a2691df64e
Merge pull request #4887 from openfoodfoundation/dependabot/bundler/rubocop-0.80.1
...
Bump rubocop from 0.80.0 to 0.80.1
2020-03-03 09:56:37 +00:00
Luis Ramos
6c8b175344
Merge match and its alias method
2020-03-03 09:29:02 +00:00
Pau Pérez Fabregat
ad10053271
Merge pull request #4903 from luisramos0/address_finder
...
[Spree 2.1] Adapt address finder spec to work with spree 2.1 code
2020-03-03 10:27:13 +01:00
Luis Ramos
a508c55700
Bring TaxRate.match to OFN
...
The version of this method in spree 2.1 will break our build
This way we simply bypass this fix in spree: https://github.com/spree/spree/pull/3669
We can get back to this in the future if we ever experience the mentioned bug
2020-03-03 09:27:04 +00:00
Transifex-Openfoodnetwork
2712be3fa4
Updating translations for config/locales/fr.yml
2020-03-03 14:14:38 +11:00
Transifex-Openfoodnetwork
484326561f
Updating translations for config/locales/en_GB.yml
2020-03-03 14:11:28 +11:00
Transifex-Openfoodnetwork
7ea96f88e8
Updating translations for config/locales/en_CA.yml
2020-03-03 14:08:26 +11:00
Transifex-Openfoodnetwork
de752b05a7
Updating translations for config/locales/fr_CA.yml
2020-03-03 14:08:17 +11:00
Maikel
0b18344572
Merge pull request #4790 from mkllnk/4779-payment-method-display
...
4779 payment method display
2020-03-03 10:10:51 +11:00
Luis Ramos
690474c01a
Adapt address finder spec to work with spree 2.1 code
...
Order ship address is required to get have an order with shipping rates
2020-03-02 21:55:21 +00:00
Luis Ramos
777754f8a9
Remove dead code that creates products in product_set
2020-03-02 19:41:51 +00:00
dependabot-preview[bot]
e4c5893c1e
Bump rubocop from 0.80.0 to 0.80.1
...
Bumps [rubocop](https://github.com/rubocop-hq/rubocop ) from 0.80.0 to 0.80.1.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases )
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.80.0...v0.80.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-02 19:36:43 +00:00
dependabot-preview[bot]
67aeae4a6d
Bump oj from 3.10.2 to 3.10.3
...
Bumps [oj](https://github.com/ohler55/oj ) from 3.10.2 to 3.10.3.
- [Release notes](https://github.com/ohler55/oj/releases )
- [Changelog](https://github.com/ohler55/oj/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/ohler55/oj/compare/v3.10.2...v3.10.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-02 19:34:09 +00:00
Luis Ramos
02008769e9
Make spree_payment.cvv_response_message without size limit so that long stripe redirect URLs can be stored there
2020-03-02 17:31:01 +00:00
Luis Ramos
65dd9f51cf
Add spec to cover update request where a stripe redirect must happen
2020-03-02 17:30:12 +00:00
Luis Ramos
a224c53200
Add spec to test receiving a redirect from stripe with a valid payment intent id
2020-03-02 17:30:12 +00:00
Luis Ramos
66f07c0d1c
Make checkout controller spec test both extracted payment redirects
2020-03-02 17:30:12 +00:00
Luis Ramos
d5287026f8
Add spec for Checkout::PostCheckoutActions
2020-03-02 17:30:12 +00:00
Luis Ramos
6b80eb2c16
Add spec for AuthorizeResponsePatcher
2020-03-02 17:30:12 +00:00
Luis Ramos
b54b981740
Improve readability of PaymentIntentValidator and cover with specs
2020-03-02 17:30:12 +00:00
Luis Ramos
895032fe6a
Move stubbed requests to the top as they are the same for every test
2020-03-02 17:30:12 +00:00
Luis Ramos
531c385aae
Adapt stripe sca spec to new double step auth+capture payment process
2020-03-02 17:30:12 +00:00
Luis Ramos
d0a3ab68f3
Make processing payments also pending payments
2020-03-02 17:30:12 +00:00
luisramos0
b5038c5745
Adapt subscriptionPaymentUpdater to include pending payments as pending payments! Pending payments of credit cards are payments already authorized, ready to be captured
...
This is problably what will happen with subscriptions credit cards where payments will be authorized by the customer and the confirmation process on process_payments! will just capture the payment
2020-03-02 17:30:12 +00:00
luisramos0
6877485c90
Extract AuthorizeResponsePatcher from stripeSCA gateway
2020-03-02 17:30:12 +00:00
luisramos0
95c1b7f7a6
Extract PaymentIntentValidator from StripeSCA gateway
2020-03-02 17:30:12 +00:00
luisramos0
3fcf286516
Extract PostCheckoutActions from checkout controller
2020-03-02 17:30:12 +00:00
luisramos0
e2cdb01a28
Improve readability of stripe sca gateway code
2020-03-02 17:30:12 +00:00
luisramos0
08e729673f
Move stripe sca gateway error messages to translatable keys
2020-03-02 17:30:12 +00:00
luisramos0
c0bf09131f
Make order.pending_payments include payments in pending state so that these payments (pending is the state after authorization for credit cards) are also processed as part of the normal order workflow
2020-03-02 17:30:12 +00:00
luisramos0
19042e0d37
Make checkout controller able to receive a redirect from stripe with a payment_intent as parameter
2020-03-02 17:30:12 +00:00
luisramos0
4b3b4e00ff
Add authorize action to the stripe_sca gateway and make it fetch the redirect url if provided
...
Change the purchase action to only capture the alrteady authorized payment intent
2020-03-02 17:30:12 +00:00
luisramos0
e3ffe8fe6b
Add Checkout Stripe redirect logic to get users redirected to stripe authentication pages provided by the stripe API
2020-03-02 17:30:12 +00:00
luisramos0
d91578ab80
Rename checkout payment redirect to checkout paypal redirect
2020-03-02 17:30:12 +00:00
luisramos0
873dcc373f
Small refactoring to make next commit easier
2020-03-02 17:30:12 +00:00
luisramos0
1289c3f1a2
Fix rubocop issues in credit_cards_controller
2020-03-02 17:29:30 +00:00
Luis Ramos
c37218fdc5
Merge pull request #4719 from luisramos0/stripe_card_to_pm
...
Make StripeSCA payment method work with existing credit cards (the ones saved through the Stripe Charges API)
2020-03-02 17:22:07 +00:00
Luis Ramos
dad21a52b2
Merge pull request #4672 from luisramos0/stripe_sca_method
...
Add new Stripe payment method compatible with the new Stripe Payment Intents API
2020-03-02 17:19:05 +00:00
Pau Pérez Fabregat
97a65d760f
Merge pull request #4527 from luisramos0/subs_logs
...
Improve Subscriptions logging
2020-03-02 15:48:45 +01:00
Transifex-Openfoodnetwork
63e92197f5
Updating translations for config/locales/pt_BR.yml
2020-03-02 09:40:20 +11:00
Transifex-Openfoodnetwork
fd534bf629
Updating translations for config/locales/pt_BR.yml
2020-03-02 09:37:10 +11:00
Eduardo
64d83bfc4d
fix ampersand problem using ng-bind-html
2020-03-01 17:54:36 -03:00
Pau Pérez Fabregat
83065a798e
Merge pull request #4814 from luisramos0/rubop_rules
...
Add new cops (disabled) to rubocop config
2020-02-28 11:15:34 +01:00
Matt-Yorkley
b661b3ee40
Merge pull request #4823 from luisramos0/require_specs
...
Add some require statements to specs
2020-02-28 10:46:29 +01:00
Luis Ramos
b528903aa8
Remove spec covering html format in SchedulesController#index, this is not used anywhere
2020-02-27 19:05:36 +00:00
Matt-Yorkley
38215c2a88
Delete some dead code
...
This feature for assigning defaults via the UI was previously removed
2020-02-27 19:28:25 +01:00
Matt-Yorkley
d280bf0d4d
Update all locales with the latest Transifex translations
2020-02-27 11:42:02 +01:00
Eduardo
4c3916a93d
redirect to shops list when an enterprise is not found
2020-02-26 19:25:38 -03:00
Luis Ramos
677f31ffa8
Make payment source_views/gateway work with nil credit card
...
This will happen if user deletes a saved credit card used previously. In this case, the admin payment details page will render empty details and the payment amount
2020-02-26 11:55:17 +00:00
Luis Ramos
5848a46149
Add missing template to render stripeSCA payment and add spec to verify it's presence
2020-02-26 11:38:42 +00:00
Luis Ramos
03c91dfac1
Merge pull request #4780 from luisramos0/bulk_prod_errors
...
Fix javascript logic that parses server errors in the bulk product edit page
2020-02-25 18:49:54 +00:00
Luis Ramos
60e12063cd
Merge pull request #4758 from luisramos0/fix_incomplete_stripe
...
Make the payment methods filter handle misconfigured stripe payment methods
2020-02-25 18:47:09 +00:00
Pau Pérez Fabregat
e5b57af315
Merge pull request #4815 from openfoodfoundation/transifex
...
Transifex
2020-02-25 13:37:30 +01:00
Pau Pérez Fabregat
a396a7f0af
Merge pull request #4818 from luisramos0/delete_dead_code
...
Delete dead code after PRs 4512 and 4508
2020-02-25 13:32:23 +01:00
Luis Ramos
6b6cdf07fb
Remove inactive confirm
...
The new version of jquery is picking up a confirm in the ship action that was not being triggered in the previous version
The orders_spec was not expecting this confirm to appear so we are removing here to keep the behaviour and the spec green
2020-02-25 11:56:23 +00:00
Transifex-Openfoodnetwork
d084789c56
Updating translations for config/locales/nb.yml
2020-02-25 19:57:08 +11:00
Transifex-Openfoodnetwork
dafac32e70
Updating translations for config/locales/nb.yml
2020-02-25 19:53:59 +11:00
Maikel Linke
8432dab142
Remove unused Javascript manifest
...
It reduces compilation from 25s to 24s.
2020-02-25 11:43:53 +11:00
Maikel Linke
0b0263a605
Remove unused stylesheet manifest
...
Compiling assets with application.css: 40s
Compiling assets without application.css: 25s
2020-02-25 11:43:39 +11:00
Transifex-Openfoodnetwork
6ca39f3aa5
Updating translations for config/locales/fr_CA.yml
2020-02-25 09:10:13 +11:00
Transifex-Openfoodnetwork
234a9ef1b4
Updating translations for config/locales/en_CA.yml
2020-02-25 08:41:07 +11:00
Luis Ramos
24a1327805
Merge pull request #4785 from openfoodfoundation/dependabot/bundler/stripe-5.15.0
...
Bump stripe from 5.11.0 to 5.15.0
2020-02-24 20:12:39 +00:00
Luis Ramos
33d77d57f4
Merge pull request #4776 from luisramos0/remove_assets_group
...
Remove the assets group from the gemfile (taken from spree upgrade branch)
2020-02-24 20:12:01 +00:00
dependabot-preview[bot]
51dd55c5b9
[Security] Bump jquery-rails from 3.0.4 to 3.1.5
...
Bumps [jquery-rails](https://github.com/rails/jquery-rails ) from 3.0.4 to 3.1.5. **This update includes a security fix.**
- [Release notes](https://github.com/rails/jquery-rails/releases )
- [Changelog](https://github.com/rails/jquery-rails/blob/v3.1.5/CHANGELOG.md )
- [Commits](https://github.com/rails/jquery-rails/compare/v3.0.4...v3.1.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-02-24 19:14:38 +00:00
Transifex-Openfoodnetwork
0571b657aa
Updating translations for config/locales/en_FR.yml
2020-02-25 04:39:02 +11:00
Transifex-Openfoodnetwork
e4958baddc
Updating translations for config/locales/en_FR.yml
2020-02-25 04:35:52 +11:00
Transifex-Openfoodnetwork
c985747297
Updating translations for config/locales/fr.yml
2020-02-25 04:31:33 +11:00
Maikel Linke
17ea2cd510
Clean up JS assets comments
2020-02-24 11:22:47 +11:00
Maikel Linke
325c427219
Remove style from pasted HTML in editor
2020-02-24 11:22:47 +11:00
Maikel Linke
a3e87d893a
Remove obsolete angular-sanitize
...
Our TextAngular module supplies that code.
2020-02-24 11:22:47 +11:00
Maikel Linke
480a629349
Bump textAngular to latest v1.5.16
...
I'm not sure which version we had previously. This update should come
with lots of minor improvements even though we didn't have anyone
complain.
2020-02-24 11:22:47 +11:00
Luis Ramos
03fac6f285
Avoid subquery with too many columns error by specifying the selected column
2020-02-23 20:05:13 +00:00
Transifex-Openfoodnetwork
f5ffdfc258
Updating translations for config/locales/en_NZ.yml
2020-02-23 22:32:56 +11:00
Luis Ramos
2108a282c8
Add some require statements to specs
2020-02-22 11:49:52 +00:00
Luis Ramos
a3a61967a8
Merge pull request #4621 from luisramos0/spree_backend_js
...
OFN without spree_backend 🎉
2020-02-22 10:24:50 +00:00
luisramos0
404e7c1f37
Make credit card cloner clone the payment method even if the customer is not given
...
This makes the payments without saving card work again in the frontoffice as well as the payments taken by the seller in the backoffice
2020-02-21 14:11:13 +00:00
Luis Ramos
1bdeda4a21
Delete dead code after PRs 4512 and 4508
2020-02-21 12:25:07 +00:00
Luis Ramos
47916f823f
Add spec to credit card cloner. No customer given.
2020-02-21 10:56:32 +00:00
Luis Ramos
ab4add1954
Fix CreditCardCloner basic spec
2020-02-21 10:56:32 +00:00
Luis Ramos
10fff31dca
Fix stripe_sca spec
2020-02-21 10:56:32 +00:00
Luis Ramos
7fb85092ce
Remove duplicate customers stubs
2020-02-21 10:56:32 +00:00
Luis Ramos
7584e96759
Make customer stub always return the same customer id
...
I cant make stripe customers stub return different customer_ids based on the stripe_account header
2020-02-21 10:56:32 +00:00
Luis Ramos
f8ab64d71e
Move specs around in stripe_sca_spec so we can re-use the cloning stubs when storing a new card and when re-using a new card
2020-02-21 10:56:32 +00:00
Luis Ramos
ccb4c77d1f
Adapt credit card cloner to not clone card if it's a card to be used only once
...
Adapt stripe_sca specs to new cloner logic
2020-02-21 10:56:32 +00:00
luisramos0
5ef1510fc7
Adapt CreditCard cloner to clone not 'cards of the platform account to payment_methods of the connected accounts' but instead 'cards or payment_methods of the platform account to payment_methods of the connected accounts'
...
This process mimicks the existing process of generating a token on the connected account from a card on the platform account. In the Payment Intents API we need to create a payment method in the connected account, a token is not enough
2020-02-21 10:56:32 +00:00
luisramos0
1afd712ff4
Make StripeSCA store cards (and delete them) on the Stripe platform account and not the Stripe Connected account (the sellers accounts)
...
This is important so that cards can be re-used across sellers in OFN
2020-02-21 10:56:32 +00:00
luisramos0
699110258b
Add spec for credit_card_cloner
2020-02-21 10:56:32 +00:00
luisramos0
3fb1df9bb3
Rename CardCloner to CreditCardCloner because it's dependent on Spree:CreditCard attributes
2020-02-21 10:56:32 +00:00
luisramos0
14c03ead31
Extract CardCloner to separate class
2020-02-21 10:56:32 +00:00
luisramos0
4480c2f0f0
Add logic to stripe_sca gateway to handle cards stored in the platform account with the stripe Charges API: card_*
2020-02-21 10:56:32 +00:00
luisramos0
b3ac5d8f41
Improve code readability a little
2020-02-21 10:52:56 +00:00
luisramos0
6fb74c88cd
Fix a typo
2020-02-21 10:52:56 +00:00
luisramos0
38fd028a9f
Fix some rubocop issues from previous commit
2020-02-21 10:52:56 +00:00
luisramos0
4e84310d63
Add StripeSCA where StripeConnect is treated as an exception in the setting up of process of a payment method and subscriptions
...
Here we are copy pasting and adding stripe SCA because we are planning to delete the StripeConnect that will be replaced by the stripe sca implementation
2020-02-21 10:52:56 +00:00
luisramos0
66440f9e4c
Add missing translations for new payment method stripe sca
2020-02-21 10:52:56 +00:00
luisramos0
b8457ebece
Make profile storer a bit easier to read
2020-02-21 10:52:56 +00:00
Luis Ramos
668fd1c7c0
Add spec for profile storer to cover happy path for both response attribute cases: existin stripe integration and new stripe sca
2020-02-21 10:52:55 +00:00
Luis Ramos
aff934c814
Remove unnecessary test setup code
2020-02-21 10:52:55 +00:00
Luis Ramos
6bb04f6cc6
Adapt stripe_sca_spec to actual stripe SCA API
2020-02-21 10:52:55 +00:00
luisramos0
0e815439b3
Duplicate stripe_connect_spec and adapt to new stripe_sca
...
stripe_connect_spec will be deleted at some point when all users are migrated to the sca api
2020-02-21 10:52:55 +00:00
luisramos0
c7b01c37af
Fix a problem in credit cards controller spec and test case where stripe_account_id must be included in the stripe api call
2020-02-21 10:52:55 +00:00
luisramos0
ac8f3c811f
Fix rubocop issues in some stripe integration related files
2020-02-21 10:52:55 +00:00
luisramos0
1b820ea85c
Fix rubocop issues in credit_cards_controller
2020-02-21 10:52:55 +00:00
luisramos0
ec7b91bb68
Make ProfileStorer a bit easier to read
2020-02-21 10:52:29 +00:00
luisramos0
c773cde191
Add admin payment template for stripe sca and respective js code to make it work
2020-02-21 10:52:29 +00:00
luisramos0
db1065a69e
Make saving a card on checkout work with the payment intents api by making profile storer work with the slightly different api responses from stripe
2020-02-21 10:52:29 +00:00
luisramos0
9fa4bad0b4
Add stripe SCA checkotu payment template and move stripe object definition to it and the other stripe template
...
We need to set the stripe object with the stripe account id to work with the payment intents api but we cannot set it to work with the stripe charges api
This makes the two payment methods incompatible: a given enterprise cannot use both the old stripe integration and this new one at the same time.
2020-02-21 10:52:29 +00:00
luisramos0
a52c4b542c
Make destroy stored cards work for stripe SCA by setting stripe account id before making the call to the stripe api
...
This account id cannot be sent when dealing with the old StripeConnect gateway
2020-02-21 10:52:29 +00:00
luisramos0
283abf9a88
Remove dead code from Stripe connect gateway
...
Update Source is dead since a74c502fd9
2020-02-21 10:52:29 +00:00
luisramos0
f691d1aafd
Add new payment method StripeSCA that will use the Stripe Payment Intents API instead of the Stripe Charges API that the current StripeConnect gatreway uses
2020-02-21 10:52:29 +00:00
luisramos0
5724c3bb0a
Add code from ActiveMerchant v1.98.0 that supports the Stripe Payment Intents API
...
This commit can be reverted once we upgrade to v1.98.0
2020-02-21 10:52:29 +00:00
Transifex-Openfoodnetwork
49ba83da6d
Updating translations for config/locales/en_GB.yml
2020-02-21 05:32:39 +11:00
Transifex-Openfoodnetwork
19d1497c4b
Updating translations for config/locales/en_GB.yml
2020-02-21 05:29:31 +11:00
Luis Ramos
06200c9d3c
Add new cops (disabled) to rubocop config
2020-02-20 18:04:43 +00:00
Luis Ramos
2412658e51
Update db/schema timestamp according to last change
2020-02-20 11:41:49 +00:00
Luis Ramos
0c4f22f847
Fix images/new.js path and add simple spec to verify the page loads correctly
...
Testing the file upload would be a bit more complicated
2020-02-20 11:18:22 +00:00
Luis Ramos
1803ea3c38
Add traling breakline to case where errors come in a array
2020-02-20 10:06:10 +00:00
Pau Pérez Fabregat
93fda02e43
Merge pull request #4803 from openfoodfoundation/dependabot/bundler/rubocop-0.80.0
...
Bump rubocop from 0.79.0 to 0.80.0
2020-02-20 09:34:10 +01:00
Pau Pérez Fabregat
77958f9afe
Merge pull request #4796 from openfoodfoundation/dependabot/bundler/i18n-js-3.6.0
...
Bump i18n-js from 3.5.1 to 3.6.0
2020-02-20 09:32:02 +01:00
Maikel Linke
82e402f31a
Update translations from Transifex
2020-02-20 16:20:06 +11:00
Maikel Linke
03fa3e2269
Find last payment deterministically
2020-02-20 15:59:57 +11:00
Maikel Linke
11fbe7d5c9
Show last payment method in order confirmations
2020-02-20 15:59:57 +11:00
Maikel Linke
799c1f08de
Optimise finding last payment
...
Suggested by Rubocop.
2020-02-20 15:59:56 +11:00
Maikel Linke
6b66458bfd
Replace andand with new Ruby syntax
2020-02-20 15:59:56 +11:00
Maikel Linke
3e0a5bac6a
Move helper to service for re-use
2020-02-20 15:59:56 +11:00
Maikel Linke
2c2023df03
Show last payment method in order confirmation
...
If we had multiple failed payments and then a successful payment, the
order confirmation was displaying the payment method of the first failed
payment. That was confusing and is now changed to the last payment
method.
2020-02-20 15:59:56 +11:00
Maikel Linke
7306d379a5
Display payment method literally
...
Don't allow for HTML and potentially bad scripts. But this also prevents
accidental display errors. If someone wrote, "We only take <cash>", it
would mess with the site.
2020-02-20 15:59:56 +11:00
Maikel Linke
e15c61d862
Add spec for order confirmation view
2020-02-20 15:59:56 +11:00
Maikel
35aeb98d45
Merge pull request #4792 from openfoodfoundation/transifex
...
Transifex
2020-02-20 10:43:45 +11:00
Luis Ramos
d99cba3b6e
Merge pull request #4709 from mkllnk/4172-js-pluralize
...
Pluralize common variant unit names
2020-02-19 22:28:54 +00:00
dependabot-preview[bot]
4c6fd96bcc
Bump rubocop from 0.79.0 to 0.80.0
...
Bumps [rubocop](https://github.com/rubocop-hq/rubocop ) from 0.79.0 to 0.80.0.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases )
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.79.0...v0.80.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-02-18 19:18:53 +00:00
Luis Ramos
1eba17f048
Make select column explicit to avoid too many columns sql error
2020-02-18 18:32:52 +00:00
dependabot-preview[bot]
ff088c6203
Bump stripe from 5.11.0 to 5.15.0
...
Bumps [stripe](https://github.com/stripe/stripe-ruby ) from 5.11.0 to 5.15.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.11.0...v5.15.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-02-18 12:01:10 +00:00
Luis Ramos
a1cb6928db
Merge pull request #4793 from openfoodfoundation/dependabot/bundler/webmock-3.8.2
...
Bump webmock from 3.8.1 to 3.8.2
2020-02-18 11:59:14 +00:00
Luis Ramos
40a5b60dcb
Merge pull request #4794 from openfoodfoundation/dependabot/bundler/oauth2-1.4.4
...
Bump oauth2 from 1.4.3 to 1.4.4
2020-02-18 11:58:58 +00:00
Luis Ramos
2711736004
Use Array#join and make code simpler
2020-02-18 10:49:41 +00:00
Luis Ramos
18c165e893
Merge pull request #4784 from CSCI-462-01-2020/Issue4731
...
Add Order Cycle Button Tooltips
2020-02-17 19:32:39 +00:00
Luis Ramos
0aaa04295b
Improve and unit test errorsParser
2020-02-17 11:21:21 +00:00
Luis Ramos
7639e9a38d
Extrac ErrorsParser to separate class and make it handle the rails error structure with keys
2020-02-17 11:21:21 +00:00
Transifex-Openfoodnetwork
d783bd771f
Updating translations for config/locales/ar.yml
2020-02-15 09:33:06 +11:00
Transifex-Openfoodnetwork
9dd9d14107
Updating translations for config/locales/ar.yml
2020-02-15 09:29:56 +11:00
Transifex-Openfoodnetwork
e942266dd7
Updating translations for config/locales/pt_BR.yml
2020-02-15 07:05:18 +11:00
dependabot-preview[bot]
c8f78904d6
Bump i18n-js from 3.5.1 to 3.6.0
...
Bumps [i18n-js](https://github.com/fnando/i18n-js ) from 3.5.1 to 3.6.0.
- [Release notes](https://github.com/fnando/i18n-js/releases )
- [Changelog](https://github.com/fnando/i18n-js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fnando/i18n-js/compare/v3.5.1...v3.6.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-02-14 19:24:49 +00:00
Transifex-Openfoodnetwork
a982fd1e2b
Updating translations for config/locales/tr.yml
2020-02-14 22:27:33 +11:00
Transifex-Openfoodnetwork
7e8b2f6be5
Updating translations for config/locales/tr.yml
2020-02-14 22:24:23 +11:00
Transifex-Openfoodnetwork
921c7bbc3a
Updating translations for config/locales/tr.yml
2020-02-14 22:21:12 +11:00
Transifex-Openfoodnetwork
eaff6b0c68
Updating translations for config/locales/nb.yml
2020-02-14 19:26:01 +11:00
Transifex-Openfoodnetwork
e1ab424481
Updating translations for config/locales/nb.yml
2020-02-14 19:22:51 +11:00
Luis Ramos
00e57c8a55
Add module definition in the recently moved service and adapt all it's usages to refer to the new namespace
2020-02-13 20:17:09 +00:00
Luis Ramos
2e74e64e22
Move Product Reset Strategy to the catalog domain
2020-02-13 20:17:09 +00:00
Luis Ramos
fc5d623465
Add new domain structure Catalog
2020-02-13 20:17:06 +00:00
Transifex-Openfoodnetwork
e59c9720fc
Updating translations for config/locales/en_GB.yml
2020-02-14 06:53:13 +11:00
dependabot-preview[bot]
b25f0007f0
Bump oauth2 from 1.4.3 to 1.4.4
...
Bumps [oauth2](https://github.com/oauth-xx/oauth2 ) from 1.4.3 to 1.4.4.
- [Release notes](https://github.com/oauth-xx/oauth2/releases )
- [Changelog](https://github.com/oauth-xx/oauth2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/oauth-xx/oauth2/compare/v1.4.3...v1.4.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-02-13 19:19:44 +00:00
dependabot-preview[bot]
65c5cdd52f
Bump webmock from 3.8.1 to 3.8.2
...
Bumps [webmock](https://github.com/bblimke/webmock ) from 3.8.1 to 3.8.2.
- [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.8.1...v3.8.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-02-13 19:16:18 +00:00
Transifex-Openfoodnetwork
a2873ea553
Updating translations for config/locales/fr.yml
2020-02-14 05:05:51 +11:00
Transifex-Openfoodnetwork
3a593ff255
Updating translations for config/locales/fr.yml
2020-02-14 05:02:42 +11:00
Transifex-Openfoodnetwork
92e1193ffb
Updating translations for config/locales/en_FR.yml
2020-02-14 05:01:02 +11:00
Transifex-Openfoodnetwork
016968dcb9
Updating translations for config/locales/fr.yml
2020-02-14 04:59:33 +11:00
Luis Ramos
9d8608f210
Merge pull request #4630 from Matt-Yorkley/product_counts
...
Show counts including all variants in order cycle exchanges
2020-02-13 11:33:58 +00:00
Luis Ramos
323ca906bc
Merge pull request #4759 from pacodelaluna/order-admin-products
...
Order admin products
2020-02-13 11:33:05 +00:00
Luis Ramos
c43b34e0fa
Merge pull request #4760 from luisramos0/checkout_ctrl
...
Merge Spree::CheckoutController with CheckoutController and clean it up
2020-02-13 11:31:15 +00:00
Luis Ramos
bc7f0e0962
Update all locales with the latest Transifex translations
2020-02-13 11:19:07 +00:00
Luis Ramos
cf4f7c562a
Merge pull request #4778 from openfoodfoundation/transifex
...
Transifex
2020-02-13 11:08:01 +00:00
François Turbelin
4c7bd4d6a8
Fix mess with order
2020-02-13 06:38:13 +01:00
François Turbelin
523b266308
Put back created_at desc as default order
2020-02-13 06:38:13 +01:00
François Turbelin
212413c8b3
Avoid mutable q params
2020-02-13 06:38:13 +01:00
François Turbelin
b248dc598e
Cosmetics
2020-02-13 06:38:13 +01:00
François Turbelin
e7b74b99ba
Refactor SortingOptions JS
2020-02-13 06:38:13 +01:00
François Turbelin
89d2750fc4
Set default value at backend side
2020-02-13 06:38:13 +01:00
François Turbelin
7100111f93
Fix specs and cosmetics
2020-02-13 06:38:13 +01:00
François Turbelin
3dcb66014e
Factorize column sorter partial
2020-02-13 06:38:13 +01:00
François Turbelin
06971b7198
Add sortable name column for Admin Products
2020-02-13 06:38:13 +01:00
François Turbelin
56f9adc5b7
Filter Admin products by name asc
2020-02-13 06:38:13 +01:00
Luis Ramos
38374a9835
Merge pull request #4761 from openfoodfoundation/dependabot/bundler/unicorn-5.5.3
...
Bump unicorn from 5.5.2 to 5.5.3
2020-02-12 20:56:19 +00:00
Luis Ramos
8d6a8ee214
Merge pull request #4763 from mkllnk/rails4-form-rendering
...
Future proof form rendering in admin orders
2020-02-12 20:56:00 +00:00
blainebillings
fec653186a
Add Order Cycle Button Tooltips
2020-02-11 10:10:39 -05:00
Transifex-Openfoodnetwork
ebe7456b66
Updating translations for config/locales/tr.yml
2020-02-11 21:48:53 +11:00
Transifex-Openfoodnetwork
8187669a25
Updating translations for config/locales/tr.yml
2020-02-11 21:45:44 +11:00
Transifex-Openfoodnetwork
a6aa0df53b
Updating translations for config/locales/fr_BE.yml
2020-02-10 03:32:33 +11:00
Transifex-Openfoodnetwork
116695b1d9
Updating translations for config/locales/en_NZ.yml
2020-02-08 18:53:00 +11:00
Transifex-Openfoodnetwork
387ac40dc9
Updating translations for config/locales/en_NZ.yml
2020-02-08 18:49:51 +11:00
luisramos0
66320b5055
Remove the assets group from the gemfile, it will disappear in rails 4
2020-02-07 12:29:02 +00:00
luisramos0
858d2cc6c2
Add doc to Spree::CheckoutController to make it more obvious why this controller exists
2020-02-07 11:50:23 +00:00
luisramos0
43280da187
Dup params to avoid nasty effects of a mutated params object in the controller
2020-02-07 10:26:04 +00:00
luisramos0
3b399b899c
Extract methods in subscription_placement_job to fix rubocop complexity issues
2020-02-07 10:06:59 +00:00
luisramos0
01d69c89aa
Add some log messages to help debug problems in subscription placement and subscription confirmation processes
2020-02-07 10:06:58 +00:00
luisramos0
a2801e40a2
Improve readability of proxy_order_syncer and add some log messages
2020-02-07 10:06:58 +00:00
luisramos0
abd4f0b923
Add custom_data column to paper_trail versions table so we can track a specific list of ids in a model
...
Activate paper_trail in order_cycles and schedules and track each others ids
An alternative way of doing this would be to use a gem for paper_trail associations but this way we avoid adding a new dependency to the app
2020-02-07 10:06:58 +00:00
Luis Ramos
e1eface5f8
Merge pull request #4542 from luisramos0/logger
...
Add timestamp to log entries
2020-02-07 10:02:55 +00:00
Luis Ramos
5cd14253d0
Merge pull request #4770 from openfoodfoundation/dependabot/bundler/webmock-3.8.1
...
Bump webmock from 3.8.0 to 3.8.1
2020-02-07 09:31:19 +00:00
Maikel
be691df7ac
Merge pull request #4769 from openfoodfoundation/transifex
...
Transifex
2020-02-07 18:09:31 +11:00
Maikel Linke
7783b28ca2
Update concurrency spec after refactor
...
In order to make the spec fail if the controller was not thread safe, it
uses breakpoints. One of those breakpoints was set for a method that has
now been removed.
I changed the method that is used for the breakpoint and changed `allow`
to `expect` so that this spec will fail if we remove that method as
well. Future version of Rspec will check if a mocked method actually
exists but our version just mocks it anyway. This is one way how specs
can become invalid after refactoring.
2020-02-07 17:46:42 +11:00
Maikel
6d51856821
Merge pull request #4734 from openfoodfoundation/dependabot/bundler/oauth2-1.4.3
...
Bump oauth2 from 1.4.2 to 1.4.3
2020-02-07 16:48:42 +11:00
dependabot-preview[bot]
890704b75c
Bump webmock from 3.8.0 to 3.8.1
...
Bumps [webmock](https://github.com/bblimke/webmock ) from 3.8.0 to 3.8.1.
- [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.8.0...v3.8.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-02-06 19:17:54 +00:00
Transifex-Openfoodnetwork
922484b2e7
Updating translations for config/locales/en_GB.yml
2020-02-07 05:02:38 +11:00
Luis Ramos
3e7288648b
Merge pull request #4762 from openfoodfoundation/dependabot/bundler/roo-2.8.3
...
Bump roo from 2.8.2 to 2.8.3
2020-02-06 14:44:21 +00:00
luisramos0
f0f537ff8f
Fix path of spree-select2.js pointing to the file in ofn rather the file in spree_backend
2020-02-06 11:21:47 +00:00
Transifex-Openfoodnetwork
b7f920c4b6
Updating translations for config/locales/ca.yml
2020-02-06 21:12:27 +11:00
luisramos0
e5c9468d09
Fix rubocop issues in navigation_helper
2020-02-05 22:16:20 +00:00
luisramos0
8aed173127
Uncomment events in order edit page and remove unused spree autocomplete js code
2020-02-05 20:04:15 +00:00
luisramos0
61ecca7257
Move template loading to directive of customer search override
2020-02-05 20:04:15 +00:00
luisramos0
7eba657b2f
Add missing templates from spree_backend
2020-02-05 20:04:15 +00:00
luisramos0
784de340d1
Disable adaptive menu when running tests, this is what spree_backend was doing before
2020-02-05 20:04:15 +00:00
luisramos0
9191628f29
Bring custom form_builder initializer from spree_backend
2020-02-05 20:04:15 +00:00
luisramos0
88410b1efd
Add missing general config routes from spree_backend
2020-02-05 20:04:12 +00:00
luisramos0
afea032361
Add return_authorizations route from spree_backend
2020-02-05 16:02:43 +00:00
luisramos0
3decb4056c
Remove repeated include spree_paypal_express and add require css select2
2020-02-05 16:02:43 +00:00
luisramos0
8e9b08feca
Remove jquery-alerts from head html
2020-02-05 16:02:43 +00:00
luisramos0
694995ea5d
Prefix root_path with main_app so that ofn's route is used. The spree root path is no longer defined, we dont need it
2020-02-05 16:02:43 +00:00
luisramos0
22de7252d0
Fix route in login nav and bring reports and properties resource route from spree_backend
2020-02-05 16:02:43 +00:00
luisramos0
2acf8e5125
Remove config_locale from base controller, in OFN we dont have separate locales for frontoffice and backoffice
2020-02-05 16:02:43 +00:00
luisramos0
e1f61e645d
Remove dependency to spree_backend and add dependencies still required: jquery-ui-rails and select2-rails
2020-02-05 16:02:43 +00:00
luisramos0
687d827ceb
Add required css require for select2
2020-02-05 16:02:43 +00:00
luisramos0
2885e38113
Re-activate/re-add click events that were registered in spree_backend code before
2020-02-05 16:02:43 +00:00
luisramos0
9f3ca58b55
Add empty admin/spree_backend.js
...
This file is required by spree_paypal_express that we still need after leaving spree_backend
2020-02-05 16:02:43 +00:00
luisramos0
ffe3228848
Remove spree_backend dependencies from all.js and all.css and fix some dependencies path problems
2020-02-05 16:02:43 +00:00
luisramos0
834231eb8f
Add js code needed for the zones admin page
2020-02-05 16:02:43 +00:00
luisramos0
68f5aabd3f
Add js code needed where calculators are used: ship methods and payment methods config pages
2020-02-05 16:02:43 +00:00
luisramos0
7e7ea92833
Add js code needed in the states admin page
2020-02-05 16:02:43 +00:00
luisramos0
ebf22ceb19
Add js and css code for image settings from spree_backend
2020-02-05 16:02:43 +00:00
Luis Ramos
c38c7c35bc
Add spec for user default address setter
2020-02-05 14:49:17 +00:00
luisramos0
2663f74767
Add specs for new services
2020-02-05 14:49:17 +00:00
luisramos0
b41de52012
Moved checkout services into a specific folder under app/services
2020-02-05 14:49:17 +00:00
luisramos0
214eb43122
Add frozen string literal magic comment
2020-02-05 14:49:17 +00:00
luisramos0
01fc4e0513
Add Spree::CheckoutController only to redirect to CheckoutController
...
I have not managed to make the spree checkout route, that paypal express uses, go to CheckoutController directly. According to the rails docs "to: '/checkout#edit'" should do it, but it doesnt work here.
2020-02-05 14:49:17 +00:00
luisramos0
6ce50a5fa5
Extract paypal redirect logic to service class
2020-02-05 14:49:17 +00:00
luisramos0
4fbd2cfa52
Extract UserDefaultAddress logic into separate class to take more 30 lines out of CheckoutController
2020-02-05 14:49:17 +00:00
luisramos0
383b28e170
Add order and current_user to checkout_form_data_adapter where they are required
...
Also re-add order.state condition to update_result: in some tests, the order state is complete but no completion data (completed?) is present
2020-02-05 14:49:17 +00:00
luisramos0
bf55a15f81
Extract checkout params adaptation logic into a service class
2020-02-05 14:49:17 +00:00
luisramos0
eb7e6dc5b8
Remove spree checkout controller spec, it is no longer necessary
2020-02-05 14:49:17 +00:00
luisramos0
139ecfe604
Remove rubocop exceptions resolved so far in checkout controller
2020-02-05 14:49:17 +00:00
luisramos0
43a6798db2
Move methods around in checkout controller into a more logical organisation: first the filters code and then support code for the update action
2020-02-05 14:49:17 +00:00
luisramos0
06d6579486
Refactor construct_saved_card_attributes to fix rubocop issues
2020-02-05 14:49:17 +00:00
luisramos0
76df526002
Remove dead code from construct_saved_card_attributes
2020-02-05 14:49:17 +00:00
luisramos0
06569ea24c
Refactor load_order to fix rubocop issues
2020-02-05 14:49:17 +00:00
luisramos0
25431f851b
Refactor object_params to fix rubocop issues
2020-02-05 14:49:17 +00:00
luisramos0
bab2420bb3
Break up default address methods to fix rubocop issues
2020-02-05 14:49:17 +00:00
luisramos0
0b2acb3a76
Extracted two methods from checkout_workflow to fix rubocop issues
2020-02-05 14:49:17 +00:00
luisramos0
27db9e604f
Extract respond_to_update_succeeded from update_succeeded
2020-02-05 14:49:17 +00:00
luisramos0
c4e58ebb9e
Extract update_succeeded from checkout#update
2020-02-05 14:49:17 +00:00
luisramos0
9a0ee254af
Extract checkout_workflow from checkout#update
2020-02-05 14:49:17 +00:00
luisramos0
5ce3e1e0d2
Fix some rubocop issues in checkout controller
2020-02-05 14:49:17 +00:00
luisramos0
4b345d928c
Remove old code to detect Phantom Fees, no bugsnag events detected at all
2020-02-05 14:49:17 +00:00
luisramos0
52b1e6c71a
Move all logic required in Spree::CheckoutController to CheckoutController
2020-02-05 14:49:17 +00:00
Matt-Yorkley
140e0b9cb1
Refactor #exchangeLoadedVariants
2020-02-05 15:11:34 +01:00
Matt-Yorkley
b3f05d1a98
Use "Variants" instead of "Products" in order cycle exchanges UI
2020-02-05 15:11:34 +01:00
Matt-Yorkley
9644b145cc
Remove num_of_products
2020-02-05 15:11:34 +01:00
Matt-Yorkley
6f644936b0
Show counts including all variants in order cycle exchanges
2020-02-05 15:10:26 +01:00
Matt-Yorkley
b86759d7a7
Fix form rendering in admin orders
...
ActionView::Template::Error: Nil location provided. Can't build URI.
0) Account and Billing Settings updating as an admin user loads the page
Failure/Error: = form_tag false, {name: "orders_form", "ng-submit" => "fetchResults()"} do
2020-02-05 16:37:23 +11:00
dependabot-preview[bot]
9d1e3f0318
Bump roo from 2.8.2 to 2.8.3
...
Bumps [roo](https://github.com/roo-rb/roo ) from 2.8.2 to 2.8.3.
- [Release notes](https://github.com/roo-rb/roo/releases )
- [Changelog](https://github.com/roo-rb/roo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/roo-rb/roo/compare/v2.8.2...v2.8.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-02-04 19:23:42 +00:00
dependabot-preview[bot]
67adf3c801
Bump unicorn from 5.5.2 to 5.5.3
...
Bumps [unicorn](https://yhbt.net/unicorn/ ) from 5.5.2 to 5.5.3.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-02-04 19:22:39 +00:00
luisramos0
6e78ae762a
Make it work even if preferred_enterprise_id is null
2020-02-04 10:01:18 +00:00
Maikel Linke
9535c5647f
Make pluralisation code an independent lib
...
I considered moving the code to a service but I think that this code
can be completely independent of the Open Food Network use case. It
would be easy to move to a gem. The downcasing may need reconsidering
for general use.
2020-01-31 09:48:32 +11:00
Maikel Linke
6f8bb793e1
Add unit names commonly used in French
2020-01-31 09:48:32 +11:00
Maikel Linke
2476050f29
Remove usage count comments
2020-01-31 09:48:32 +11:00
Maikel Linke
1cce106977
Use our unit name pluralization in Ruby
...
This code will be used for the shop front and reports.
2020-01-31 09:48:32 +11:00
Maikel Linke
98b55287f1
Pluralize common variant unit names
...
This adds the most popular unit names as singular and plural to our
locale for translation. The added Javascript performs a reverse lookup
to find the right singular/plural form of a unit name in that language.
2020-01-31 09:48:32 +11:00
dependabot-preview[bot]
48a75c956f
Bump oauth2 from 1.4.2 to 1.4.3
...
Bumps [oauth2](https://github.com/oauth-xx/oauth2 ) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/oauth-xx/oauth2/releases )
- [Changelog](https://github.com/oauth-xx/oauth2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/oauth-xx/oauth2/compare/v1.4.2...v1.4.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-29 19:24:24 +00:00
Maikel Linke
bec73adc89
Restore file logging for custom format logger
...
The new custom logger was directed to stdout instead of a file.
2020-01-08 15:06:19 +11:00
luisramos0
23ec66e338
Add timestamp to Rails logger in staging and prod so that info in logs can be accurately compared with data in the DB
2020-01-08 15:05:55 +11:00