Jean-Baptiste Bellet
71dc5a8ff0
remove trailing space
2021-01-11 16:29:13 +01:00
Jean-Baptiste Bellet
e34050f7cb
add wrapper to show/hide loading spinner
2021-01-11 16:23:22 +01:00
Jean-Baptiste Bellet
544a7407e3
specify max-width to not overflow parent element
2021-01-11 16:22:47 +01:00
Jean-Baptiste Bellet
1b4254a5cf
Revert "replace code by reusable component"
...
This reverts commit 4d953abbe9 .
2021-01-11 16:12:17 +01:00
Jean-Baptiste Bellet
6f24ecd973
replace code by reusable component
...
There is no need to add .text-center as it's already on the parent component
2021-01-11 11:20:00 +01:00
Jean-Baptiste Bellet
4d953abbe9
replace code by reusable component
...
in a js file
2021-01-11 11:18:54 +01:00
Jean-Baptiste Bellet
b02b36b8e8
replace code by reusable component
2021-01-11 11:18:34 +01:00
Jean-Baptiste Bellet
776a61d1d9
create loading spinner reusable component
2021-01-11 11:17:33 +01:00
Andy Brett
c12abf8057
Merge pull request #6617 from Matt-Yorkley/stock-items-variant-deletion
...
Stock items and variant deletion
2021-01-09 12:12:24 -08:00
Andy Brett
9cc0f74314
Merge pull request #6620 from mkllnk/6616-emphasize-qty-button-disabled
...
Emphasize disabled Add button when out of stock
2021-01-09 11:34:57 -08:00
Andy Brett
3877721209
Merge pull request #6631 from Matt-Yorkley/actionmailer-deliver
...
[Deprecation] Replace ActionMailer#deliver with ActionMailer#deliver_now
2021-01-08 17:42:31 -08:00
Andy Brett
d6656804eb
Merge pull request #6557 from luisramos0/rubocop
...
Rubocop exceptions update
2021-01-08 17:36:23 -08:00
Andy Brett
08dcb13fca
Merge pull request #6578 from Matt-Yorkley/products-endpoint-content-type
...
Products endpoint content type
2021-01-08 17:34:26 -08:00
Matt-Yorkley
69640dc785
Tidy up producer mailer spec
...
This is covered in two other spec files relating to order cycles, the producer mailer spec doesn't need to know what calls the producer mailer.
2021-01-09 00:07:50 +00:00
Matt-Yorkley
a9706fa5f1
Update syntax in rake task
2021-01-08 23:18:55 +00:00
Matt-Yorkley
9d5eaa1790
Delete dead code in delayed job spec helper
2021-01-08 23:18:55 +00:00
Matt-Yorkley
496f2dab69
Ensure Jobs are instantiated correctly
...
We should not be using `Delayed::Job.enqueue` anywhere...
2021-01-08 23:18:55 +00:00
Matt-Yorkley
2dc918ff59
Ensure all Job classes correctly inherit from ActiveJob
2021-01-08 23:18:55 +00:00
Matt-Yorkley
ff962c1c9b
Change various Mailer invocations from #deliver_now to #deliver_later
2021-01-08 23:18:55 +00:00
Luis Ramos
2e4a206825
Add new offenses to exceptions file
2021-01-08 22:43:15 +00:00
Luis Ramos
0b45533237
Update rubocop todo list
2021-01-08 22:43:15 +00:00
Andy Brett
53b119ddb7
Merge pull request #6630 from coopdevs/update-haml-lint-config
...
Update haml lint config
2021-01-08 13:46:57 -08:00
Andy Brett
05f6337e7d
Merge pull request #6622 from openfoodfoundation/dependabot/bundler/ddtrace-0.44.0
...
Bump ddtrace from 0.43.0 to 0.44.0
2021-01-08 13:39:07 -08:00
Matt-Yorkley
3e6445c51c
Replace deprecated ActionMailer#deliver with ActionMailer#deliver_now
...
DEPRECATION WARNING: `#deliver` is deprecated and will be removed in Rails 5. Use `#deliver_now` to deliver immediately or `#deliver_later` to deliver through Active Job.
2021-01-08 20:35:47 +00:00
Matt-Yorkley
87b14f0237
Avoid using #allow_any_instance_of
2021-01-08 17:47:09 +00:00
Matt-Yorkley
3b1ad29d20
Fix view rendering in Api::BaseController
2021-01-08 17:47:09 +00:00
Matt-Yorkley
eec9f27353
Move controller concern to correct directory
...
This is a controller concern, it should live in app/controllers/concerns/
2021-01-08 17:47:09 +00:00
Matt-Yorkley
d90ed56603
Add missing test for Api::OrderCyclesController responses
2021-01-08 17:47:09 +00:00
Matt-Yorkley
0dd57fc3de
Render an empty JSON object instead of a blank string
2021-01-08 17:47:09 +00:00
Matt-Yorkley
04e4893723
Update route declarations in caching spec
2021-01-08 17:47:09 +00:00
Matt-Yorkley
4ba3c81f90
Update route declaration in karma test
2021-01-08 17:47:09 +00:00
Matt-Yorkley
261ed751cb
Remove explicit content_type declarations in Api::OrderCyclesController
...
This should be handled in `Api::BaseController`
2021-01-08 17:47:09 +00:00
Matt-Yorkley
d0800b5e32
Specify json format for API routes that return json in OrderCycleResource
2021-01-08 17:47:09 +00:00
Pau Pérez Fabregat
95ab6c7d83
Merge pull request #6627 from Matt-Yorkley/dead-code-product-available
...
Delete dead code Spree::Product#available?
2021-01-08 17:35:21 +01:00
Pau Perez
b08a918ba5
Do not check for spaces inside the braces of hash
...
This shuts the annoying lint error
```
Hash attribute should start with one space after the opening brace
Hash attribute should end with one space before the closing brace
```
and it aligns with our existing style. See
https://github.com/openfoodfoundation/openfoodnetwork/pull/6629 as an
example.
2021-01-08 17:22:37 +01:00
Pau Perez
03bb9899fa
Copy Hound's default Haml lint config
2021-01-08 17:22:36 +01:00
dependabot[bot]
96cf1c0514
Bump ddtrace from 0.43.0 to 0.44.0
...
Bumps [ddtrace](https://github.com/DataDog/dd-trace-rb ) from 0.43.0 to 0.44.0.
- [Release notes](https://github.com/DataDog/dd-trace-rb/releases )
- [Changelog](https://github.com/DataDog/dd-trace-rb/blob/master/CHANGELOG.md )
- [Commits](https://github.com/DataDog/dd-trace-rb/compare/v0.43.0...v0.44.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-01-08 16:20:47 +00:00
Pau Pérez Fabregat
8ca51c8b72
Merge pull request #6626 from Matt-Yorkley/flaky-oc-simple-spec
...
[Flaky Spec] Improve simple OC spec
2021-01-08 17:18:43 +01:00
Matt-Yorkley
0949e72c88
Merge pull request #6597 from Matt-Yorkley/cancancan
...
Switch from cancan to cancancan
2021-01-08 17:15:08 +01:00
Pau Perez
6e689c4607
Update all locales with the latest Transifex translations
v3.5.0
2021-01-08 16:18:31 +01:00
Pau Pérez Fabregat
9cf71c703d
Merge pull request #6615 from Matt-Yorkley/money
...
Money!
2021-01-08 13:24:14 +01:00
Matt-Yorkley
c281c67d0e
Switch from cancan to cancancan
...
Development of cancan stopped in 2013. cancancan is the active fork of the defunct original, and has been updated many times to keep up with changes in newer Rails and Ruby versions.
2021-01-08 12:02:18 +00:00
Pau Pérez Fabregat
b51d8c573a
Merge pull request #6614 from Matt-Yorkley/api-errors
...
API Bugnag errors
2021-01-08 12:59:11 +01:00
Pau Pérez Fabregat
47774b3b2e
Merge pull request #6628 from openfoodfoundation/dependabot/bundler/rubocop-1.8.0
...
Bump rubocop from 1.7.0 to 1.8.0
2021-01-08 12:57:14 +01:00
Pau Pérez Fabregat
3927f56ed4
Merge pull request #6444 from openfoodfoundation/dependabot/bundler/kaminari-1.2.1
...
[Security] Bump kaminari from 0.17.0 to 1.2.1
2021-01-08 12:47:59 +01:00
Pau Pérez Fabregat
bd83443595
Merge pull request #6611 from jibees/6196-fix-text-wrapping-on-oc
...
6196 fix text wrapping on oc
2021-01-08 11:48:41 +01:00
Pau Pérez Fabregat
27e83392bf
Merge pull request #6536 from coopdevs/enable-new-customer-balance-to-core-team
...
Enable new customer balance for the beta testers
2021-01-08 11:24:23 +01:00
dependabot[bot]
11ce9b943f
Bump rubocop from 1.7.0 to 1.8.0
...
Bumps [rubocop](https://github.com/rubocop-hq/rubocop ) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases )
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v1.7.0...v1.8.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-01-08 05:39:09 +00:00
Andy Brett
d78e8acee7
Merge pull request #6619 from luisramos0/remove_oj
...
Remove unused dependency
2021-01-07 12:43:09 -08:00
Andy Brett
3073a9b588
Merge pull request #6618 from luisramos0/byebug
...
Upgrade pry
2021-01-07 12:41:43 -08:00