Maikel Linke
f0ee4aab01
Restore old pagination API for products
...
It's still used by the inventory page. This is an easy fix that I can
deploy without risk. A rewrite of the inventory pagination should
follow.
2019-09-09 14:51:44 +10:00
Maikel Linke
452593b6f1
Ignore block length cop for feature and scenario
...
They are typically long and that's okay, same with `describe` and `it`.
2019-09-09 14:51:44 +10:00
Pau Pérez Fabregat
23740ef908
Merge pull request #4227 from openfoodfoundation/2.4.0-minus-pr-4204
...
Revert PR #4204
2019-09-05 17:19:15 +02:00
Pau Pérez Fabregat
ba04208999
Merge pull request #4224 from kristinalim/feature/4210-fetch_and_scope_variants_once_in_products_renderer
...
4210 Fetch and scope variants for shop in ProductsRenderer only once
2019-09-05 17:12:31 +02:00
Kristina Lim
590ce67f38
Fetch and scope variants for shop in ProductsRenderer only once
2019-09-05 22:42:50 +08:00
Matt-Yorkley
e11ea929c3
Merge pull request #4223 from Matt-Yorkley/integrity
...
Lower integrity checker job interval
2019-09-05 15:36:12 +01:00
Matt-Yorkley
fc9f61ecf8
Revert PR #4204
...
Temporarily reverting these changes for a quick release
2019-09-05 13:23:59 +01:00
Matt-Yorkley
6d283ac839
Lower integrity checker job interval from hourly to daily
2019-09-05 12:54:37 +01:00
Luis Ramos
725807f66d
Merge pull request #4155 from coopdevs/fix-styling-in-stripe-tests
...
Fix Rubocop violations in Stripe connect tests
2019-09-03 15:58:34 +01:00
Pau Pérez Fabregat
149df6569c
Merge pull request #4212 from openfoodfoundation/dependabot/bundler/webmock-3.7.1
...
Bump webmock from 3.6.2 to 3.7.1
2019-09-03 11:16:01 +02:00
Pau Pérez Fabregat
7daa7032aa
Merge pull request #4215 from openfoodfoundation/transifex
...
Transifex
2019-09-03 11:11:51 +02:00
Pau Pérez Fabregat
8b7119beea
Merge pull request #4200 from openfoodfoundation/dependabot/bundler/bugsnag-6.12.0
...
Bump bugsnag from 6.11.1 to 6.12.0
2019-09-03 11:02:51 +02:00
Transifex-Openfoodnetwork
201e87bf12
Updating translations for config/locales/en_US.yml
2019-09-03 12:29:10 +10:00
Transifex-Openfoodnetwork
0fffd6b4e3
Updating translations for config/locales/en_US.yml
2019-09-03 12:26:02 +10:00
Matt-Yorkley
c516d40d4a
Update all locales with the latest Transifex translations
2019-09-02 22:24:53 +01:00
Luis Ramos
07d4528276
Merge pull request #4174 from openfoodfoundation/dependabot/bundler/delayed_job_active_record-4.1.4
...
Bump delayed_job_active_record from 4.1.3 to 4.1.4
2019-09-02 22:24:04 +01:00
Luis Ramos
4ace780431
Merge pull request #4187 from openfoodfoundation/dependabot/bundler/knapsack-1.18.0
...
Bump knapsack from 1.17.2 to 1.18.0
2019-09-02 22:23:15 +01:00
dependabot-preview[bot]
b69c3fd826
Bump webmock from 3.6.2 to 3.7.1
...
Bumps [webmock](https://github.com/bblimke/webmock ) from 3.6.2 to 3.7.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.6.2...v3.7.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-02 19:23:28 +00:00
dependabot-preview[bot]
51df8de64f
Bump knapsack from 1.17.2 to 1.18.0
...
Bumps [knapsack](https://github.com/ArturT/knapsack ) from 1.17.2 to 1.18.0.
- [Release notes](https://github.com/ArturT/knapsack/releases )
- [Changelog](https://github.com/ArturT/knapsack/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ArturT/knapsack/compare/v1.17.2...v1.18.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-02 16:16:32 +00:00
Matt-Yorkley
d4a5829858
Merge pull request #4081 from Matt-Yorkley/products_pagination
...
Bulk Edit Products pagination
2019-09-02 17:14:14 +01:00
Matt-Yorkley
ff5fe66994
Fix route after big API refactor merge resolution
2019-09-02 16:29:03 +01:00
Matt-Yorkley
37e50a68e4
Fix timezone date parsing from Angular form fields
2019-09-02 16:29:00 +01:00
Matt-Yorkley
a72c662b97
Update per_page dropdown UX
2019-09-02 14:35:00 +01:00
Matt-Yorkley
ff2db0c5f8
Update spec routes, namespacing, and test content
...
Resolving new issues after a big merge
2019-09-02 14:35:00 +01:00
Matt-Yorkley
e9c60a33b9
Hide search in dropdown for per_page options
2019-09-02 14:35:00 +01:00
Matt-Yorkley
8e059d3c69
Define a limit on paginated queries with no supplied value for per_page
2019-09-02 14:35:00 +01:00
Matt-Yorkley
806ba94a2e
Clarify dependency on kaminari gem
2019-09-02 14:35:00 +01:00
Matt-Yorkley
4bec583bff
Refactor import_date_scope
2019-09-02 14:35:00 +01:00
Matt-Yorkley
90256f9c28
Add defaults and pages tests
2019-09-02 14:35:00 +01:00
Matt-Yorkley
eb284c1742
Use constants for defaults
2019-09-02 14:35:00 +01:00
Matt-Yorkley
b614e17f48
Add test coverage for #bulk_products endpoint and test all filtering functions
2019-09-02 14:34:54 +01:00
Pau Perez
1a450733a3
Use ApiHelper to DRY calls to JSON.parse in spec
2019-09-02 15:32:56 +02:00
Pau Perez
ffde7a38df
Add spacing to increase readability
2019-09-02 15:32:56 +02:00
Pau Perez
8b4b0621db
Fix Rubocop violations in Stripe connect tests
2019-09-02 15:32:56 +02:00
Matt-Yorkley
5259eaae5f
Merge pull request #4204 from Matt-Yorkley/cartastrophe
...
Cartastrophe averted :)
2019-09-02 12:26:08 +01:00
Matt-Yorkley
b0ad0fccfa
Add some defaults to avoid returning zero values when not supplied in query
2019-09-02 12:00:32 +01:00
Matt-Yorkley
2a83ad8689
Improve UX and consistency in orders pagination and page changing
2019-09-02 11:59:13 +01:00
Matt-Yorkley
c127110192
Make import_date query modification conditional
2019-09-02 11:59:13 +01:00
Matt-Yorkley
0470725112
Refactor pagination data hash
2019-09-02 11:57:32 +01:00
Matt-Yorkley
0623bab084
Don't respond to a successful update by querying 500 arbitrary products
2019-09-02 11:56:00 +01:00
Matt-Yorkley
4a0df684c7
Adjust specs
2019-09-02 11:56:00 +01:00
Matt-Yorkley
7dccb5ba90
Changing per_page should also reset the query
2019-09-02 11:56:00 +01:00
Matt-Yorkley
5a4be24df0
Add "filter results" button
2019-09-02 11:56:00 +01:00
Matt-Yorkley
5cb5967977
Fix cleared filters submitting "0" as value in queries
2019-09-02 11:56:00 +01:00
Matt-Yorkley
aeb8d30dae
Fix server-side import_date filtering
2019-09-02 11:56:00 +01:00
Matt-Yorkley
1822fd97a6
Tidy up filters
2019-09-02 11:54:28 +01:00
Matt-Yorkley
4ff3e9fe10
Update Angular loading conditionals
2019-09-02 11:54:28 +01:00
Matt-Yorkley
a63994440d
Add pagination to UI
2019-09-02 11:54:28 +01:00
Matt-Yorkley
f6d0de1454
Improve pagination data in bulk products
2019-09-02 11:54:28 +01:00
Matt-Yorkley
9b0e27a9d1
Add new ProductResource
2019-09-02 11:46:42 +01:00
Matt-Yorkley
415d88f302
Fix indentation in bulk product controller
2019-09-02 11:46:42 +01:00
Pau Pérez Fabregat
f9c98ea9a1
Merge pull request #4199 from openfoodfoundation/transifex
...
Transifex
2019-09-02 12:33:12 +02:00
Pau Pérez Fabregat
369a5a8a2f
Merge pull request #4101 from luisramos0/remove_variants_rabl
...
Convert spree/api/products and spree/api/variants views from rabl to AMS
2019-09-02 12:14:26 +02:00
Matt-Yorkley
62341c6381
Unit test access to associated objects after soft-delete
2019-08-31 10:06:47 +01:00
Luis Ramos
fa1becb791
Merge pull request #4063 from luisramos0/dead_code
...
Remove dead code under views/spree/shared
2019-08-30 22:39:01 +01:00
Matt-Yorkley
50a1704994
Make prices soft-deletable
2019-08-30 20:11:32 +01:00
Matt-Yorkley
302538c370
Add failing spec for cart issue
2019-08-30 15:32:45 +01:00
Maikel
0f80b6ce12
Merge pull request #4197 from kristinalim/fix/4195-fix_invalid_date_in_firefox
...
4195 Specify API date format when converting date to string in JS
2019-08-30 08:36:17 +10:00
dependabot-preview[bot]
69fb8b2afe
Bump bugsnag from 6.11.1 to 6.12.0
...
Bumps [bugsnag](https://github.com/bugsnag/bugsnag-ruby ) from 6.11.1 to 6.12.0.
- [Release notes](https://github.com/bugsnag/bugsnag-ruby/releases )
- [Changelog](https://github.com/bugsnag/bugsnag-ruby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bugsnag/bugsnag-ruby/compare/v6.11.1...v6.12.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-29 19:17:20 +00:00
Transifex-Openfoodnetwork
1df8fc903e
Updating translations for config/locales/en_ZA.yml
2019-08-30 04:22:54 +10:00
Transifex-Openfoodnetwork
9a2dcb89af
Updating translations for config/locales/en_ZA.yml
2019-08-30 04:22:46 +10:00
Transifex-Openfoodnetwork
1661591f6c
Updating translations for config/locales/ca.yml
2019-08-29 23:12:46 +10:00
Transifex-Openfoodnetwork
6dde720039
Updating translations for config/locales/es.yml
2019-08-29 23:10:30 +10:00
Transifex-Openfoodnetwork
a54b725d6d
Updating translations for config/locales/ca.yml
2019-08-29 23:09:39 +10:00
Luis Ramos
265e76e8ca
Merge pull request #4074 from HugsDaniel/defacepocalypse
...
[Defacepocalypse] De-deface product properties index
2019-08-28 22:18:18 +01:00
Kristina Lim
1516069888
Specify API date format when converting date to string in JS
2019-08-29 02:44:14 +08:00
Luis Ramos
cd263b761c
Merge pull request #4055 from luisramos0/remove_spree_api
...
Remove dependency to spree_api - step 1 - controllers and routes
2019-08-28 15:34:08 +01:00
Maikel
c952ad16ad
Merge pull request #4163 from luisramos0/swagger
...
Add swagger.yaml to codebase
2019-08-28 14:46:51 +10:00
Maikel
ca09c58f26
Merge pull request #3985 from jonleighton/string-to-text
...
Convert several fields from string to text
2019-08-28 11:53:49 +10:00
Maikel Linke
e876a25d59
Fix flaky proxy order spec
2019-08-28 10:48:57 +10:00
Maikel Linke
2a780151be
Update all locales with the latest Transifex translations
2019-08-28 09:54:31 +10:00
Maikel
9d2009d2af
Merge pull request #4188 from openfoodfoundation/transifex
...
Transifex
2019-08-28 09:43:02 +10:00
Maikel
f887533dda
Merge pull request #4157 from mkllnk/4138-update-products
...
4138 Avoid infinite loop when updating products
2019-08-28 09:42:28 +10:00
Transifex-Openfoodnetwork
bef3f154d6
Updating translations for config/locales/fr_CA.yml
2019-08-28 09:12:59 +10:00
Transifex-Openfoodnetwork
6fb775d5ed
Updating translations for config/locales/en_CA.yml
2019-08-28 09:05:39 +10:00
Transifex-Openfoodnetwork
b5a8563725
Updating translations for config/locales/en_GB.yml
2019-08-27 23:28:34 +10:00
Transifex-Openfoodnetwork
1a9ade6de9
Updating translations for config/locales/en_GB.yml
2019-08-27 23:25:26 +10:00
Maikel Linke
48df853ff5
Skip cascading callbacks when touching distributors
2019-08-27 10:44:19 +10:00
Maikel Linke
2137a2addb
Add spec for current bug
...
https://github.com/openfoodfoundation/openfoodnetwork/issues/4138
2019-08-27 10:44:19 +10:00
Transifex-Openfoodnetwork
e6a7239716
Updating translations for config/locales/en_AU.yml
2019-08-27 10:09:05 +10:00
Transifex-Openfoodnetwork
25bed92f2e
Updating translations for config/locales/en_AU.yml
2019-08-27 10:08:32 +10:00
Maikel
909cd407dd
Merge pull request #4149 from openfoodfoundation/transifex
...
Transifex
2019-08-27 09:58:31 +10:00
Luis Ramos
f2d25748b1
Merge pull request #4078 from HugsDaniel/defacepocalypse-variants
...
[Defacepocalypse] De-deface variants
2019-08-25 22:51:15 +01:00
Luis Ramos
6396e6e970
Merge pull request #4152 from openfoodfoundation/dependabot/bundler/stripe-4.24.0
...
Bump stripe from 4.19.0 to 4.24.0
2019-08-25 22:49:47 +01:00
Luis Ramos
e52f813dae
Merge pull request #4159 from luisramos0/fix_prod_set
...
Add bugsnag notifications to both product_set and products_controller when stock update fails
2019-08-25 22:49:06 +01:00
Luis Ramos
9ab2eec30c
Merge pull request #4185 from kristinalim/fix/4176-fix_saving_of_shipping_method
...
4176 Fix saving of shipping method when automatically advancing subscription order state
2019-08-25 22:48:39 +01:00
Luis Ramos
f96b37dae3
Merge pull request #4162 from luisramos0/checkout_cache
...
Checkout is not refreshing products cache
2019-08-25 21:52:55 +01:00
Kristina Lim
5b68b2f707
Fix ship method when advancing subscription order
2019-08-22 21:32:41 +08:00
Kristina Lim
ff634bd870
Test ship method when advancing subscription order
2019-08-22 21:30:21 +08:00
Hugo Daniel
7d21d88dc9
Force hide the select2 close cross
2019-08-22 10:32:07 +02:00
dependabot-preview[bot]
31b62d6296
Bump delayed_job_active_record from 4.1.3 to 4.1.4
...
Bumps [delayed_job_active_record](https://github.com/collectiveidea/delayed_job_active_record ) from 4.1.3 to 4.1.4.
- [Release notes](https://github.com/collectiveidea/delayed_job_active_record/releases )
- [Commits](https://github.com/collectiveidea/delayed_job_active_record/compare/v4.1.3...v4.1.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-20 19:14:59 +00:00
Transifex-Openfoodnetwork
5e68604f11
Updating translations for config/locales/nb.yml
2019-08-20 17:42:09 +10:00
Transifex-Openfoodnetwork
c4edd3a683
Updating translations for config/locales/fr.yml
2019-08-20 17:41:25 +10:00
Transifex-Openfoodnetwork
574781e901
Updating translations for config/locales/nb.yml
2019-08-20 17:39:01 +10:00
Transifex-Openfoodnetwork
8ea4f933da
Updating translations for config/locales/fr.yml
2019-08-20 17:38:12 +10:00
Transifex-Openfoodnetwork
1e9820f291
Updating translations for config/locales/fr.yml
2019-08-20 17:35:05 +10:00
Luis Ramos
34ed86cf2d
Merge pull request #4132 from Matt-Yorkley/import_launch
...
Product Import beta
2019-08-19 17:17:16 +01:00
Kevin Christianson
2dfcedad56
Add swagger.yaml
2019-08-18 18:26:44 +01:00
Kristina Lim
706168f2f0
Refresh variant cache when changing stock movements
2019-08-18 16:22:12 +08:00
Kristina Lim
3ecb5c0c75
Flush background jobs in failing spec
2019-08-18 18:16:28 +10:00
luisramos0
249a3c4e18
Make product set raise error and inform the user something went wrong and keep bugsnag notification so we can get more information about what's going on
2019-08-17 19:19:46 +01:00
luisramos0
2b8ebba233
Fix some rubocop issues in product_set and admin/products_controller
2019-08-17 19:15:32 +01:00
luisramos0
758394464b
Add bugsnag notification to products_controller create and update when on_hand or on_demand update fails with exception
2019-08-17 19:15:32 +01:00
luisramos0
d3c624ae10
Add bugsnag notification to product_set create_variant when on_hand or on_demand update fails with exception
2019-08-17 19:15:31 +01:00
luisramos0
163c65849e
Make product set a bit more robust by not failing to update on_hand when variant is not valid. This will make the overall set update work
2019-08-17 19:14:25 +01:00
luisramos0
99ff714913
Enable cache on checkout spec to test cache after checkout
2019-08-16 20:17:14 +01:00
luisramos0
c2f302450f
Add spec to checkout to validate product is removed from shopfront just after all available quantity is checked out
2019-08-16 19:35:57 +01:00
luisramos0
9186bcd455
Dry out some code in checkout_spec
2019-08-16 19:35:08 +01:00
Transifex-Openfoodnetwork
3d074b530f
Updating translations for config/locales/nb.yml
2019-08-15 19:16:43 +10:00
Transifex-Openfoodnetwork
20783db373
Updating translations for config/locales/en_GB.yml
2019-08-15 19:14:53 +10:00
Luis Ramos
d5b37a5171
Merge pull request #4079 from HugsDaniel/defacepocalypse-payments
...
[Defacepocalypse] De-deface payments
2019-08-14 19:30:33 +01:00
luisramos0
b9ddb39edc
Re-add taxons jstree action to make taxonomies config page work again
2019-08-14 16:31:34 +01:00
Luis Ramos
3efe2f878d
Merge pull request #4156 from coopdevs/fix-styling-in-paypal-tests
...
Fix Rubocop violations in PayPal tests
2019-08-14 15:59:14 +01:00
Luis Ramos
064fee79b3
Merge pull request #4151 from Matt-Yorkley/datadog_apm
...
Enable (optional) APM with Datadog
2019-08-14 15:58:48 +01:00
Luis Ramos
d13f182801
Merge pull request #4154 from Matt-Yorkley/fix_deployments2
...
Adjust user creation syntax
2019-08-14 15:56:32 +01:00
Luis Ramos
ee34935223
Fix a typo in docker.md
2019-08-14 13:55:58 +01:00
Pau Perez
0b7ce0d6db
Fix Rubocop violations in PayPal tests
2019-08-14 13:33:53 +02:00
Matt-Yorkley
9dd02044a5
Fix "can't modify frozen string" error in validation callbacks
2019-08-14 10:24:30 +01:00
Matt-Yorkley
d8a7190f43
Adjust user creation syntax
...
#skip_confirmation! can't be chained...
2019-08-14 09:22:11 +01:00
Matt-Yorkley
e5e0fcc887
Enable DelayedJob APM
2019-08-14 08:20:47 +01:00
Pau Pérez Fabregat
53496ff9eb
Merge branch 'master' into transifex
2019-08-14 09:08:40 +02:00
Pau Pérez Fabregat
6635a89af7
Merge pull request #4153 from Matt-Yorkley/fix_deployments
...
Fix deployments
2019-08-14 08:59:23 +02:00
Transifex-Openfoodnetwork
c1248857b8
Updating translations for config/locales/en_CA.yml
2019-08-14 09:15:20 +10:00
Matt-Yorkley
8c95399292
Don't prompt if admin user already exists
2019-08-13 21:02:12 +01:00
Matt-Yorkley
14c1abb861
Skip confirmation email on initial admin user creation
2019-08-13 21:00:30 +01:00
dependabot-preview[bot]
e2d61f5e89
Bump stripe from 4.19.0 to 4.24.0
...
Bumps [stripe](https://github.com/stripe/stripe-ruby ) from 4.19.0 to 4.24.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/v4.19.0...v4.24.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-13 19:18:17 +00:00
Transifex-Openfoodnetwork
5a1ef04c67
Updating translations for config/locales/en_ZA.yml
2019-08-14 04:57:27 +10:00
Transifex-Openfoodnetwork
e9e73ef0e4
Updating translations for config/locales/en_ZA.yml
2019-08-14 04:43:50 +10:00
Matt-Yorkley
be844253eb
Enable (optional) Rails APM with Datadog
2019-08-13 18:57:49 +01:00
Transifex-Openfoodnetwork
001e3688da
Updating translations for config/locales/en_GB.yml
2019-08-14 03:28:13 +10:00
luisramos0
b4ffd4dcc2
Update all locales with the latest Transifex translations
2019-08-13 18:25:23 +01:00
Transifex-Openfoodnetwork
e5a9606449
Updating translations for config/locales/en_GB.yml
2019-08-14 03:25:02 +10:00
Pau Pérez Fabregat
9eabbb8dab
Merge pull request #4140 from openfoodfoundation/transifex
...
Transifex
2019-08-13 12:00:48 +02:00
Hugo Daniel
1217811402
Refactor and remove empty lines
2019-08-13 11:03:04 +02:00
Pau Pérez Fabregat
d4f2fcb98a
Merge pull request #4126 from Matt-Yorkley/cart_dropdown
...
Cart dropdown now closes when clicking outside it.
2019-08-13 10:57:56 +02:00
Matt-Yorkley
0b2417849c
Merge pull request #4142 from mkllnk/seed-user
...
Seed user
2019-08-13 08:42:07 +01:00
Matt-Yorkley
3e8369c8f5
Merge pull request #4123 from Matt-Yorkley/navigation-css
...
Navigation css
2019-08-13 08:41:47 +01:00
Maikel Linke
cbaedcec92
Fix seeding of default user without asking
2019-08-13 09:47:54 +10:00
Hugo Daniel
bf2c1a0c1d
Add ng directive for setting on demand
2019-08-09 14:42:39 +02:00
Matt-Yorkley
0284eebf35
Fix cart dropdown positioning
2019-08-09 11:50:33 +01:00
Maikel Linke
e4ba515109
Seed admin user without asking by default
2019-08-09 14:16:01 +10:00
Maikel Linke
af1f6f6c6d
Skip confirmation when creating first admin user
2019-08-09 14:16:01 +10:00
Maikel Linke
b0e8ee42c1
Restore spree_auth_devise user seeding
2019-08-09 13:48:50 +10:00
Maikel
86aeb6a3c7
Merge pull request #4135 from coopdevs/remove-bugherd-tests
...
Remove bugherd specs
2019-08-09 12:53:23 +10:00
Matt-Yorkley
5d83414e9b
Disable rubocop for spree tabs helper
2019-08-08 20:09:35 +01:00
Transifex-Openfoodnetwork
9820d7de38
Updating translations for config/locales/ca.yml
2019-08-09 02:36:02 +10:00
Pau Pérez Fabregat
910eca810a
Merge pull request #4124 from Matt-Yorkley/order_email
...
Add SKU to order confirmation email
2019-08-08 18:35:20 +02:00
Transifex-Openfoodnetwork
6feaddf747
Updating translations for config/locales/es.yml
2019-08-09 02:33:35 +10:00
Transifex-Openfoodnetwork
10f6fb91f6
Updating translations for config/locales/ca.yml
2019-08-09 02:32:54 +10:00
Pau Pérez Fabregat
c7bd4b94b8
Merge pull request #4137 from openfoodfoundation/transifex
...
Transifex
2019-08-08 18:31:47 +02:00
Transifex-Openfoodnetwork
dd223a21f2
Updating translations for config/locales/nb.yml
2019-08-08 20:58:24 +10:00
Transifex-Openfoodnetwork
549366ff15
Updating translations for config/locales/fr.yml
2019-08-08 20:52:28 +10:00
Transifex-Openfoodnetwork
e92f60fb1c
Updating translations for config/locales/fr.yml
2019-08-08 20:49:20 +10:00
Pau Pérez Fabregat
92b05c76a3
Merge pull request #4068 from luisramos0/replace_oc_rabl
...
Convert order_cycle.rabl to Api::OrderCycleSerializer
2019-08-08 12:23:09 +02:00
Hugo Daniel
fa6fa0be64
Add missing translation
2019-08-08 11:11:32 +02:00
Kristina Lim
752efac7cf
Merge pull request #4051 from luisramos0/subs_unpause
...
Sync subscription (create/update orders) when subscription is unpaused
2019-08-08 01:09:09 +08:00
Pau Perez
2b1f1f748b
Remove bugherd specs
...
I don't think these are worth the time it takes to execute them every
time but most importantly I believe we are not using Bugherd anymore.
2019-08-07 16:49:32 +02:00
Pau Pérez Fabregat
798cd9e778
Merge pull request #4114 from kristinalim/fix/4103-add_specs
...
4103 Add specs for referencing of shipments to deleted variants
2019-08-07 12:52:11 +02:00
Matt-Yorkley
2f5b0a5afb
Remove product import FeatureFlag
2019-08-07 09:59:55 +01:00
Maikel
de2d4a5870
Merge pull request #4125 from Matt-Yorkley/variant_overrides
...
Variant overrides with on_demand
2019-08-07 10:25:32 +10:00
Matt-Yorkley
b3728568a8
Enable product import for non-superadmin users
...
This class_eval hack for premissions on the #tab method was really hard to find, and is obviously quite ugly, but refactoring it is maybe outside of the scope here...
2019-08-06 18:59:12 +01:00
Matt-Yorkley
6ba98b4b2c
Add beta notice to Product Import
2019-08-06 17:02:38 +01:00
Matt-Yorkley
d3d6921a0f
Use light grey colour with transparency.
2019-08-06 08:23:38 +01:00
Maikel
68393f1444
Merge pull request #4037 from luisramos0/subs_stock
...
Subscriptions - When editing subscriptions, check stock levels when changing orders in current OC
2019-08-06 15:16:00 +10:00
Maikel
229e6fa0a3
Merge pull request #4073 from luisramos0/kill_more_rabl
...
Replace update_prod_image.rabl with ImageSerializer in api/product_image_controller
2019-08-06 15:00:33 +10:00
Matt-Yorkley
8a069787d1
Cart dropdown now closes when clicking outside it.
2019-08-05 21:48:37 +01:00
Matt-Yorkley
29ed38a6cc
Add unit tests for overriding #move
2019-08-05 17:01:56 +01:00
Matt-Yorkley
4c7d3a491a
Don't decrement variant stock if override is on_demand
2019-08-05 17:01:56 +01:00
Matt-Yorkley
b0f90cf43c
Add test for variant override with :on_demand
2019-08-05 17:01:54 +01:00
Pau Pérez Fabregat
02ec0634b3
Merge pull request #4120 from openfoodfoundation/dependabot/bundler/webmock-3.6.2
...
Bump webmock from 3.6.0 to 3.6.2
2019-08-05 15:13:31 +02:00
Pau Pérez Fabregat
64d21969f0
Merge pull request #4064 from luisramos0/convert_search_Rabl
...
Replace views/admin/variants/search.rabl with Api::Admin::VariantSerializer
2019-08-05 15:07:10 +02:00
Pau Pérez Fabregat
0995adeb59
Merge pull request #4085 from openfoodfoundation/dependabot/bundler/devise-encryptable-0.2.0
...
Bump devise-encryptable from 0.1.2 to 0.2.0
2019-08-05 15:01:46 +02:00
Pau Pérez Fabregat
073a3fe2b4
Merge pull request #4119 from openfoodfoundation/transifex
...
Transifex
2019-08-05 13:18:12 +02:00
Matt-Yorkley
c07df6a5a6
Fix table column alignments
2019-08-04 20:45:00 +01:00
Matt-Yorkley
a7d109833d
Add SKU to order confirmation email
2019-08-04 20:43:55 +01:00
Matt-Yorkley
0364a14073
Add navigation bottom border on mobile view
2019-08-04 16:56:43 +01:00
Matt-Yorkley
ddc8d33356
Update border colour on navigation bar
2019-08-04 16:56:03 +01:00
Kristina Lim
cd81dfaead
Move deleted variant to let block in feature spec
2019-08-02 21:52:36 +08:00
Kristina Lim
25073ada84
Move order to a let block in feature spec
2019-08-02 21:52:33 +08:00
Kristina Lim
15b6f9dd5e
Add specs testing edit order page still okay when variant deleted
...
Note that the wrapping example group also loads the edit order page
before this "before" block. This will be fixed in the next commit.
2019-08-02 21:45:39 +08:00
Kristina Lim
0377e02dc1
Add specs testing that shipments see deleted variants
2019-08-02 21:45:38 +08:00
dependabot-preview[bot]
f679708a4e
Bump webmock from 3.6.0 to 3.6.2
...
Bumps [webmock](https://github.com/bblimke/webmock ) from 3.6.0 to 3.6.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.6.0...v3.6.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-01 19:15:26 +00:00
Transifex-Openfoodnetwork
0f748a3333
Updating translations for config/locales/en_GB.yml
2019-08-02 04:32:50 +10:00
Transifex-Openfoodnetwork
bdedaa06d8
Updating translations for config/locales/en_GB.yml
2019-08-02 04:29:40 +10:00
Pau Pérez Fabregat
6a41d9be87
Merge pull request #4092 from coopdevs/remove-admin-products-N+1
...
Remove N+1 while fetching distributors of OCs
2019-08-01 19:50:49 +02:00
luisramos0
4aa6c673ff
Adapt api products and variants controllers to new namespace outside of Spree
2019-08-01 18:34:19 +01:00
luisramos0
aa3c1aa0fe
Remove Spree module declaration from these files as they were moved out of the spree namespace
2019-08-01 14:30:11 +01:00
luisramos0
31bac9641f
Move api products and variants routes and ctrl out of spree namespace
2019-08-01 14:28:55 +01:00
Pau Perez
3616a27566
Update all locales with the latest Transifex translations
2019-08-01 15:07:09 +02:00
Hugo Daniel
60bdde6349
Convert variants/new from erb to haml and import new.js.erb
2019-08-01 11:23:44 +02:00
Hugo Daniel
5faf33fabe
Import variants/new.html.erb from spree_backend
2019-08-01 10:50:13 +02:00
Hugo Daniel
f3b1a5dd35
Convert variants/edit from erb to haml
2019-08-01 10:45:04 +02:00
Matt-Yorkley
5ae61017f5
Merge pull request #4091 from Matt-Yorkley/missing_css
...
Move CSS rule to SCSS and remove broken css file reference
2019-07-31 23:48:52 +01:00
Luis Ramos
61dffb8821
Merge pull request #4093 from openfoodfoundation/dependabot/bundler/redcarpet-3.5.0
...
Bump redcarpet from 3.4.0 to 3.5.0
2019-07-31 20:53:43 +01:00
Hugo Daniel
07ccbf7f98
Import variants/edit.html.erb from spree_backend
2019-07-31 16:55:47 +02:00
Luis Ramos
f9fabd088c
Merge pull request #4075 from HugsDaniel/defacepocalypse-payment-methods
...
[Defacepocalypse] De-deface payment methods index
2019-07-31 15:49:48 +01:00
Hugo Daniel
a3af6617a9
Convert payments/show from erb to haml
2019-07-31 16:20:32 +02:00
Hugo Daniel
9f7fb654c8
Import payments/show.html.erb from spree_backend
2019-07-31 16:16:26 +02:00
Hugo Daniel
b4a6686eac
Convert payments/_list from erb to haml
2019-07-31 16:15:38 +02:00
Hugo Daniel
ac13ff114c
Import payments/_list.html.erb from spree_backend
2019-07-31 16:09:48 +02:00
Hugo Daniel
af9187947f
Convert erb to haml
2019-07-31 16:02:48 +02:00
luisramos0
b7f7038934
Remove api/enterprises rabl template, it was only used as a member in the now removed rabl variants/products templates
2019-07-31 14:36:36 +01:00
Hugo Daniel
f0fdbf7cf4
Import payments/index from spree_backend
2019-07-31 14:33:38 +02:00
Hugo Daniel
74ab31c0e6
Import gateway.html.erb and convert to haml
2019-07-31 14:28:15 +02:00
luisramos0
6c054e6078
Add bulk_products and overridable to skip_authorization_check so these endpoints work with AMS
2019-07-31 12:18:27 +01:00
luisramos0
18974c68e1
Remove orphan price check from price model
...
This is a quick fix. This check is breaking product deletion in some situations and orphan Prices are not really a problem in the DB
2019-07-31 11:24:55 +01:00
luisramos0
78ab852141
Make spree/api/products_controller work with AMS
2019-07-31 11:23:43 +01:00
luisramos0
4497173213
Adapt spree/api/products_controller_spec to AMS serializer
2019-07-31 11:23:18 +01:00
luisramos0
4d74d246e8
Remove spree/api/products_controller index and new actions, not used
2019-07-31 10:32:45 +01:00
luisramos0
cc51537e93
Convert spree/api/products_controller from rabl to ams
2019-07-31 09:50:34 +01:00
luisramos0
07aececdcf
Remove unused route api/products managed
2019-07-31 09:50:31 +01:00
luisramos0
c3fbf9cdf9
Remove unused pagination from index and respective specs, fix spec for search by sku by adding sku to the serializer and adapt a few specs to pass with AMS attrivbutes,
2019-07-31 09:40:19 +01:00
luisramos0
180598c603
Convert spree/api/variants_controller to AMS by changing base_controller, using render json instad of respond with, deleting rabl templates and adapting specs
...
Delete unused pagination spec
2019-07-31 09:40:19 +01:00
luisramos0
69a5527e24
Update/regenarate .rubocop_todo.yml
2019-07-31 09:36:48 +01:00
luisramos0
e4a6b3880f
Fix some more simple rubocop issues
2019-07-31 09:36:48 +01:00
luisramos0
96ce4deb45
Transpec spec/support/api_helper.rb
2019-07-31 09:36:48 +01:00
luisramos0
a3c179bd3f
Fix some more simple rubocop issues
2019-07-31 09:36:48 +01:00
luisramos0
a57504ba1f
Bring api_helper.image from spree_api to support spree/api/products_controller_spec
2019-07-31 09:36:48 +01:00
luisramos0
25451eed6b
Bring api spec helpers from spree_api into ofn/api_helper
2019-07-31 09:36:48 +01:00
luisramos0
50765563f8
Bring spree/api_helpers from spree_api
2019-07-31 09:35:46 +01:00
luisramos0
2ae75ce13e
Add ControllerSetup from spree_api as it is used in spree/api/base_controller
2019-07-31 09:35:46 +01:00
luisramos0
18aa16650d
Remove dependency to Spree::ApiConfiguration, overall requires_authentication? is true, exceptions will be endpoint specific
2019-07-31 09:35:46 +01:00
luisramos0
314ed50e0f
Fix a rubocop issue in spree/api/products_controller
2019-07-31 09:34:20 +01:00
luisramos0
7346a49982
Move routes in ofn api namespace to separate routes file
2019-07-31 09:34:20 +01:00
luisramos0
5182286218
Add necessary spree api routes related to api keys for users and bring respective implementations from spree_api
2019-07-31 09:34:20 +01:00
luisramos0
a267848394
Remove unused api routes from views/spree/admin/shared/routes view
2019-07-31 09:32:33 +01:00
luisramos0
104bd31f9b
Add necessary spree api routes: taxons, variants and shipments
2019-07-31 09:32:33 +01:00
luisramos0
8bc9985edb
Transpec and fix rubocop issues in spree/api/variants_controller_spec
2019-07-31 09:32:33 +01:00
luisramos0
6dfc927730
Make spree/api/variant_controllers_spec pass
2019-07-31 09:32:33 +01:00
luisramos0
3771e26eba
Bring tests from spree/api/variants_controller_spec from spree_api
2019-07-31 09:32:33 +01:00
luisramos0
fd21d35aee
Transpec and fix rubocop issues in spree/api/shipments_controller_spec
2019-07-31 09:32:33 +01:00
luisramos0
1417b924d2
Bring and adapt tests from spree/api/shipments_controller_spec and mix them with exiting tests in OFN
2019-07-31 09:32:33 +01:00
luisramos0
2912c1b87d
Transpec and fix rubocop issues in spree/api/product_controller_spec
2019-07-31 09:32:33 +01:00
luisramos0
e746a0db7d
Bring tests from spree/api/products_controller_spec and add them to existing ones on the ofn side
...
Adapt these tests to have a green build
2019-07-31 09:32:33 +01:00
luisramos0
84a2886003
Improve auth code in spree/api/taxons_controller_spec
2019-07-31 09:32:33 +01:00
luisramos0
c668677b8a
Bring spree/api/taxons_controller_spec from spree_api, adapt it, transpec it and fix rubocop issues
2019-07-31 09:32:33 +01:00
luisramos0
2490cbfccb
Transpec and fix rubocop issues in spree/api/base_controller_spec
2019-07-31 09:32:33 +01:00
luisramos0
20a46a791c
Bring and adapt spree/api/base_controller_spec from spree_api
2019-07-31 09:32:33 +01:00
luisramos0
0e4fe08ac4
Fix logical problem in spree/api/base_controller and in spree/checkout_controller
...
See this stack overflow post for more info: https://stackoverflow.com/questions/39629976/ruby-return-vs-and-return
2019-07-31 09:32:33 +01:00
luisramos0
cf0f716534
Fix easy rubocop issues in spree/api/taxons_controller
2019-07-31 09:32:33 +01:00
luisramos0
b70cfa5968
Bring spree/api/taxons controller from spree_api as it is needed in OFN admin
2019-07-31 09:32:33 +01:00
luisramos0
f77beb50ff
Fix class scope in spree/api/products_controller, should not use Spree namespace here
...
Also, add missing dependency to spree/admin/products_controller_decorator
2019-07-31 09:32:33 +01:00
luisramos0
a941280982
Fix easy rubocop issues in spree/api/base_controller
2019-07-31 09:32:33 +01:00
luisramos0
9d40ee49e6
Bring spree/api/base_controller from spree_api
2019-07-31 09:32:33 +01:00
luisramos0
6abbdecb97
Fix the easy rubocop issues in the new spree api controllers
2019-07-31 09:32:33 +01:00
luisramos0
660ce92c27
Merge spree api controllers and its decorators
2019-07-31 09:32:33 +01:00
luisramos0
c5bcef6ae4
Delete unused spree/api/line_items_controller_decorator.rb
2019-07-31 09:32:33 +01:00
luisramos0
d26a0b6b73
Bring from spree_api the api controllers that are overriden in OFN so that we can merge the original and the override afterwards
2019-07-31 09:32:33 +01:00
luisramos0
9400516b56
Fix broken (was always green) bulk_product_update_spec updating image spec where the old src url was not stored and the expect command was wrong with !=
2019-07-30 20:37:26 +01:00
luisramos0
6ebfb02d0e
Update ImageSerializer with missing image size urls: mini/thumb_url, product/image_url that is used in the product image modal
2019-07-30 20:15:21 +01:00
Luis Ramos
75c7e0b939
Merge pull request #4089 from luisramos0/undeface-fix
...
Add doctype declaration in layouts/admin view
2019-07-30 19:29:17 +01:00
Luis Ramos
62eb2bba13
Merge pull request #4059 from luisramos0/kill_rabl
...
Convert 2 rabl templates to AMS and remove a few unused ones
2019-07-30 19:28:21 +01:00
Luis Ramos
3fa9e857a8
Merge pull request #4067 from luisramos0/oc_icon
...
Add icon to OC menu entry
2019-07-30 14:08:08 +01:00
luisramos0
11a77043eb
Switch from Spree::Api::BaseController to Api::BaseController so that AMS is activated
2019-07-30 12:20:14 +01:00
luisramos0
58b43c7bc9
Remove update_product_image.v1.rabl and switch controller from respond_with to render json to switch from rabl to AMS
2019-07-30 12:19:42 +01:00
dependabot-preview[bot]
7da10db055
Bump redcarpet from 3.4.0 to 3.5.0
...
Bumps [redcarpet](https://github.com/vmg/redcarpet ) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/vmg/redcarpet/releases )
- [Changelog](https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vmg/redcarpet/compare/v3.4.0...v3.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-29 19:16:07 +00:00
luisramos0
be41271038
Make spelling coherent, as we have serializers with Z we get rid of the few serialisers with S we have
2019-07-29 19:57:12 +01:00
luisramos0
04e13e1136
Change css styling from id to class to make rubocop happy. Keeping id name as it may be needed in spree autocomplete css or js code
2019-07-29 19:46:12 +01:00
luisramos0
8868b7eb12
Fix rubocop issue: use nested class/module definition
2019-07-29 19:05:39 +01:00
Pau Perez
c85d00fcb8
Remove N+1 while fetching distributors of OCs
...
What used to be done as
```sql
SELECT "order_cycles".* FROM "order_cycles"
WHERE (order_cycles.orders_open_at <= '2019-07-29 17:45:20.137294'
AND order_cycles.orders_close_at >= '2019-07-29 17:45:20.137333')
SELECT DISTINCT "enterprises".* FROM "enterprises"
INNER JOIN "exchanges" ON "enterprises"."id" = "exchanges"."receiver_id"
WHERE "exchanges"."order_cycle_id" = 1
AND "exchanges"."incoming" = 'f'
(...)
SELECT DISTINCT "enterprises".* FROM "enterprises"
INNER JOIN "exchanges" ON "enterprises"."id" = "exchanges"."receiver_id"
WHERE "exchanges"."order_cycle_id" = 4
AND "exchanges"."incoming" = 'f'
```
it became
```sql
SELECT "order_cycles".* FROM "order_cycles"
WHERE (order_cycles.orders_open_at <= '2019-07-29 17:45:20.137294'
AND order_cycles.orders_close_at >= '2019-07-29 17:45:20.137333')
SELECT "exchanges".* FROM "exchanges"
WHERE "exchanges"."incoming" = 'f'
AND "exchanges"."order_cycle_id" IN (1, 2, 3, 4)
SELECT "enterprises".* FROM "enterprises"
WHERE "enterprises"."id" IN (3, 4, 5, 6)
```
I haven't got any perf numbers yet but each of the N+1 queries took as
long as the single `enterprises` query on my dev machine.
This should have a noticeable perf impact since the changed method
belongs to the `BaseController` seems to be executed in all HTML
requests as it gets called by
```ruby
before_filter :warn_invalid_order_cycles, if: :html_request?
```
2019-07-29 20:02:47 +02:00
luisramos0
2c6dab9c85
Add spec for Api::OrderCycleSerializer
2019-07-29 18:56:49 +01:00
Matt-Yorkley
7b2a146404
Move CSS rule to SCSS and remove broken css file reference
2019-07-29 18:16:36 +01:00
luisramos0
c45194473b
Add spec to cover inject_current_order_cycle
2019-07-29 18:14:00 +01:00
luisramos0
3c0e6eeee2
Make inject_current_order_cycle render {} instad of null if current_order_cycle is null
2019-07-29 18:13:29 +01:00
luisramos0
ca5a5bf301
Convert oc.rabl to oc serializer and use it in both haml file and controller
2019-07-29 18:13:29 +01:00
luisramos0
ddf68444fb
Move head scripts from admin layout to haed partial
2019-07-29 17:04:57 +01:00
luisramos0
4867649fc9
Remove dead code related to unused variable in spree: expand_variants
2019-07-29 17:04:57 +01:00
Pau Pérez Fabregat
35841066d1
Merge pull request #4086 from openfoodfoundation/transifex
...
Transifex
2019-07-29 17:33:19 +02:00
luisramos0
9bc81f236c
Add doctype declaration as it is defined in spree layouts/admin so that html5 mode is enabled, otherwise html 4 mode is used by browsers and the observed layout problems happen
2019-07-29 13:46:35 +01:00
luisramos0
e26a54d897
Fix indentation problem in layouts/admin view
...
We move most entries inside wrapper as it should be and the last ones "admin_footer_scripts" and Spree.api_key inside the body tag as it should be
2019-07-29 13:33:11 +01:00
Transifex-Openfoodnetwork
ed1d637eb5
Updating translations for config/locales/es.yml
2019-07-29 19:06:20 +10:00
Transifex-Openfoodnetwork
831284c5c8
Updating translations for config/locales/es.yml
2019-07-29 19:03:13 +10:00
Transifex-Openfoodnetwork
e45b8f6981
Updating translations for config/locales/ca.yml
2019-07-29 19:02:24 +10:00
Transifex-Openfoodnetwork
d0f8f985fb
Updating translations for config/locales/es.yml
2019-07-29 19:00:02 +10:00
Transifex-Openfoodnetwork
33eec61af8
Updating translations for config/locales/ca.yml
2019-07-29 18:59:14 +10:00
Transifex-Openfoodnetwork
00c324ae45
Updating translations for config/locales/fr.yml
2019-07-29 18:01:09 +10:00
Transifex-Openfoodnetwork
12a016d31d
Updating translations for config/locales/fr.yml
2019-07-29 17:57:59 +10:00
dependabot-preview[bot]
8c7a7348f4
Bump devise-encryptable from 0.1.2 to 0.2.0
...
Bumps [devise-encryptable](https://github.com/plataformatec/devise-encryptable ) from 0.1.2 to 0.2.0.
- [Release notes](https://github.com/plataformatec/devise-encryptable/releases )
- [Changelog](https://github.com/plataformatec/devise-encryptable/blob/master/Changelog.md )
- [Commits](https://github.com/plataformatec/devise-encryptable/compare/v0.1.2...v0.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-26 23:12:41 +00:00
Luis Ramos
af50bde088
Merge pull request #3786 from ja9-look/feature/sticky_header_on_scroll_mobile
...
sticky header for mobile
2019-07-26 11:22:33 +01:00
Luis Ramos
340b92e580
Merge pull request #3700 from luisramos0/2-0-without-auth-devise
...
Remove dependency to spree_auth_devise
2019-07-26 10:57:38 +01:00
luisramos0
f64653db14
Add icon to OC menu entry
2019-07-26 10:52:31 +01:00
Maikel
e6ef661f0d
Merge pull request #4066 from luisramos0/reorg_spec_serializers
...
Organizing spec/serializers - put each file in the correct place
2019-07-26 16:23:23 +10:00
Hugo Daniel
3c2b6f4ed1
Remove data-hooks
2019-07-25 14:38:09 +02:00
Hugo Daniel
ec6f6056a8
Remove data-hooks
2019-07-25 14:34:06 +02:00
Hugo Daniel
6a621f47aa
Remove data-hooks
2019-07-25 14:31:07 +02:00
Hugo Daniel
c464b21d76
Remove data-hooks
2019-07-25 14:27:53 +02:00
Hugo Daniel
c83d249147
Impor missing partials from spree to ofn and convert to haml
2019-07-25 14:23:24 +02:00
Kristina Lim
dae23d3c3b
Remove unused inclusion of $window in OffcanvasCtrl
2019-07-25 20:22:51 +08:00
Hugo Daniel
aae5ae9f1e
De-deface payments/new
2019-07-25 13:27:41 +02:00
Hugo Daniel
888e0e0bb4
Convert erb partials to haml
2019-07-25 13:22:55 +02:00
Hugo Daniel
a0b0fb05a6
Import payments/new from spree_backend to ofn
2019-07-25 13:22:32 +02:00
Hugo Daniel
a11562e4dd
Fix incorrect indentation in variants table
2019-07-25 12:05:50 +02:00
Hugo Daniel
2d872c25bf
Use Haml javascript tag to make autocomplete work
2019-07-25 11:20:51 +02:00
Hugo Daniel
986837d601
Import variants/_form.html.erb from spree_backend to ofn and de-deface it
2019-07-25 11:07:35 +02:00
Kristina Lim
def2693afc
Move offcanvas JS to Angular controller
2019-07-25 17:01:46 +08:00
Luis Ramos
55f26f0a3d
Merge pull request #4043 from luisramos0/bring_shipment
...
Bring spree/admin/orders/shipment and shipment_manifest partials from spree_backend and fix an authorization bug
2019-07-24 21:59:47 +01:00
Luis Ramos
7245d1eff4
Merge pull request #4049 from luisramos0/deface_admin_orders
...
De-deface admin orders adjustments page and customer details page
2019-07-24 21:59:08 +01:00
Hugo Daniel
353d6fbc5f
Import variants/index from spree_backend to ofn and convert to Haml
2019-07-24 16:57:11 +02:00
Hugo Daniel
87ef0215b8
De-deface payment_methods/index
2019-07-24 14:49:29 +02:00
Hugo Daniel
4b6a02cb92
Convert payment_methods/index from ERB to Haml
2019-07-24 14:39:59 +02:00
Hugo Daniel
196a301133
Import payment_methods/index.html.erb from spree_backend to ofn
2019-07-24 14:38:20 +02:00
Hugo Daniel
0a88738faa
Replace old ruby syntax with new
2019-07-24 14:37:00 +02:00
Hugo Daniel
4d6af57f79
De-deface product_properties/index
2019-07-24 13:17:45 +02:00
Hugo Daniel
110fd3ecdf
Convert erb to haml
2019-07-24 13:12:58 +02:00
Hugo Daniel
1cb065f829
Import product_properties/index.html.erb from spree_backend to ofn
2019-07-24 13:09:04 +02:00
Hugo Daniel
1cfa499b0e
De-deface _product_propery_fields
2019-07-24 13:01:50 +02:00
luisramos0
b9b8bc70dd
Remove stock location name from shipment header in the order edit page
2019-07-24 11:50:17 +01:00
Hugo Daniel
3fc0d4a666
Convert _product_properties_fields from ERB to Haml
2019-07-24 12:40:24 +02:00
Hugo Daniel
de6c96d138
Import product_properties/_product_properties_fields.html.erb from Spree to OFN
2019-07-24 12:38:29 +02:00
Kristina Lim
d42da8737e
Improve readability of selectors in page alert JS directive
2019-07-24 12:44:42 +08:00
Kristina Lim
6419edcb1f
Integrate styles/animations for page alert, top bar, tab bar, off canvas
2019-07-24 12:44:42 +08:00
Kristina Lim
fca82375e8
Render home page alert as :page_alert outside main content
2019-07-24 12:44:42 +08:00
Kristina Lim
ca0f746cf1
Fix animation and layout for offcanvas menu
...
Uses strategy from this forum comment:
http://foundation.zurb.com/forum/posts/547#comment_8840
2019-07-24 12:43:44 +08:00
Kristina Lim
a93cf46f50
Fix syntax of existing animations for offcanvas
2019-07-24 12:37:42 +08:00
luisramos0
ffb8edef0b
Fix rubocop css issues
2019-07-23 22:37:10 +01:00
luisramos0
74a030f6db
Organizing spec/serializers - put each file in the correct place acccording to its namespace
2019-07-23 22:17:28 +01:00
luisramos0
7a8b5e89be
Add specs to cover the most important new fields in api/admin/variant_serializer
2019-07-23 22:11:00 +01:00
luisramos0
90690cd238
Move api/admin/variant_serializer_spec to the correct folder under /spec
2019-07-23 22:03:40 +01:00
luisramos0
90c621ac07
Improve translations, css and add button aligment in subscriptions_line_items variant autocomplete
2019-07-23 21:38:29 +01:00
luisramos0
2d5eccbf97
Add :in_stock, :stock_location_id, :stock_location_name to admin variant serializer, these are needed for the variant_autocomplete js code from spree
2019-07-23 21:38:29 +01:00
luisramos0
7e6259da31
Replace admin/variants/search rabl template with existing admin variant serializer with a few added attributes
...
This commit fixes a bug as the image of the variatn was not being rendered, we need to fetch the image of the product, not the image of the variant.
2019-07-23 21:37:45 +01:00
Luis Ramos
1f75c7e5e4
Merge pull request #4047 from luisramos0/undeface
...
De-deface some admin configuration pages and the general admin layout and menu
2019-07-23 18:36:09 +01:00
luisramos0
11974689ef
Remove dead code under views/spree/shared
2019-07-23 16:42:00 +01:00
luisramos0
a1e6e4c38f
Fix rubocop issues
2019-07-23 14:35:24 +01:00
Luis Ramos
77fb73f802
Merge pull request #4065 from coopdevs/get-latest-spree-revision
...
Brings in the latest Spree fork's Git commit
2019-07-23 14:28:49 +01:00
Pau Perez
9f7376a5ae
Brings in the latest Spree fork's Git commit
...
This successfully closes #3903 by bringing in the changes done in
https://github.com/openfoodfoundation/spree/pull/41 .
2019-07-23 14:56:33 +02:00
luisramos0
5739a82c19
Remove unused admin variants search rabl template
2019-07-23 12:30:00 +01:00
Luis Ramos
eae373ef4b
Merge pull request #4061 from openfoodfoundation/revert-3938-get-last-spree-fork-patch
...
Revert "Handle soft deleted variants in order edit"
2019-07-22 21:06:10 +01:00
Luis Ramos
465332d5f9
Revert "Handle soft deleted variants in order edit"
2019-07-22 21:05:41 +01:00
Luis Ramos
e98b89625f
Merge pull request #3938 from openfoodfoundation/get-last-spree-fork-patch
...
Handle soft deleted variants in order edit
2019-07-22 21:05:12 +01:00
luisramos0
cf61254c9e
Remove unnecesary rabl template
2019-07-22 18:42:20 +01:00
luisramos0
1d92d6cc33
Remove unused api endpoint order_cycles and also action enterprises/managed and respective views
2019-07-22 17:35:41 +01:00
luisramos0
6b32764c99
Remove unused taxon.rabl from views/json
2019-07-22 16:29:54 +01:00
Pau Perez
be4fbc4d23
Update Gemfile to get spree from a feature branch
...
This allows us to test
https://github.com/openfoodfoundation/spree/pull/41 . If it passes
testing I will then revert it back to the `2-0-4-stable` branch but
updating the target commit in the Gemfile.lock.
2019-07-22 15:40:31 +02:00
luisramos0
ea72a10b9a
Remove unused rabl files from views/json
2019-07-22 12:14:10 +01:00
luisramos0
9b567a6710
Remove injection_json that renders json partials, we only use ams serializers now, not rabl partials
2019-07-21 23:55:59 +01:00
luisramos0
a8ce31fa90
Replace views/json/_flash.rabl with an ams injector with serializer
2019-07-21 22:56:15 +01:00
luisramos0
4c964fea0d
Replace views/json/_current_user.rabl with an ams injector with serializer
2019-07-21 22:48:36 +01:00
luisramos0
6d7c41c04b
Bring db/default/users from spree_auth_devise, this is necessary to create the first user in the DB
2019-07-20 20:48:49 +01:00
Luis Ramos
a6a695660f
Merge pull request #4002 from luisramos0/more_rails4
...
Adapting queries in permissions to Rails 4
2019-07-19 15:17:01 +01:00
Luis Ramos
0058ef5e04
Merge pull request #4048 from idanceinbetween/4034
...
Add grey line below nav bar, change logo img max height 44px
2019-07-19 12:13:14 +01:00
Luis Ramos
4831bae9cb
Merge pull request #3953 from mkllnk/3727-first-credit-card-default
...
First stored credit card becomes default again
2019-07-19 12:12:09 +01:00
Luis Ramos
f7679780de
Merge pull request #4032 from luisramos0/subs_oc_date_issue
...
3544 Add date format to moment date conversion
2019-07-18 19:52:49 +01:00
luisramos0
f2ac354e00
Make features/admin/orders_spec test a bit more reliable by expecting element to be there before using it
2019-07-18 14:29:38 +01:00
Maikel
88ffa46ce7
Merge pull request #4045 from openfoodfoundation/transifex
...
Transifex
2019-07-18 16:35:41 +10:00
Maikel
869431c68d
Merge pull request #3926 from mkllnk/report-missing-payments
...
Add rake task to report lost payments
2019-07-18 15:01:14 +10:00
luisramos0
3d6fd10e59
Add warning about creation of orders when unpausing a subscription
2019-07-17 12:14:36 +01:00
luisramos0
81482683cf
Extract method in subs controller
2019-07-17 12:08:51 +01:00
luisramos0
57f1742f24
Save subscription form on subs unpause so that proxy orders and orders are synced
2019-07-17 12:08:48 +01:00
Maikel
a1f8530489
Merge pull request #3962 from luisramos0/first_view_spec
...
First 2 view specs in OFN
2019-07-17 10:57:58 +10:00
luisramos0
a75a0da981
Remove unused deface in spree/admin/orders/show, this action doesnt exist in ofn v2
2019-07-16 21:12:48 +01:00
luisramos0
5744240f91
Move customer_details/_form defaces to the view
2019-07-16 21:12:09 +01:00
luisramos0
873c56a642
Move customer_details/edit/replace_customer_search deface to view
2019-07-16 21:09:48 +01:00
luisramos0
f53a75660f
Convert spree/admin/orders/customer_details view from erb to haml
2019-07-16 21:05:19 +01:00
luisramos0
50dcbe0b57
Bring spree/admin/order/customer_details from spree_backend
2019-07-16 21:03:35 +01:00
luisramos0
f9861fee79
De-deface spree/admin/adjustments/_adjustments_table by moving deface content to the view
2019-07-16 21:01:08 +01:00
luisramos0
d8ae97f923
Move spree/admin/adjustments/_form/add_tax_rate deface to view
2019-07-16 20:53:24 +01:00
luisramos0
9f5db217fe
Convert spree/admin/adjustments views from erb to haml
2019-07-16 20:51:55 +01:00
luisramos0
c1c5dcac09
Bring spree/admin/adjustments pages from spree_backend
2019-07-16 20:51:55 +01:00
luisramos0
6064f096a7
Fix a pre-existing problem in orders_tab by moving the links in to the li elements
2019-07-16 20:16:32 +01:00
luisramos0
a62fa755f5
Remove page_title_classes as it is breaking the rendering of the classes attribute and it is no longer used
2019-07-16 20:16:32 +01:00
luisramos0
fa25991f0f
Fix problem in previous de-deface, move sections around in general settings page to keep order. No changes in code, just moving
2019-07-16 20:16:32 +01:00
luisramos0
6f2be1dfa6
Fix issue in layouts/admin view, make classes compute correctly
2019-07-16 20:16:32 +01:00
luisramos0
c81a9fd032
Fix error in js tag in head
2019-07-16 20:16:32 +01:00
luisramos0
665d0cc86b
Fix error related to missing _hamlout method by replacing code with standard haml
2019-07-16 20:16:32 +01:00
luisramos0
a34d8a3f20
Revert "Move app_wrapper deface to spree/layouts/admin view"
...
This reverts commit bb18f6ecf3c1d0ecf7c010623215d161a6102f2b.
2019-07-16 20:16:32 +01:00
luisramos0
6e35701dd6
Remove unused add_enterprise_fees_to_admin_configurations_menu deface, this menu entry is already in the view
2019-07-16 20:16:32 +01:00
luisramos0
9991458d2a
Remove spree/admin/shared/_order_details defaces, these are only used in admin/order/show which is a view that is not used in ofn anymore, only admin/order/edit is used
2019-07-16 20:16:32 +01:00
luisramos0
a843fd73b7
Remove admin/shared/_order_tabs/add_customer_name, this is already in the order tabs view
2019-07-16 20:16:32 +01:00
luisramos0
9765b1e908
Move admin/shared/_head/replace_spree_title deface to head view
2019-07-16 20:16:32 +01:00
luisramos0
5ccadc1f7d
Convert spree/admin/shared/_head view from erb to haml
2019-07-16 20:16:32 +01:00
luisramos0
539805e2c2
Bring spree/admin/shared/head partial from spree_backend
2019-07-16 20:16:32 +01:00
luisramos0
fac64ef5bf
Remove layouts/spree_application/inside_head deface, this view is in spree_frontend which is not used in ofn anymore
2019-07-16 20:16:32 +01:00
luisramos0
a17a0a62bc
Move spree/layouts/bare_admin/add_login_nav deface to layout/bare_admin view
2019-07-16 20:16:32 +01:00
luisramos0
1e91de106f
Move admin html head deface to layout admin view and remove repeated (in shared/head partial) content type tag
2019-07-16 20:16:32 +01:00
luisramos0
73252132a6
Move add_i18n_script deface to layout/admin view
2019-07-16 20:16:32 +01:00
luisramos0
e3c383c61c
Convert spree/admin/shared/_tabs.html from erb to haml and move menu entries from layouts/admin to the tabs view
2019-07-16 20:16:32 +01:00
luisramos0
aafb134be7
Move spree/layouts/admin/ tabs deface to spree/layout/admin view
2019-07-16 20:16:32 +01:00
luisramos0
70a1996435
Move add_currency_config deface to spree/layout/admin view
2019-07-16 20:16:31 +01:00
luisramos0
1712cb2617
Move app_wrapper deface to spree/layouts/admin view
...
In admin layout, only adds a div after the body tag.
2019-07-16 20:16:31 +01:00
luisramos0
25df057d05
Move spree/layouts/admin/add_analytics deface to spree/layouts/admin view
2019-07-16 20:16:31 +01:00
luisramos0
24a9991162
Convert views/spree/layouts/admin.html from erb to haml
2019-07-16 20:16:31 +01:00
luisramos0
156ff2da89
Bring spree/layouts/admin from spree_backend to de-deface it
2019-07-16 20:16:31 +01:00
luisramos0
e36b4ed01a
Move temp_controller_list deface to shipping_categories index view
2019-07-16 20:16:23 +01:00
idanceinbetween
41b775b173
Remove multiline
2019-07-16 20:10:18 +01:00
idanceinbetween
35570feba0
Comment out new changes
2019-07-16 20:04:50 +01:00
idanceinbetween
1d8cfe59a2
Change hex value to variable
2019-07-16 19:37:08 +01:00
idanceinbetween
abd3efe82a
Replace lightgray to hex
2019-07-16 19:32:19 +01:00
idanceinbetween
389b53cb71
Add grey line below nav bar, change logo img max height 44px
2019-07-16 19:14:10 +01:00
luisramos0
4f60273198
Move temperature_controlled_form_element deface to shipping_categories form view
2019-07-16 14:50:16 +01:00
luisramos0
856fa8685a
Convert spree/admin/shipping_categories views from erb to haml
2019-07-16 14:48:47 +01:00
luisramos0
9ac4c0ba30
Bring spree/admin/shipping categories from spree_backend so we can de-deface it
2019-07-16 14:46:26 +01:00
luisramos0
2709f237f5
Move image_format deface to image settings view
2019-07-16 14:44:38 +01:00
luisramos0
9db4edcd0d
Convert spree/admin/image_settings/edit.html from erb to haml
2019-07-16 14:43:20 +01:00
luisramos0
22c9f33f4c
Bring image_settings view from spree_backend
2019-07-16 14:39:14 +01:00
luisramos0
24ea2a4398
Move number_localization deface to general settings view
2019-07-16 14:28:47 +01:00
luisramos0
8178f5388c
Move legal settings deface to general settings view
2019-07-16 14:27:32 +01:00
luisramos0
c0c5e9d7dd
Move embedded_shopfronts deface to general settings view
2019-07-16 14:26:33 +01:00
luisramos0
19f8f5c6fa
Convert general_settings/edit.html from erb to haml
2019-07-16 14:15:51 +01:00
luisramos0
83a306c31b
Convert class attributes to . notation in haml
2019-07-16 14:09:48 +01:00
luisramos0
d6020cdb6f
Bring general_settings/edit.html.erb from spree_backend to de-deface it
2019-07-16 13:57:35 +01:00
luisramos0
3b467dbae8
Adapt line_item_syncer to the case where item is not added to the completed order because of insufficient stock and the subscription quantity is updated for that item afterwards
2019-07-16 12:08:08 +01:00
Kristina Lim
77c78f35d3
Update all locales with the latest Transifex translations
2019-07-16 18:53:24 +08:00
luisramos0
306390440a
Revert "Swith line_item_syncer.create_new_items from deleting line item in the case of stock issue, to simply set the quantity to zero. This makes things easier later as the line item is already present if the user tries to change quantity of the subscription_line_item"
...
This reverts commit d153e58933 .
2019-07-16 11:00:21 +01:00
luisramos0
267131626e
Fix typo and add test case to cover out of stock case
2019-07-16 10:58:25 +01:00
Luis Ramos
2280b15664
Merge pull request #4035 from kristinalim/fix/4033-remove_line_item_adjustments_when_line_item_removed
...
4033 Remove line item adjustments when line item removed
2019-07-16 09:54:33 +01:00
Transifex-Openfoodnetwork
f843a0b4d9
Updating translations for config/locales/en_AU.yml
2019-07-16 17:08:24 +10:00
Transifex-Openfoodnetwork
965a274332
Updating translations for config/locales/en_AU.yml
2019-07-16 17:05:40 +10:00
Transifex-Openfoodnetwork
cb2a842746
Updating translations for config/locales/en_AU.yml
2019-07-16 17:05:17 +10:00
luisramos0
a6655623d0
New admin orders edit view spec and workaround (current_ability) to make view specs work
2019-07-15 21:59:36 +01:00
luisramos0
2a2d05ad39
First view spec in OFN testing the print invoice button display in the orders list page
2019-07-15 21:59:36 +01:00
luisramos0
e8127d81dc
Change how we display variant name in order edit page, use VariantAndLineItemNaming helper method
2019-07-15 18:37:19 +01:00
luisramos0
cd7906a57b
Move translations from Spree.t to root and add them to en.yml
2019-07-15 17:48:10 +01:00
luisramos0
02c573f146
Remove logic that hides item split, because the partial is now in the ofn codebase, we can now simply remove the split-item button
2019-07-15 17:11:41 +01:00
luisramos0
112017a158
Remove variants/split partial from orders/shipments partial
...
In OFN we have one shipment per order so it doesnt make sense to split items between shipments
2019-07-15 17:07:33 +01:00
luisramos0
4a07d67037
Convert spree/admin/orders/_shipment partial from erb to haml
2019-07-15 16:42:45 +01:00
luisramos0
54156dfd32
Convert spree/admin/orders/_shipment_manifest partial from erb to haml
2019-07-15 16:42:19 +01:00
luisramos0
ee20d35487
Fix authorization issue in shipment actions, authorization was being done on a struct (shipment manifest), now it's done on the shipment itself
...
This is similar to https://github.com/spree/spree/pull/5624
2019-07-15 15:38:46 +01:00
luisramos0
be18244abc
Bring views/spree/admin/orders/_shipment and views/spree/admin/orders/_shipment_manifest from spree backend
2019-07-15 15:37:24 +01:00
luisramos0
02099ebdae
Remove details about stock in line_item_syncer so that we avoid confusing the user with stock numbers, this way the user will know what is the problem and can check stock levels and the order for more details
2019-07-14 21:40:57 +01:00
luisramos0
d153e58933
Swith line_item_syncer.create_new_items from deleting line item in the case of stock issue, to simply set the quantity to zero. This makes things easier later as the line item is already present if the user tries to change quantity of the subscription_line_item
2019-07-14 20:59:42 +01:00
luisramos0
c2a59a374c
Fix rubocop issues by simplifying method
2019-07-14 17:21:15 +01:00
luisramos0
2a1011921b
Reuse line_item_syncer.add_order_update_issue in line_item_syncer.update_item_quantities to add stock info to the update_quantity order issues
2019-07-14 16:43:46 +01:00
luisramos0
df27ee0d3e
Refactor line_item_syncer.add_order_update_issue out of line_item_syncer.create_new_items
2019-07-14 16:06:09 +01:00
luisramos0
c2851015ce
Fix deleting created item (destroy doesnt work before save) and add order_update_issue with message so that user can understand what happened
2019-07-14 15:58:00 +01:00
luisramos0
d0c246c345
Fix some rubocop issues
2019-07-14 12:28:32 +01:00
Kristina Lim
e58546a412
Move offcanvas menu content to separate partial
2019-07-14 13:52:47 +08:00
luisramos0
6aed9ba549
Make line_item_syncer delete new line items if stock is insufficient
2019-07-13 22:57:13 +01:00
luisramos0
4f2bc33ec3
Change line_item_syncer to verify stock if order is already complete, this will happen for orders in the current OC when a subscription is changed
2019-07-13 20:56:34 +01:00
luisramos0
0f3404ca27
Rename order_syncer.future_and_undated_orders to explicitly include completed orders from current OC: orders_in_order_cycles_not_closed
2019-07-12 22:20:09 +01:00
Kristina Lim
2c279fd02d
Remove line item adjustments if line item deleted
2019-07-13 03:58:01 +10:00
Kristina Lim
8a048cc155
Add proof line item adjustments remain after line item removal
2019-07-13 01:43:07 +08:00
Luis Ramos
b3c378e8c1
Merge pull request #4029 from Matt-Yorkley/js_render_blocking2
...
Js render blocking 2
2019-07-12 16:34:31 +01:00
Luis Ramos
39475be792
Merge pull request #4030 from Matt-Yorkley/line_item_errors
...
LineItems can always access soft-deleted variants
2019-07-12 16:33:36 +01:00
luisramos0
9e2e460ac5
Add date format to moment date conversion. This conversion was not working on firefox
2019-07-12 12:01:18 +01:00
luisramos0
18006ea9c8
Change devise config to speed up password encryption in tests
2019-07-12 10:12:53 +01:00
luisramos0
71b648e9fa
Add some tests to features/admin/users_spec from spree_auth_devise
2019-07-12 10:02:40 +01:00
luisramos0
eacd76bfa4
Add spec to features/admin/products_spec from spre_auth_devise
2019-07-11 19:47:17 +01:00
luisramos0
791ff842aa
Add some tests to models/spree/user_spec from spre_auth_devise
2019-07-11 19:39:31 +01:00
luisramos0
ac0123734a
Add some tests from spree/users_controller_spec from spree_auth_devise
2019-07-11 18:33:18 +01:00
luisramos0
7cab99efdf
Run transpec on users_controller
2019-07-11 18:07:23 +01:00
luisramos0
5378bb7b34
Add adapted version of spree/admin/users_controller_spec from spree_auth_devise
2019-07-11 17:45:56 +01:00
luisramos0
942824cd74
Improve comments in UserMailer
2019-07-11 16:37:30 +01:00
Pau Pérez Fabregat
bdeb56bfaf
Merge pull request #4028 from openfoodfoundation/transifex
...
Transifex
2019-07-11 17:28:38 +02:00
Matt-Yorkley
fb4e573cfa
Add a soft-deleted test in line_item_spec
2019-07-11 16:07:30 +01:00
Transifex-Openfoodnetwork
e65df31bc3
Updating translations for config/locales/nl_BE.yml
2019-07-12 00:29:50 +10:00
Transifex-Openfoodnetwork
ce1ac57522
Updating translations for config/locales/de_DE.yml
2019-07-11 23:53:17 +10:00
Transifex-Openfoodnetwork
09ff57d462
Updating translations for config/locales/en_BE.yml
2019-07-11 23:50:31 +10:00
Transifex-Openfoodnetwork
542cf0cf4f
Updating translations for config/locales/fr_BE.yml
2019-07-11 23:43:29 +10:00
Transifex-Openfoodnetwork
f4113745ce
Updating translations for config/locales/fr.yml
2019-07-11 23:11:32 +10:00
Transifex-Openfoodnetwork
6d197c53e0
Updating translations for config/locales/en_ZA.yml
2019-07-11 21:40:38 +10:00
Matt-Yorkley
b2c6e6271c
LineItems can always access soft-deleted variants
2019-07-11 11:33:34 +01:00
Luis Ramos
cdd36eeefc
Merge pull request #3674 from Matt-Yorkley/spree2/import_description
...
Allow import to proceed when updating a product and `description` is set
2019-07-10 21:09:30 +01:00
Matt-Yorkley
97148f6f57
Send embedded Stripe javascript to :injection_data
2019-07-10 19:28:20 +01:00
Matt-Yorkley
6219b3f0c3
Revert "Revert "Fix JS render-blocking in Darkswarm""
...
This reverts commit ffeca41e
2019-07-10 17:14:08 +01:00
Transifex-Openfoodnetwork
d66cac7a26
Updating translations for config/locales/ca.yml
2019-07-10 21:20:51 +10:00
Transifex-Openfoodnetwork
07c11b9b1f
Updating translations for config/locales/es.yml
2019-07-10 21:18:28 +10:00
Transifex-Openfoodnetwork
6a232a1f36
Updating translations for config/locales/ca.yml
2019-07-10 21:17:43 +10:00
Maikel
1a61357be8
Merge pull request #4024 from openfoodfoundation/transifex
...
Transifex
2019-07-10 11:17:12 +10:00
Maikel
b2eeb5d687
Merge pull request #4025 from openfoodfoundation/revert-3988-js_render_blocking
...
Revert "Fix JS render-blocking in Darkswarm"
2019-07-10 11:00:17 +10:00
Maikel
ffeca41ef4
Revert "Fix JS render-blocking in Darkswarm"
2019-07-10 10:24:25 +10:00
Transifex-Openfoodnetwork
68c0936766
Updating translations for config/locales/en_GB.yml
2019-07-10 04:39:47 +10:00
Luis Ramos
23b6267e30
Merge pull request #3916 from luisramos0/schedules_of_coordinator
...
OC schedules are now filtered to schedules of OCs with same coordinator
2019-07-09 14:21:34 +01:00
Luis Ramos
6872ccfb72
Merge pull request #3963 from luisramos0/hide_invoices
...
Hide invoices feature
2019-07-09 14:20:50 +01:00
luisramos0
b1b791e4ee
Update all locales with the latest Transifex translations
2019-07-09 14:19:35 +01:00
Luis Ramos
1779b759f7
Merge pull request #4017 from openfoodfoundation/transifex
...
Transifex
2019-07-09 14:15:38 +01:00
Transifex-Openfoodnetwork
3ebbf5a55d
Updating translations for config/locales/fr.yml
2019-07-09 22:42:05 +10:00
Luis Ramos
83ce2ac3dc
Merge pull request #3988 from Matt-Yorkley/js_render_blocking
...
Fix JS render-blocking in Darkswarm
2019-07-09 12:30:30 +01:00
Luis Ramos
aaf850a095
Merge pull request #4010 from luisramos0/fuubar_upgrade
...
Apply 2.1.1 hotfix to master
2019-07-09 12:24:54 +01:00
Luis Ramos
3e9bf8aa1f
Merge pull request #3964 from openfoodfoundation/hand-soft-deleted-products-in-orders-and-fulfillment-report
...
Handle soft deleted products in orders and fulfillment report
2019-07-09 12:19:28 +01:00
luisramos0
95832c96ac
Delete redundant spec, this case is now covered in a view spec
2019-07-09 09:15:38 +01:00
Jon Leighton
4398ea12b8
Convert several fields from string to text
...
See discussion here:
https://github.com/openfoodfoundation/openfoodnetwork/pull/3751#issuecomment-503416955
Fixes #3192 .
I have also done a pass over the schema to identify other fields which
would benefit from being a text rather than a string. However, I ignored
all `spree_*` tables because I didn’t want to mess up the ‘default’
Spree schema.
2019-07-09 13:11:30 +10:00
Luis Ramos
8a700307d2
Merge pull request #3992 from Matt-Yorkley/cart_button_bug
...
Fix display bug in cart button on mobile menu
2019-07-08 18:33:36 +01:00
luisramos0
86accc227e
Convert erb files brought from spree_auth_devise to haml
2019-07-08 18:09:03 +01:00
Luis Ramos
1756ddd0e9
Merge pull request #3989 from Matt-Yorkley/preload_primary_font
...
Preload primary font to speed up page rendering
2019-07-08 17:43:15 +01:00
Luis Ramos
fe71781d70
Merge pull request #3791 from jazzdragon/1766-registration-scroll
...
1766 registration scroll
2019-07-08 15:10:35 +01:00
Luis Ramos
ec65951ef3
Merge pull request #3959 from jonleighton/issue-1848
...
Edit tooltip text to make it readable
2019-07-08 15:09:11 +01:00
luisramos0
1681e8a572
Remove unused auth config
2019-07-08 14:06:01 +01:00
luisramos0
e897eb0439
Remove Spree::BaseController.class_eval, these methods are already in the application helper through spree::application_helpers
...
We can ignore the difference in spree_logout_path as spree.logout_path is the user_sessions#destroy route
2019-07-08 13:59:26 +01:00
luisramos0
36e3362fc1
Adding missing translation that is now being used after being brought from spree_auth_devise
2019-07-08 13:23:18 +01:00
luisramos0
10e123a9c4
Move spree/authentication_helpers injection from spree initializers directly to the application_controller
...
Also, switch from using send to public_send making rubocop happier
2019-07-08 13:11:57 +01:00
luisramos0
0101dcdd93
Remove unused Spree::Dash from controllers brought from spree_auth_devise
2019-07-08 13:10:52 +01:00
luisramos0
9416f61fb3
Remove spree/checkout_controller.completion_route only used in spree/checkout_controller.update which is never used in OFN. Checkout update happpens in the checkout_controller.update
2019-07-08 13:04:38 +01:00
luisramos0
8efd69c3d1
Remove unnecessary checkout registration code, it's not used in OFN
2019-07-08 12:57:17 +01:00
luisramos0
dcbdfbb081
Fix rubocop issues in multiple files copied from spree_auth_devise, mostly hash rockets
2019-07-08 11:22:56 +01:00
luisramos0
92968c5efe
Merge spree/users_sessions_controller into spree/users_sessions from spree_auth_devise
2019-07-07 22:06:18 +01:00
luisramos0
c8ac64566f
Merge spree/users_controller_decorator into spree/user_controller
2019-07-07 22:04:04 +01:00
Transifex-Openfoodnetwork
633c7737e4
Updating translations for config/locales/en_ZA.yml
2019-07-08 04:04:48 +10:00
luisramos0
05a72be273
Move handle_asynchronously :send_reset_password_instructions to after send_reset_password_instructions declaration
...
This was as it was before the merge of user_decorator and user, the declaration was in the original class and the handle_asynchronously part was in the decorator which was loaded after the main user class from spree_auth_devise, this commit restores the order and fixes a spec in authentication_spec
2019-07-07 17:53:12 +01:00
luisramos0
b1cd950051
Add missing translation keys from spree_auth_devise
2019-07-07 17:12:54 +01:00
luisramos0
f557996817
Add deface overrides from spree_auth_devise for the users menu tab, the admin top bar and the shared login bar (maybe dead code this last one)
2019-07-06 22:53:20 +01:00
luisramos0
1a64a737d4
Add ActionController::Metal frorm spree_auth_devise for api authentication
2019-07-06 10:50:48 +01:00
luisramos0
7c0087cb30
Remove reference to empty spree_auth css and js files from spree_auth_devise
2019-07-06 00:02:40 +01:00
luisramos0
17448699f9
Bring devise initializer from spree_auth_devise and fix spree initializer details
2019-07-05 22:45:59 +01:00
luisramos0
a413f22e12
Remove unnecessary dependency to spree/users helper
2019-07-05 22:37:07 +01:00
luisramos0
893952f46b
Merge user_mailer_decorator into user_mailer
2019-07-05 22:31:06 +01:00
luisramos0
061e3cd722
Add user mailer from spree_auth_devise
2019-07-05 22:29:51 +01:00
luisramos0
a83790951d
Add model auth_config from spree_auth_devise
2019-07-05 21:58:29 +01:00
luisramos0
4e33529845
Merge user_decorator.rb into user.rb
2019-07-05 21:58:28 +01:00
luisramos0
a2a8b330b7
Add User class from spree_auth_devise as is
2019-07-05 21:58:28 +01:00
luisramos0
9669016573
Add required views from spree_auth_devise
2019-07-05 21:58:28 +01:00
luisramos0
2755cb9ec7
Add users_tab partial from spree_auth_devise
2019-07-05 21:58:28 +01:00
luisramos0
fdcc4c2447
Remove dependency to spree auth devise
2019-07-05 21:58:07 +01:00
Pau Perez
f42bf72b32
Fix rubocop violations
...
It's not affordable to fix the failed Metrics cops in the scope of this
bug fix, but now, with a separate class, it'll be easier.
2019-07-05 18:19:58 +02:00
Pau Perez
8ab77b077b
Fix spec
...
This needs to be revisited. I'm not sure it's the most appropriate spec
as it seems to be testing just part of story.
2019-07-05 18:19:58 +02:00
Pau Perez
9b03833df0
Extract orders & fulfillments default report clasts
2019-07-05 18:19:58 +02:00
Pau Perez
fada30435f
DRY some procs from report
2019-07-05 18:19:58 +02:00
luisramos0
fc0ffda8ec
Bring routes and controllers from spree_auth_devise
2019-07-05 15:08:42 +01:00
Luis Ramos
397729ed3d
Merge pull request #4001 from pacodelaluna/3990-display-enterprise-id-in-profile
...
Display enterprise ID in profile
2019-07-05 11:14:43 +01:00
luisramos0
88312b8e4a
Make OrdersHelper.invoice_links simpler
2019-07-05 11:08:51 +01:00
luisramos0
9be3ff90f7
Make OrdersHelper.complete_order_links simpler
2019-07-05 11:06:49 +01:00
luisramos0
a5b5e5de32
Remove trailing backslash
2019-07-05 10:58:53 +01:00
luisramos0
e66dea7e03
Improve query in filter_schedules_by_enterprise_id. Makes join to OCs explicity.
2019-07-05 10:37:27 +01:00
Maikel
4c5ed2fa45
Merge pull request #3999 from openfoodfoundation/transifex
...
Transifex
2019-07-05 11:59:40 +10:00
Maikel
40c0e69f11
Merge pull request #4000 from Matt-Yorkley/v2_migrations
...
Fix failing migration by clearing schema cache
2019-07-05 10:56:26 +10:00
Transifex-Openfoodnetwork
f3837fb6af
Updating translations for config/locales/en_GB.yml
2019-07-05 05:08:46 +10:00
Pau Perez
db7b7bbde2
Fix finding supplier for a deleted product
2019-07-04 18:52:56 +02:00
luisramos0
ef61310bad
Fix long lines in order_cycle_permissions and permissions
2019-07-04 17:17:58 +01:00
luisramos0
91da0114e3
Upgrade fuubar to 241 to skip yanked 240
2019-07-04 16:09:36 +01:00
Pau Perez
ee301c5e2f
Address Code Climate (rubocop) issues
2019-07-04 17:01:06 +02:00
Pau Perez
4a67ffab25
Add a test case for reports with deleted products
2019-07-04 17:01:06 +02:00
Pau Perez
4d060815d0
Extract unscoping logic into method
...
DRYies out the code a bit.
2019-07-04 17:01:06 +02:00
Pau Perez
f91bd03c25
Add clarifying comment to report
2019-07-04 17:01:06 +02:00
Pau Perez
7de4ec2a90
Fix orders and fulfillments report
...
It bypasses the default_scope to retrieve deleted variants in the orders
and fulfillment report.
2019-07-04 17:01:06 +02:00
Pau Perez
812d8cac4a
Make complex method a bit more readable
2019-07-04 17:01:06 +02:00
Transifex-Openfoodnetwork
d1faed282f
Updating translations for config/locales/es.yml
2019-07-05 00:22:01 +10:00
Transifex-Openfoodnetwork
26195314eb
Updating translations for config/locales/ca.yml
2019-07-05 00:09:05 +10:00
François Turbelin
912483660f
Put the uid under the permalink
2019-07-04 09:51:32 +02:00
François Turbelin
d12a7c2c76
Apply last suggestions
2019-07-04 09:43:35 +02:00
luisramos0
dee1c3d139
Fix typo in order_cycle_permissions.rb
2019-07-03 22:58:33 +01:00
François Turbelin
101cff02c6
Add locale keys
2019-07-03 23:06:50 +02:00
luisramos0
bb9c54a445
Use enterprises.id instead of :id to remove ambiguous column errors
2019-07-03 22:03:40 +01:00
François Turbelin
5ce2af454e
Clean id field
2019-07-03 23:00:36 +02:00
luisramos0
e5f396f975
Fix Permissions.related_enterprises_granted by adding explicit reference to table
2019-07-03 20:18:01 +01:00
luisramos0
a57a93d414
Adapt permissions.rb and order_cycle_permissions to rails 4
2019-07-03 20:18:01 +01:00
luisramos0
a82b1d8129
Adapt exchange.involving scope to rails 4
2019-07-03 20:18:00 +01:00
luisramos0
5184fa540c
Adapt enterprise_relationship permitting and permitted_by scopes to rails 4
2019-07-03 20:18:00 +01:00
Luis Ramos
951787d456
Merge pull request #3987 from mkllnk/3978-optimise-products-cache
...
3978 Optimise products cache
2019-07-03 19:59:07 +01:00
Luis Ramos
b35743b6e4
Merge pull request #3968 from mkllnk/3924-rescue-failing-shipment
...
Rescue checkout on shipping id conflict
2019-07-03 19:56:24 +01:00
Luis Ramos
4fc30ba50e
Merge pull request #3994 from openfoodfoundation/dependabot/bundler/knapsack-1.17.2
...
Bump knapsack from 1.17.1 to 1.17.2
2019-07-03 19:55:20 +01:00
François Turbelin
97a401a307
Display enterprise ID in profile
2019-07-03 18:10:59 +02:00
Pau Pérez Fabregat
232e3b8262
Merge pull request #3993 from openfoodfoundation/dependabot/bundler/simplecov-0.17.0
...
Bump simplecov from 0.16.1 to 0.17.0
2019-07-03 16:28:56 +02:00
Pau Pérez Fabregat
b3b66d5825
Merge pull request #3970 from mkllnk/444-feature-toggle-use-env
...
Toggle features via env instead of initializer
2019-07-03 16:27:01 +02:00
Pau Pérez Fabregat
1b532f995c
Merge pull request #3919 from mkllnk/db-mirror-script
...
Db mirror script
2019-07-03 16:24:01 +02:00
Pau Pérez Fabregat
f5544494f0
Merge pull request #3997 from mkllnk/remove-ng-test-script
...
Remove obsolete Javascript test script
2019-07-03 16:23:41 +02:00
Pau Pérez Fabregat
2de32b54ba
Merge pull request #3995 from mkllnk/how-to-not-archive-branches
...
Remove obsolete script to archive branches
2019-07-03 16:23:15 +02:00
Pau Pérez Fabregat
b6e2dadbb3
Merge pull request #3996 from mkllnk/remove-backup-script
...
Remove obsolete backup script
2019-07-03 16:22:36 +02:00
Matt-Yorkley
473e635d54
Merge pull request #3982 from luisramos0/mobile_bug
...
Fixes menu problem with long shop names
2019-07-03 13:30:41 +01:00
Transifex-Openfoodnetwork
3e11cdb5c1
Updating translations for config/locales/fr.yml
2019-07-03 22:14:43 +10:00
Transifex-Openfoodnetwork
842e8da2c3
Updating translations for config/locales/fr.yml
2019-07-03 22:11:35 +10:00
Matt-Yorkley
24f8e6d2ec
Fix failing migration by clearing schema cache
2019-07-03 12:59:10 +01:00
Maikel
568d58405d
Merge pull request #3986 from openfoodfoundation/transifex
...
Transifex
2019-07-03 18:46:14 +10:00
Maikel Linke
b23489fa40
Remove obsolete Javascript test script
...
This script has been replaced by a rake task a long time ago:
bundle exec rake karma:run # to run the specs once
bundle exec rake karma:start # to run the spec after each change
We don't need it any more and it doesn't work on my machine.
2019-07-03 14:50:33 +10:00
Maikel Linke
503658f930
Remove obsolete backup script
...
This script doesn't work anymore. It was written for old an Australian
production server. We have automatic backups now. And if we wanted to
take a backup manually, we should probably give it a meaningful name,
not using a script.
2019-07-03 14:46:56 +10:00
Maikel Linke
24bf5f0fea
Remove obsolete script to archive branches
...
Apparently, there was a practice to archive branches by tagging them
"archive/branch-name" and then deleting them. We don't practice that
anymore and I would suggest to not start doing it again. Our setup is a
bit different now.
We now use our own forks for feature branches and can have our own,
individual archiving practices in our forks. There is no need to have a
central graveyard of people's "work after progress".
The old feature branches we used to have in the central repository got
archived in another fork:
https://github.com/openfoodfoundation/openfoodnetwork-archive/
Branches associated to pull requests should be deleted after the pull
request has been closed. Github keeps a reference to those branches in
the pull request which is like an archive.
Special branches we still have and delete from time to time:
- transifex: Created for new translations, deleted afterwards.
- dependabot/*: Dependabot always creates pull requests. See above.
- 1-31-1-stable etc: They only live as long as they are supported.
I would also like to delete the old `archive/*` tags. They are in the
openfoodnetwork-archive repository and could confuse developers in the
main repository. Let's keep it clean.
2019-07-03 14:36:16 +10:00
Matt-Yorkley
9d86249bcb
Merge pull request #3954 from openfoodfoundation/improve-database-yml
...
DRY and make database.yml more flexible
2019-07-02 21:43:49 +01:00
Kristina Lim
3e37c8a3f1
Change underscores in CSS classes to hyphens
...
These were triggering a warning from scss-lint.
2019-07-03 04:43:35 +08:00
Kristina Lim
691d7d735b
Reduce padding between top bar menu items
2019-07-03 04:35:44 +08:00
Kristina Lim
6d1dd76590
Cap width of hub name in top bar and wrap
2019-07-03 04:30:06 +08:00
Kristina Lim
356e00bfbb
Add space for tab bar in medium and below screens
2019-07-03 04:02:28 +08:00
Kristina Lim
5534109122
Undo setting of margin for home tagline
2019-07-03 04:02:22 +08:00
Janine Luk
ac8790ecb3
sticky header for mobile
2019-07-03 03:57:11 +08:00
Matt-Yorkley
2eb8121644
Update Docker config
2019-07-02 20:36:21 +01:00
Matt-Yorkley
b685e0d3a7
Add ENV var for db host
2019-07-02 20:34:16 +01:00
Matt-Yorkley
1dd3d86a2b
Add prefixes to ENV vars
2019-07-02 20:34:16 +01:00
Pau Perez
7ee41902f2
DRY and make database.yml more flexible
...
This enables us to fix
https://github.com/openfoodfoundation/ofn-install/issues/387 and brings the
needed flexibility so things like
https://github.com/openfoodfoundation/openfoodnetwork/pull/3887 or any CI don't
require a custom version. That's what ENV vars are for!
For instance, I no longer need to mess with my LXC setup to connect to the DB.
I just need to have 2 env vars.
2019-07-02 20:34:16 +01:00
dependabot-preview[bot]
490ced4a92
Bump knapsack from 1.17.1 to 1.17.2
...
Bumps [knapsack](https://github.com/ArturT/knapsack ) from 1.17.1 to 1.17.2.
- [Release notes](https://github.com/ArturT/knapsack/releases )
- [Changelog](https://github.com/ArturT/knapsack/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ArturT/knapsack/compare/v1.17.1...v1.17.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-02 19:21:44 +00:00
dependabot-preview[bot]
a682115fb1
Bump simplecov from 0.16.1 to 0.17.0
...
Bumps [simplecov](https://github.com/colszowka/simplecov ) from 0.16.1 to 0.17.0.
- [Release notes](https://github.com/colszowka/simplecov/releases )
- [Changelog](https://github.com/colszowka/simplecov/blob/master/CHANGELOG.md )
- [Commits](https://github.com/colszowka/simplecov/compare/v0.16.1...v0.17.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-02 19:19:31 +00:00
Kristina Lim
653067f58c
Omit text for top bar items with icon in large
...
This affects only top bar menu items for:
* Language
* Profile
This does not update the "Log in" menu item, because the currently
selected icon might not be self explanatory.
2019-07-03 01:49:36 +08:00
Kristina Lim
06ed9c838e
Remove extra left padding from top bar menu items
2019-07-03 01:49:35 +08:00
Matt-Yorkley
726d87de6b
Fix display bug in cart button on mobile menu
2019-07-02 16:47:22 +01:00
Matt-Yorkley
fbb97c3db8
Fix JS render-blocking in Darkswarm
2019-07-02 13:43:20 +01:00
Matt-Yorkley
cea8cbd924
Preload primary font to speed up page rendering
2019-07-02 13:23:03 +01:00
Maikel Linke
73372a58ef
Remove unused and dangerous Exchange#eql? override
...
The `eql?` override has been added in very early commits but was
actually not used except in a test. It also caused performance problems
since each call to `eql?` would issue two database queries. A developer
would unknowingly trigger these when using `exchanges.uniq`. A mistake
that could have happened again in the future.
I moved the implementation to the test that was actually using it and
made a second test a bit more explicit.
2019-07-02 18:42:02 +10:00
Maikel Linke
287d6a926a
Document Exchange
2019-07-02 18:42:02 +10:00
Maikel Linke
04b07a1ff5
Further optimise querying affected exchanges
...
The implementation queried the database for each incoming variant that
was changed. This rewrite combines ActiveRecord relations so that it
creates only one query. This saves another 5-10% of execution time when
updating enterprise fees on production instances.
2019-07-02 18:42:01 +10:00
Maikel Linke
0da7c93bc6
Collect affected exchanges more efficiently
...
When an incoming exchange of an order cycle changes, the ProductsCache
queries all affected outgoing exchanges to update them. It was creating
a big collection of exchanges with duplicates and then calling `uniq`.
That call was hitting a custom implementation of `eql?` which is very
inefficient. And since `Exchange.eql?` is ignoring the order cycle id,
it was probably filtering too many exchanges from the collection.
Fixed bug: If two order cycles sell exactly the same variants to the
same shop, the two outgoing exchanges are seen as equal. When the
variants change, ProductsCache would only update one of those two
exchanges, leaving one order cycle out of sync. This case is very rare.
It only happens if there is a shop with two active order cycles selling
exactly the same.
The new uniqueness test looks only at the attributes that are later used
to refresh the cache. I measured a page speed improvement from 90
seconds to 3 seconds (30 times faster).
2019-07-02 18:29:50 +10:00
Maikel Linke
bfe41d4cbc
Extract method to simplify
2019-07-02 18:29:50 +10:00
Maikel Linke
3e6e0b73ee
Style products cache
...
The `private` modifier doesn't affect class methods. Class methods have
to be declared as private separately. Also using more guard clauses,
brackets and linebreaks.
2019-07-02 18:29:49 +10:00
Maikel
592a468448
Merge pull request #3960 from mkllnk/test-spec-stability
...
Remove retries from previously flaky specs
2019-07-02 13:50:16 +10:00
Transifex-Openfoodnetwork
f09b1fc1a8
Updating translations for config/locales/en_ZA.yml
2019-07-02 01:13:09 +10:00
Ecksi
bdbd869b06
Modify English tool tip text in yml file
...
Modify GB English tool tip text in yml file
Modify US English tool tip text in yml file
2019-06-28 10:59:50 +10:00
Maikel
8b42bd205a
Merge pull request #3977 from openfoodfoundation/transifex
...
Transifex
2019-06-27 09:29:09 +10:00
Transifex-Openfoodnetwork
6108a74fec
Updating translations for config/locales/fr.yml
2019-06-27 00:47:45 +10:00
Luis Ramos
5ecab7a0c2
Merge pull request #3971 from Matt-Yorkley/basket_errors
...
Avoid `undefined method 'order'` errors when removing lineitems from basket
2019-06-26 15:33:26 +01:00
Luis Ramos
d8785bdaba
Merge pull request #3932 from luisramos0/shpfront_message
...
Improve message in private shopfront when user is not logged in or not a customer
2019-06-26 15:31:06 +01:00
Luis Ramos
00841cb537
Merge pull request #3923 from luisramos0/prod_image_error
...
User friendly error when creating a product with an image in an unsupported format
2019-06-26 15:30:18 +01:00
luisramos0
61c8859da8
Fix problem in array concatenation in orders helper and cover it with specs
2019-06-26 14:17:41 +01:00
luisramos0
e33ce235c4
Hide invoice links in order edit page if invoices are disabled
2019-06-26 14:17:41 +01:00
luisramos0
ec2f99a467
Refactor OrderHelper.order_links: extract some logic from order_links to make it more simple and pass rubocop tests
2019-06-26 14:17:41 +01:00
luisramos0
67b5f08b07
Refactor OrderHelper.order_links: extract links object to separate methods
2019-06-26 14:17:41 +01:00
luisramos0
95170bacd5
Show print invoices button in orders list page only if invoices are enabled in the backoffice
2019-06-26 14:17:25 +01:00
Maikel
eebc49f27c
Merge pull request #3887 from pacodelaluna/add-docker-configuration-for-dev-setup
...
Add docker configuration for quick local setup
2019-06-26 21:23:34 +10:00
luisramos0
8b0296eae6
Use a single query to get filter_schedules_by_enterprise_id
2019-06-26 11:38:03 +01:00
François Turbelin
b6120a9105
Fix docker-compose application yml file
2019-06-26 11:03:20 +02:00
Maikel Linke
5d3dbca9c3
Toggle features via env instead of initializer
...
A FeatureToggle could be switched via a class_eval in an initializer.
The initializer was installed via ofn-install. We want to get rid of
custom, untracked initializers. Here I'm changing the FeatureToggle
class to use environment variables instead.
This change needs to be followed up with a change in ofn-install to use
the new environment variable. It affects only Australian production.
2019-06-26 11:43:22 +10:00
Maikel Linke
5bbd63bcd8
Add spec for rescuing order saving shipment
2019-06-26 11:32:01 +10:00
Maikel Linke
980b4a86ab
Move shipment rescue to its own method
2019-06-26 10:48:51 +10:00
Luis Ramos
118ed79070
Merge pull request #3904 from luisramos0/subs_stock
...
Fix ofn-on-hand directive and fix usage of variant.on_hand in subscriptions order factory
2019-06-25 20:25:06 +01:00
François Turbelin
623d1e0285
Add missing file
2019-06-25 20:05:55 +02:00
François Turbelin
2dcced8810
Put back application example file as it was
2019-06-25 17:59:37 +02:00
Matt-Yorkley
5100ad6b51
Improve #line_items_for logic and add more tests
2019-06-25 15:33:42 +01:00
luisramos0
7e2bead54d
Make finalizedquantity optional in the ofn-on-hand directive and extract avaiable quantity to a separate method for clarity
2019-06-25 14:50:03 +01:00
luisramos0
2b6e6c62dd
Simplify order_factory_spec by extracting copy pasted code to method
2019-06-25 14:50:03 +01:00
luisramos0
05a15d9441
Extract method to remove some copy pasted code in order_factory_spec
2019-06-25 14:50:03 +01:00
luisramos0
567196fe0e
Fix line item verification of stock on the browser side by adding logic to handle completed orders with some reserved stock
...
The shopping/orders_spec is now validating this edge case by using all stock available in one of the line items
2019-06-25 14:50:03 +01:00
luisramos0
7bd32d4967
Fix usage of variant.on_hand in subscriptions order factory, we now take on_demand into account
...
This fixes a problem introduced in 12eab1bfa9 (diff-c3c4192f302cc77e9a8547012fe86ddb) , since then variant.on_hand does not return infinity if variant is on_demand
2019-06-25 14:47:47 +01:00
Luis Ramos
9b6f1a5e11
Merge pull request #3958 from Matt-Yorkley/pi_encoding
...
Improve handling of invalid characters in uploaded CSV files
2019-06-25 14:44:32 +01:00
François Turbelin
84389d1392
Fix setup script with new application YAML file
2019-06-25 14:38:38 +02:00
François Turbelin
da3b467d47
Use https to fetch Postgres repo
2019-06-25 14:09:59 +02:00
François Turbelin
ceffae2efc
Delete extra example file
2019-06-25 14:08:18 +02:00
Matt-Yorkley
f19a6f0dec
Add tests for class_eval on Spree::Calculator private method #line_items_for
2019-06-25 12:19:16 +01:00
Matt-Yorkley
0a155da273
Avoid undefined method 'order' errors when removing lineitems from basket
2019-06-25 11:13:56 +01:00
François Turbelin
c0d02c8d42
Fix errors while relauching container
2019-06-25 12:05:26 +02:00
François Turbelin
e68d72c0dd
Update DOCKER.md
2019-06-25 11:47:54 +02:00
Matt-Yorkley
034e8b180a
Use let for CSV data
2019-06-25 10:24:53 +01:00
Matt-Yorkley
ead0e1c08d
Store attributes list in constant
2019-06-25 10:20:59 +01:00
Matt-Yorkley
8dfb628d88
Add test for ignoring non-updatable description field in validations when updating
2019-06-25 10:19:05 +01:00
Matt-Yorkley
85b3d7dac5
Move attribute check to method
2019-06-25 10:19:05 +01:00
Matt-Yorkley
84040fd2a6
Allow import to proceed when updating a product and description is set
2019-06-25 10:19:05 +01:00
François Turbelin
5dcf456c90
Remove old Rake task for sample data
2019-06-25 11:18:48 +02:00
François Turbelin
79ec3d5a3f
Remove extra copy on Docker file
2019-06-25 11:18:48 +02:00
François Turbelin
e893197c49
Use example files instead of extra Docker ones
2019-06-25 11:18:48 +02:00
Matt-Yorkley
60e67ae1a4
Run all setup steps on startup
...
It's a bit dirty, but it works :)
2019-06-25 11:18:48 +02:00
Matt-Yorkley
53a0f70aa0
Add default login details via ENV vars
2019-06-25 11:18:48 +02:00
Matt-Yorkley
64d6ae445b
Change postgres repo from precise to bionic
2019-06-25 11:18:48 +02:00
Matt-Yorkley
5712f67673
Remove phantomjs from dependencies
2019-06-25 11:18:48 +02:00
François Turbelin
9c45444ea6
Clean database.docker.yml file
2019-06-25 11:18:48 +02:00
François Turbelin
4e41a73c4f
Enhance Dockerfile
2019-06-25 11:18:48 +02:00
François Turbelin
75267268d7
Update Postgres to 9.5
2019-06-25 11:18:48 +02:00
François Turbelin
7455053879
Update DOCKER.md file
2019-06-25 11:18:48 +02:00
François Turbelin
c5addb8c1d
Fix comment spacings, gloupsss
2019-06-25 11:18:48 +02:00
François Turbelin
e5d4b216ba
Add DOCKER.md file as documentation
2019-06-25 11:18:48 +02:00
François Turbelin
b4fe44510b
Tune up the Rake task
2019-06-25 11:18:48 +02:00
François Turbelin
9df5d78f27
Add a Rake task in order to setup dev env
2019-06-25 11:18:48 +02:00
François Turbelin
f9d72e10d5
Add Docker configuration
2019-06-25 11:18:48 +02:00
Maikel
723499332a
Merge pull request #3006 from mkllnk/i18n-error-detection
...
Raise error on missing translation keys
2019-06-25 16:13:15 +10:00
Maikel Linke
6a06e0ac3b
Raise error on missing translation keys
2019-06-25 15:06:56 +10:00
Luis Ramos
5600102729
Merge pull request #3876 from luisramos0/3804_insuf_stock
...
3804 Fix editing cart when variant on_demand but its on_hand value is zero or negative
2019-06-24 22:24:15 +01:00
luisramos0
a6ea975848
Fix editing cart when variant on_demand but on_hand is zero or negative
2019-06-24 22:07:46 +01:00
Luis Ramos
57917a498b
Merge pull request #3946 from luisramos0/missing_translatiojns
...
Fix last missing translations covered by specs
2019-06-24 20:52:59 +01:00
Luis Ramos
b30da27e92
Merge pull request #3950 from openfoodfoundation/dependabot/bundler/stripe-4.19.0
...
Bump stripe from 4.18.1 to 4.19.0
2019-06-24 20:44:57 +01:00
Maikel Linke
1e1e88fe51
Rescue checkout on shipping id conflict
...
Helps to investigate https://github.com/openfoodfoundation/openfoodnetwork/issues/3924
A better solution would be to move the update of shipments out of the
after_save callback and deal with it in controllers. Unfortunately,
that's a big and tricky task.
Since this exception is causing a lot of pain for some Australian
farmers, I introduced more logging here to understand the problem
better. The issue was observed in OFN v1 and may disappear with v2. But
we don't know that and should monitor it.
2019-06-21 16:05:54 +10:00
Maikel
e4c3c1664a
Merge pull request #3943 from jonleighton/issue-2112
...
Bring back ‘Shop for X products at:’ title
2019-06-21 15:06:21 +10:00
Maikel
5b0c8bbaef
Merge pull request #3836 from Matt-Yorkley/fast_and_furious2
...
Improve /shops, /producers, and /groups performance
2019-06-21 15:02:19 +10:00
Maikel
71f396a44f
Merge pull request #3896 from luisramos0/clear_unit_desc
...
Clear product.variants.unit_description if product.variant_unit is items
2019-06-21 15:00:06 +10:00
Maikel
eb162f6b29
Merge pull request #3934 from openfoodfoundation/dependabot/bundler/activerecord-import-1.0.2
...
Bump activerecord-import from 1.0.1 to 1.0.2
2019-06-21 14:59:03 +10:00
Maikel
5aea361d87
Merge pull request #3709 from luisramos0/2-0-prepare-4-rails-4
...
Start upgrade to Rails 4
2019-06-21 14:58:24 +10:00
Maikel
3721c017fa
Merge pull request #3670 from luisramos0/2-0-without-spree-fe-assets
...
[Spree Upgrade] Remove dependency to spree frontend - routes and controllers
2019-06-21 14:57:03 +10:00
Maikel
12f0ed9955
Merge pull request #3940 from luisramos0/zones
...
Remove matching of shipping method zone to user address on checkout
2019-06-21 14:43:40 +10:00
Maikel
4c4881430c
Merge pull request #3908 from kristinalim/fix/3843-unit_type_in_product_import
...
3877,3843 Improve handling of units and unit type in product import
2019-06-21 14:43:01 +10:00
luisramos0
bcc02f35e7
Add new preference to invoice settings: enable invoices
2019-06-19 13:29:30 +01:00
Matt-Yorkley
08b2b19d5e
Improve handling of invalid characters in uploaded CSV files
2019-06-19 09:29:59 +01:00
Maikel Linke
cccd35fdf3
Remove retries from previously flaky specs
...
It's not acceptable to have flaky specs that only pass once in three
tries. Our specs might be more stable now that we use Chrome as test
browser. Otherwise we have to find out why these specs are not stable.
It might be an important bug that happens only sometimes.
2019-06-19 16:48:04 +10:00
Maikel Linke
d8ece7cd8b
First stored credit card becomes default again
...
A user can store their credit card when checking out. Due to a bug in
https://github.com/openfoodfoundation/openfoodnetwork/pull/3840 it
didn't become the default card any more. This behaviour is now restored.
If there is not default card yet, a new card added during checkout
becomes the default card.
2019-06-19 15:43:38 +10:00
Maikel Linke
ee65d70eec
Deal with empty payments sequence
...
The task was crashing when there were no payments in the query range.
2019-06-19 09:58:47 +10:00
Matt-Yorkley
ab1ed53507
Merge pull request #3955 from openfoodfoundation/remove-travis-leftover
...
No need to keep old and used Travis config file
2019-06-18 16:48:13 +01:00
luisramos0
2b3865855d
Simplify shipping_method.include? method
2019-06-18 11:42:34 +01:00
luisramos0
1da18d3386
Fix enterprise model scopes by making ready_for_checkout return enterprises and not ids again and by making not_ready_for_checkout select the id field from the ready_for_checkout scope
2019-06-18 10:52:56 +01:00
luisramos0
b025df1798
Fix a few more rubocop issues
2019-06-18 10:52:56 +01:00
luisramos0
178924af5d
Fix long lines in order_cycle model
2019-06-18 10:52:45 +01:00
luisramos0
bb1f7fde2f
Remove unused routes related to taxons
...
t/products was already an old route 4 years ago and t/*id is not currently working in master
2019-06-18 10:49:20 +01:00
luisramos0
c61e7a1672
Remove unused routes
...
This fix is in spree 2.1 here: ba420fe70e
2019-06-18 10:49:20 +01:00
luisramos0
3c964933b1
Remove stub of a deleted method #deadcode
2019-06-18 10:49:20 +01:00
luisramos0
e7b625edcf
Remove spree locale route
...
This route is not used, ofn code uses query param locale that is picked up in base controller set_locale
2019-06-18 10:49:20 +01:00
luisramos0
eab6cc563b
Fix rubocop issues
2019-06-18 10:49:20 +01:00
luisramos0
8daf9b9247
Revert fix in previous commit (orders/populate route used in product import view) and adding a simple fix by setting the product import route to use in the form
2019-06-18 10:49:20 +01:00
luisramos0
5ba0f906a1
For some reason we need the orders populate route to make product import routes work
2019-06-18 10:49:20 +01:00
luisramos0
35c8236c21
Add missing datepicker/cal.gif to ofn assets
2019-06-18 10:49:20 +01:00
luisramos0
b397a8e661
Remove spree_frontend and spree_sample from ofn's gemfile
...
spree_frontend will only be removed from gemfile.lock when spree_auth_devise is removed from OFN
2019-06-18 10:49:20 +01:00
luisramos0
61def8f2e7
Convert match routes to get routes to be compatible with rails 4
2019-06-18 10:49:20 +01:00
luisramos0
4ff0bf8162
Change gemfile to depend on the different spree gems, not spree as a whole
2019-06-18 10:49:20 +01:00
luisramos0
02b9fca620
Remove unused spree checkout and spree cart routes
2019-06-18 10:49:19 +01:00
luisramos0
40f7d07e27
Remove unnecessary method from spree storecontroller and spree orderscontroller
2019-06-18 10:47:34 +01:00
luisramos0
c56486d7ae
Remove unnecessary methods from spree checkoutcontroller
2019-06-18 10:47:34 +01:00
luisramos0
56db90f49e
Remove unused checkout controller update action and order controller populate action
...
Additionally, remove routes of these actions as well as routes already defined in routes.rb (checkout and cart)
2019-06-18 10:47:34 +01:00
luisramos0
a8b4037885
Remove dependency to coupon code logic in checkoutcontroller, ofn doesnt have that feature
2019-06-18 10:47:34 +01:00
luisramos0
fc145d472d
Add home controller to ofn codebase from spree frontend
2019-06-18 10:47:34 +01:00
luisramos0
5037cce6f5
Add all the code missing from checkout, order and store controllers to ofn controllers
2019-06-18 10:47:34 +01:00
luisramos0
c399491314
Move spree frontend routes to ofn and transform decorators with class_eval to controller classes
2019-06-18 10:47:34 +01:00
luisramos0
c15c5435ff
Fix long lines in exchange model
2019-06-18 10:45:01 +01:00
luisramos0
0cdb49818d
Remove distinct from enterprise.ready_for_checkout scope
...
Adapt use of enterprise scope not_ready_for_checkout to rails 4 by adding enterprises table alias to selected field id
2019-06-18 10:40:49 +01:00
luisramos0
9548f5c5f7
Adapt order_cycle scopes to rail 4
2019-06-18 10:40:49 +01:00
luisramos0
ba91abd20e
Adapt exchanges.with_any_variant scope to rails 4
2019-06-18 10:40:49 +01:00
luisramos0
0d07bf2a3b
Adapt enterprise.distributing_products scope to rails 4
2019-06-18 10:40:49 +01:00
luisramos0
07a6e62d09
Adapt query in product destroy process to rails 4
2019-06-18 10:40:49 +01:00
luisramos0
e9667ab289
Adapt product.managed_by scope to rails 4
2019-06-18 10:40:49 +01:00
Pau Perez
d003ba81e3
No need to keep old and used Travis config file
...
If we ever want to come back to Travis we just need to do a git revert.
Meanwhile, no need to care about it.
2019-06-18 11:12:14 +02:00
Luis Ramos
a783f4609a
Merge pull request #3942 from jonleighton/exit-if-no-nodenv
...
Exit script/setup if node is not found
2019-06-17 22:10:44 +01:00
dependabot-preview[bot]
756b3ec73b
Bump stripe from 4.18.1 to 4.19.0
...
Bumps [stripe](https://github.com/stripe/stripe-ruby ) from 4.18.1 to 4.19.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/v4.18.1...v4.19.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-17 19:19:17 +00:00
Luis Ramos
d9b47ad1b3
Merge pull request #3944 from openfoodfoundation/transifex
...
Transifex
2019-06-17 16:39:25 +01:00
luisramos0
0235a04530
Add missing translation key in user sessins controller
2019-06-17 15:48:52 +01:00
luisramos0
043abdef39
Add missing translations in the account confirmation process
2019-06-17 15:48:52 +01:00
luisramos0
b372e131a1
Add missing translation key in Spree.
...
This was fixed in spree 2.1, 7de7fcd502
2019-06-17 15:48:52 +01:00
luisramos0
642d3cbfbd
Fix translation key namespace in subs order confirm email subject
2019-06-17 15:48:52 +01:00
Transifex-Openfoodnetwork
930de1b6a2
Updating translations for config/locales/en_ZA.yml
2019-06-17 20:33:27 +10:00
Pau Pérez Fabregat
e3db218e7c
Merge pull request #3941 from luisramos0/enza
...
Add en_ZA.yml copied from en_GB.yml as requested by instance manager
2019-06-17 11:54:09 +02:00
Jon Leighton
fcff302d55
Bring back ‘Shop for X products at:’ title
...
Fixes #2112
It looks like this bug was accidentally introduced during a refactor in
e5ca494db8 . The `bo-html` attribute was
replaced with `ng-html`, but it appears that it should actually have
used `ng-bind-html`
(https://docs.angularjs.org/api/ng/directive/ngBindHtml ) because the
former is not a valid AngularJS directive.
It was also necessary to bubble up the `.cta-container` class in order to
get the appropriate styling on the title.
2019-06-17 15:43:15 +10:00
Jon Leighton
150310bf67
Exit script/setup if node is not found
...
This mirrors what the script already does if ruby is not found
2019-06-17 11:26:54 +10:00
luisramos0
926fc5ee43
Add en_ZA.yml copied from en_GB.yml as requested by instance manager
2019-06-16 20:43:20 +01:00
luisramos0
ccc7a43a06
Bypass validation of shipping methods zone on checkout
2019-06-15 21:11:51 +01:00
luisramos0
e4fcaa5992
Fix typo in package.rb
2019-06-15 20:45:57 +01:00
Luis Ramos
b1d4461c77
Merge pull request #3936 from luisramos0/factories_refactor
...
Extract factories to separate files and fix rubocop issues
2019-06-14 22:28:55 +01:00
Pau Pérez Fabregat
45c77196b3
Merge pull request #3935 from mkllnk/update-rubocop-style
...
Update rubocop style
2019-06-14 19:52:22 +02:00
luisramos0
13d41dc1aa
Remove duplicate modify entry in factories
2019-06-14 13:59:24 +01:00
luisramos0
5ca382be42
Remove spec/factories.rb from rubocop exceptions, it doesnt look like a problem any longer
2019-06-14 13:55:47 +01:00
luisramos0
3259db69f0
Remove unnecessary code, this code as been accepted in spree code base and included in spree v1.2
2019-06-14 13:43:30 +01:00
luisramos0
6efb71d903
Fix more rubocop issues in spec/factories
2019-06-14 13:42:27 +01:00
Luis Ramos
91401446a5
Merge pull request #3915 from mkllnk/3844-permalink-conflicts
...
Consider deleted products when creating permalinks
2019-06-14 13:20:35 +01:00
luisramos0
59593c824a
Fix rubocop issues in different factories
2019-06-14 13:10:53 +01:00
luisramos0
79cf03b124
Fix rubocop issues in spec/factories
2019-06-14 13:01:08 +01:00
luisramos0
a6b3c26bbe
Extract users factories to separate file
2019-06-14 12:50:26 +01:00
luisramos0
8345765ada
Extract tag rules factories to separate file
2019-06-14 12:49:17 +01:00
luisramos0
03fb33ba86
Extract variant factory modify to separate file
2019-06-14 12:48:04 +01:00
luisramos0
2c8ce6e4e5
Extract products factories to separate file
2019-06-14 12:45:55 +01:00
luisramos0
3e10c703bf
Extract shipments factories to separate file
2019-06-14 12:43:07 +01:00
luisramos0
42f8b2efed
Fix static file path in order_cycle_factory
2019-06-14 12:30:36 +01:00
luisramos0
bd493c392a
Extract shipping_methods factories to separate file
2019-06-14 12:25:10 +01:00
luisramos0
dc701f55b3
Extract calculators factories to separate file
2019-06-14 12:23:32 +01:00
luisramos0
06e3328ce2
Extract orders factories to separate file
2019-06-14 12:17:24 +01:00
luisramos0
91fcb7c7c4
Extract enterprises factories to separate file
2019-06-14 12:12:45 +01:00
luisramos0
42f2e78b10
Extract subscriptions factories to separate file
2019-06-14 12:10:54 +01:00
luisramos0
0501859c23
Extract order_cycle factories to separate file
2019-06-14 12:10:27 +01:00
luisramos0
a7c970054c
Add rescue in product controller create action to avoid server error and send appropriate error message to client when product image upload fails
2019-06-14 10:20:28 +01:00
luisramos0
c97925aa4a
Improve message in private shopfront when closed or when user is not logged in
2019-06-14 10:13:33 +01:00
Maikel
5e89c54144
Merge pull request #3931 from openfoodfoundation/RachL-patch-1-3
...
Update README.md
2019-06-14 14:20:22 +10:00
Maikel
2307df980c
Merge pull request #3930 from openfoodfoundation/transifex
...
Transifex
2019-06-14 14:19:13 +10:00
Maikel Linke
b5f3f98f87
Make BlockLength style apply to all files except todo list
2019-06-14 11:49:27 +10:00
Maikel Linke
ac79e44d9a
Fix current rubocop violations
2019-06-14 11:40:09 +10:00
Maikel Linke
bf8a31abda
Add rake task to report lost payments
...
In rare cases, payment records can get lost through database rollbacks.
This new rake task tries to find log entries for lost transactions and
reports them as CSV.
2019-06-14 11:10:31 +10:00
Transifex-Openfoodnetwork
f0977f3c39
Updating translations for config/locales/nb.yml
2019-06-14 08:08:37 +10:00
dependabot-preview[bot]
16ad94f3a8
Bump activerecord-import from 1.0.1 to 1.0.2
...
Bumps [activerecord-import](https://github.com/zdennis/activerecord-import ) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/zdennis/activerecord-import/releases )
- [Changelog](https://github.com/zdennis/activerecord-import/blob/master/CHANGELOG.md )
- [Commits](https://github.com/zdennis/activerecord-import/compare/v1.0.1...v1.0.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-13 19:23:40 +00:00
luisramos0
6223a738a7
Fix rubocop issues in collapsible.css
2019-06-13 19:32:33 +01:00
luisramos0
a370216f54
Change default translation in the registration introduction so that it looks better when collapsed
2019-06-13 19:28:31 +01:00
luisramos0
473fb45132
Remove an extra break line to remove html space and make sure alignment is correct
2019-06-13 19:28:10 +01:00
luisramos0
ae0563a58f
Merge branch 'master' into 1766-registration-scroll
2019-06-13 19:10:05 +01:00
Luis Ramos
2b593a59f5
Merge pull request #3900 from luisramos0/subs_trans
...
Missing translations in Subscriptions
2019-06-13 18:51:20 +01:00
Rachel Arnould
d3cb106ae4
Update README.md
...
In order to benefit from a free unlimited account at Browser stack, they asked us to
*Give us a shoutout on your GitHub project page. Post an hyperlink and a line about how you use BrowserStack.*
2019-06-13 18:58:58 +02:00
Luis Ramos
ddfd14ebb3
Merge pull request #3905 from openfoodfoundation/dependabot/bundler/i18n-js-3.3.0
...
Bump i18n-js from 3.2.2 to 3.3.0
2019-06-13 17:33:50 +01:00
luisramos0
1db220e1e0
Remove unnecessary referer setting from products controller spec
2019-06-13 17:22:09 +01:00
Luis Ramos
29bc961e8a
Merge pull request #3890 from luisramos0/transl_prod_page
...
Add missing translation keys to the create product page
2019-06-13 17:13:40 +01:00
Transifex-Openfoodnetwork
216e181c6e
Updating translations for config/locales/en_GB.yml
2019-06-14 01:53:18 +10:00
Transifex-Openfoodnetwork
b65b94b6f9
Updating translations for config/locales/en_GB.yml
2019-06-14 01:50:11 +10:00
Luis Ramos
85ee1e7806
Merge pull request #3889 from luisramos0/tag_rules_transl
...
Fix missing translations in tag rules management page
2019-06-13 16:15:49 +01:00
Luis Ramos
7d24bcf868
Merge pull request #3798 from m-budryte/order_cycles_add_fee_remove_link
...
the translations for Remove in the exchange forms added
2019-06-13 16:15:28 +01:00
Luis Ramos
1df1ba9403
Merge pull request #3888 from luisramos0/translations
...
Add translation keys to actions in the order payments list page
2019-06-13 15:36:43 +01:00
Luis Ramos
e15ccdbd74
Merge pull request #3840 from mkllnk/3727-default-credit-cards
...
Make only reusable credit cards the default card
2019-06-13 14:13:32 +01:00
Luis Ramos
1a2703f630
Merge pull request #3886 from luisramos0/fees_translations
...
Make a few more things translatable in the Enterprise Fees management page
2019-06-13 14:12:16 +01:00
Luis Ramos
09a5426095
Merge pull request #3880 from kristinalim/fix/3792-optimize_order_cycle_variant_updates
...
3792 Optimize saving Order Cycle changes
2019-06-13 12:33:22 +01:00
Luis Ramos
bb7a2d7a5e
Merge pull request #3252 from mllocs/fix/navbar-right-items-styles
...
Top navbar redesign and cleanup
2019-06-13 12:04:20 +01:00
Pau Pérez Fabregat
080689ccfa
Merge pull request #3917 from luisramos0/subs_visible
...
Make subs radio button visible to all managers
2019-06-12 16:42:31 +02:00
Matt-Yorkley
785595a951
Reduce initial queries on shop page by ~95%
2019-06-12 09:47:01 +01:00
Matt-Yorkley
0aa8b1a30e
Make shop hidden ams injection consistent with other uses
2019-06-12 09:47:01 +01:00
Matt-Yorkley
874fb884b8
Refactor Angular controllers further
2019-06-12 09:47:01 +01:00
Matt-Yorkley
a91ae8947b
Only query visible enterprises
2019-06-12 09:47:01 +01:00
Matt-Yorkley
11e83af0b6
Remove duplication of enterprise angular controllers
...
We can re-use the enterprise and producers controllers here in their respective groups tabs, no need for a third controller
2019-06-12 09:47:01 +01:00
Matt-Yorkley
9703d848ef
Improve syntax in injection_helper
2019-06-12 09:47:01 +01:00
Matt-Yorkley
4155b17633
Remove tests that reference removed code
2019-06-12 09:47:01 +01:00
Matt-Yorkley
d5bd058754
Fix groups show page
...
It can definitely be cleaned up more in the future, but this should get us around a 90% reduction in page load times.
2019-06-12 09:47:01 +01:00
Matt-Yorkley
4ec46c2db6
Fix groups index page
2019-06-12 09:47:01 +01:00
Matt-Yorkley
aca1f92060
Adapt specs to new loading methods
2019-06-12 09:47:01 +01:00
Matt-Yorkley
1b8dfaf049
Fix HashNavigation reload bug
2019-06-12 09:47:01 +01:00
Matt-Yorkley
ae8f1a92e8
Remove "profiles" from /shops
2019-06-12 09:47:01 +01:00
Matt-Yorkley
698d3672a6
List only current taxons for active enterprises
2019-06-12 09:47:01 +01:00
Matt-Yorkley
ed97400a23
Improve producers performance
2019-06-12 09:47:01 +01:00
Matt-Yorkley
45d65baf8e
Improve shops performance
2019-06-12 09:47:01 +01:00
Matt-Yorkley
e329b4bfb0
Improve queries for serializers
2019-06-12 09:47:01 +01:00
Maikel Linke
76d77ceb51
Update and generalise database mirror script
...
The old script was specfic to the use in Australia and out of date. The
new version isn't perfect but works well for me.
2019-06-12 10:19:56 +10:00
luisramos0
f23094df09
Fix file name of js unit test files in admin/order_cycles/controllers
2019-06-11 21:28:55 +01:00
luisramos0
9c539da811
Fix rubocop issue in schedules_controller.collection by extracting method
2019-06-11 21:28:55 +01:00
luisramos0
6cf705ea55
In the order cycle pages (both create and edit, both simple and normal), add OC coordinator to schedules request to the server and make the controller filter schedules of order cycles coordinated by that enterprise id.
2019-06-11 21:28:52 +01:00
Maikel Linke
d1901cbea4
Allow class_eval to have more than 25 lines
2019-06-11 18:01:41 +01:00
Maikel Linke
5c72c35060
Use better credit card factory for subs specs
...
The specs for subscriptions were creating simple one-time-use credit
cards. They should not be used for subscriptions. After this was fixed
in previous commits, these integration tests failed. Now we use a new
factory that mimics stored credit cards that can be used for
subscriptions.
2019-06-11 18:01:41 +01:00
Maikel Linke
b3b8cb778f
Make only reusable credit cards the default card
...
https://github.com/openfoodfoundation/openfoodnetwork/issues/3727
When a user didn't have a default credit card and then checked out with
a credit card it became the default even when the user didn't intend to
store it. That lead to subscriptions trying to charge a one-time card
which fails.
2019-06-11 18:01:41 +01:00
luisramos0
d8a7f60f40
Make subs radio button visible to all managers
2019-06-11 17:21:13 +01:00
Maikel Linke
a10bb5acbd
Consider deleted products when creating permalinks
...
https://github.com/openfoodfoundation/openfoodnetwork/issues/3844
Spree's implementation and our implementation to create a unique
permalink failed to notice conflicts with soft-deleted products. This
patch looks at deleted products as well.
2019-06-11 18:20:41 +10:00
Kristina Lim
cf11ef8ba2
Ignore parameter list length for ProductImport::EntryValidator
...
This can be done in a separate PR. More tests might be needed when
extracting to a class.
2019-06-10 04:20:04 +08:00
Kristina Lim
8c69ee67b8
Refactor code for validating variant in reference to existing product
2019-06-10 04:20:04 +08:00
Kristina Lim
70614de955
Require product import rows to match unit of preceding rows
2019-06-10 04:20:03 +08:00
Kristina Lim
5d282f7e9f
Update code layout in ProductImporter method
2019-06-10 04:20:03 +08:00
Kristina Lim
73b388da87
Simplify product import all_entries method
2019-06-10 04:20:03 +08:00
Kristina Lim
38519b2bae
Simplify building of product import entries for range
2019-06-10 04:19:50 +08:00
Kristina Lim
37101a6b64
Extract build_entries_from_rows for product import
2019-06-09 23:38:36 +08:00
dependabot-preview[bot]
93811a6d8f
Bump i18n-js from 3.2.2 to 3.3.0
...
Bumps [i18n-js](https://github.com/fnando/i18n-js ) from 3.2.2 to 3.3.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/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-06 19:19:50 +00:00
luisramos0
ff2901a9d1
Add address suburb translation key to fix edit subscription address page
...
Keeping these in the root of the translations file so that they can be used in other places later
2019-06-04 20:59:45 +01:00
luisramos0
9944f3e1e6
Make translations of tooltips in subscriptions list page work again
2019-06-04 20:59:45 +01:00
luisramos0
cfcf73b6a1
Make save and saving messages translatable in subscriptions items panel
2019-06-04 20:59:45 +01:00
luisramos0
eb42e81afc
Make some text entries translatable in create subscription pages: title in step 1 details and 4 review and date placeholders in step 1 details
2019-06-04 20:59:45 +01:00
luisramos0
64af81a4a2
Make search_by_email text translatable in subscriptions list page
2019-06-04 20:59:42 +01:00
luisramos0
1a4e83d633
Change products controller to clear variants unit description if variant_unit is items
2019-06-01 16:56:17 +01:00
luisramos0
9078a1edaa
Add missing translation keys to the create product page: fields names displayed in error messages
2019-05-30 23:50:51 +01:00
luisramos0
32c107ab5a
move translation to use relative path so that the new translation key is used
2019-05-30 23:26:23 +01:00
Masha
fbf52dd1f9
removed translations that are not required, left exchange_form.remove key but reference a global remove in the table
2019-05-30 23:08:05 +01:00
Masha
436a2ba0a2
went much shorted way
2019-05-30 23:08:05 +01:00
Masha
412fffba1d
the translations for Remove in the exchange forms added
2019-05-30 23:08:05 +01:00
luisramos0
5024da4123
Make tag rules type descriptions in the management page translatable
2019-05-30 20:39:58 +01:00
luisramos0
6620243603
Make the submit button on the add tag rule dialog translatable
2019-05-30 20:22:02 +01:00
luisramos0
48361b146c
Add translation keys to actions in the order payments list page
2019-05-30 20:13:17 +01:00
luisramos0
1d4529092f
Make fee type options in enterprise fees page translatable
2019-05-30 00:46:20 +01:00
luisramos0
6e08310744
Make the fields in the column calculator values in the enterprise fees page translatable for all fields of all current calculators
2019-05-29 21:57:03 +01:00
luisramos0
5719455731
Make enterprise fees name placeholder translatable
2019-05-29 21:33:30 +01:00
Kristina Lim
99f163d294
Make code style changes for spec file
2019-05-28 21:32:25 +08:00
Kristina Lim
75fdfb3c6a
Remove some usage of guard clauses for OC update
2019-05-28 21:32:25 +08:00
Kristina Lim
56a2347ea0
Extract removal of unauthorized OC exchange attributes to method
2019-05-28 21:29:20 +08:00
Kristina Lim
ea8d189d6c
Bulk update OC variant changes in OC form
2019-05-28 21:27:43 +08:00
Kristina Lim
bc6f14105e
Require spec_helper.rb in spec file for OC form applicator
2019-05-28 21:26:33 +08:00
Kristina Lim
9def777d02
Install activerecord-import gem
2019-05-28 21:26:32 +08:00
luisramos0
4143c50b1f
Move joyride translations to the correct path
2019-05-24 23:54:00 +01:00
luisramos0
dc32d282a6
Fix some rubocop issues in menu css file
2019-05-24 23:54:00 +01:00
luisramos0
2654db7c82
Add new menu style as per design
2019-05-24 23:53:56 +01:00
luisramos0
0dc0776705
Separate mobile menu cart code from large menu cart code
2019-05-24 15:17:41 +01:00
luisramos0
ec9d50c824
Add new cart icon and extract cart joyride from cart haml file
2019-05-24 15:16:36 +01:00
luisramos0
60c08347a5
Extract language selector from large menu haml file, add language name and clean up the code that generates the shopping@ label
2019-05-24 15:12:31 +01:00
luisramos0
15360971b0
Move signed_* files to views/shared/menu and add new logged in and profile icons
2019-05-23 15:58:02 +01:00
jazzdragon
37d15a1be3
Add classes to indicate collapsible is for medium screens or smaller
2019-05-04 20:12:12 -07:00
jazzdragon
623471290e
Make sure styling doesn't get messed up if resizing down and back up
2019-05-04 19:52:08 -07:00
jazzdragon
a876f81f0a
Make collapsible always visible on large screen
2019-05-04 19:48:30 -07:00
jazzdragon
271330d2fc
Add collapsible elements and styles
2019-05-04 19:43:46 -07:00