Luis Ramos
3dc3e0970e
Update image default styles
2020-10-20 11:31:01 +01:00
Luis Ramos
10ed1f04c1
Revert default styles to what they were before, we can do this in a separate PR
2020-10-20 11:25:55 +01:00
Luis Ramos
16f9ef4ace
Simplify method
2020-10-20 11:20:37 +01:00
Luis Ramos
f4d8bdc17e
Fix easy rubocop issues
2020-10-20 11:20:37 +01:00
Luis Ramos
f3490e5668
Replace Spree::Image with self
2020-10-20 11:20:37 +01:00
Luis Ramos
7cf6518175
Set default values for styles directly in the attachment property without using Spree::Config
...
Only use ENV vars for attachment path and url coming from ofn-install
2020-10-20 11:20:37 +01:00
Luis Ramos
d15abe14d1
Join reformat styles and set attachement definitions and explain why we need to run them every time Spree::Image is loaded although this is also done in the spree initializer
2020-10-20 11:20:37 +01:00
Luis Ramos
6151c7420b
Move S3 attachment definitions to Spree::Image
2020-10-20 11:20:37 +01:00
Luis Ramos
fdd7049857
Reuse Spree::Image.set_attachment_definitions
2020-10-20 11:20:37 +01:00
Luis Ramos
b66ad71017
Move image settings config out of Spree::config initialization
2020-10-20 11:20:37 +01:00
Luis Ramos
98c5fdcf26
Reuse some code from Spree::Image in the spree initializer and extract some code to a class method so we can reuse afterwards
2020-10-20 11:20:37 +01:00
Luis Ramos
25ab5f7f24
Move reformat_styles to initializer, it's the only place where it is used
2020-10-20 11:20:37 +01:00
Luis Ramos
a5a55b3c10
Add settings initialization from previous image settings controller to spree initializer
2020-10-20 11:20:37 +01:00
Luis Ramos
0f06195baa
Remove Image settings page, these settings will come from ofn-install now
2020-10-20 11:20:37 +01:00
Luis Ramos
bebffcc90f
Set new S3 and attachments configs from ofn-install
2020-10-20 11:20:37 +01:00
Luis Ramos
c291639962
Merge pull request #6156 from razanjoshi/add_simplecov
...
Add coverage threshold for simplecov.
2020-10-20 09:40:07 +01:00
Transifex-Openfoodnetwork
de4aab6cf7
Updating translations for config/locales/en_US.yml
2020-10-20 02:03:21 +11:00
Luis Ramos
c0880a1b9a
Merge pull request #6191 from mkllnk/draft-release
...
Add script to draft release notes
2020-10-19 12:22:24 +01:00
Arun Kumar Mohan
b0fa1464f8
Remove fire_event method usage
2020-10-18 20:36:38 -05:00
Luis Ramos
e6baca37c4
Merge pull request #6215 from Matt-Yorkley/states-filepath
...
Fix deployments
2020-10-18 23:16:53 +01:00
Matt-Yorkley
58c0d90575
Fix error in countries.rb
2020-10-18 19:49:48 +01:00
Matt-Yorkley
dc06f60d2c
Merge pull request #6211 from openfoodfoundation/dependabot/bundler/webmock-3.9.3
...
Bump webmock from 3.9.2 to 3.9.3
2020-10-18 12:22:07 +02:00
Daniel Santamaría
ca2d66eacf
Open PostgreSQL port in docker-compose
2020-10-18 08:45:08 +02:00
Arun Kumar Mohan
c65108731c
Define supplier_ids in inventory_reset_strategy specs for clarity
2020-10-17 20:12:14 -05:00
Arun Kumar Mohan
5928eba767
Use build to validate objects from the shipping method factory
2020-10-17 19:59:21 -05:00
Arun Kumar Mohan
874d33caaa
Convert multiline blocks to single-line ones
2020-10-17 19:44:57 -05:00
Matt-Yorkley
4cd645b60e
Merge pull request #6150 from openfoodfoundation/luisramos0-patch-1
...
Make the release notes intructions a bit more clear so new contributors make them short
2020-10-18 00:44:06 +02:00
Matt-Yorkley
961fbd22cf
Merge pull request #6183 from openfoodfoundation/dependabot/bundler/activerecord-import-1.0.7
...
Bump activerecord-import from 1.0.6 to 1.0.7
2020-10-18 00:42:17 +02:00
Matt-Yorkley
b7c8bae9e8
Merge pull request #6185 from openfoodfoundation/dependabot/bundler/i18n-js-3.8.0
...
Bump i18n-js from 3.7.1 to 3.8.0
2020-10-18 00:41:09 +02:00
Matt-Yorkley
3612386463
Make loading of Zones in db:seed idempotent (and avoid fatal errors if run twice)
2020-10-17 18:08:28 +01:00
Matt-Yorkley
e9e7bdc6cd
Set Spree::Config[:default_country_id]` from ENV vars if default country specified.
2020-10-17 17:54:48 +01:00
Matt-Yorkley
d1c066d360
Move states.yml back to it's former filepath
2020-10-17 17:14:26 +01:00
Rajan Joshi
13fe8b6198
Add more directories to filter.
2020-10-17 15:55:22 +01:00
Tsara Sudrajat
66be86cca9
Fix translation on reset password mailer
2020-10-17 17:59:54 +07:00
dependabot-preview[bot]
b2e14b36dd
Bump webmock from 3.9.2 to 3.9.3
...
Bumps [webmock](https://github.com/bblimke/webmock ) from 3.9.2 to 3.9.3.
- [Release notes](https://github.com/bblimke/webmock/releases )
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bblimke/webmock/compare/v3.9.2...v3.9.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-10-17 07:47:24 +00:00
Jason Hsu
f9f054c611
Removed DOCKER.md (redundant)
2020-10-16 11:31:48 -05:00
Paolo Rossi
4a60d7ef0e
Update the base Ubuntu Docker image from 18.04 to 20.04
2020-10-16 17:26:08 +02:00
Transifex-Openfoodnetwork
9445093ea8
Updating translations for config/locales/en_FR.yml
2020-10-17 01:26:13 +11:00
Transifex-Openfoodnetwork
a4f00f0152
Updating translations for config/locales/fr.yml
2020-10-17 01:25:38 +11:00
Cillian O'Ruanaidh
35110eaf4a
Make sure :sorting parameter is nested inside the :q parameter to fix sorting of admin products
...
Fixes #6105 .
2020-10-16 15:21:15 +01:00
Luis Ramos
2711139420
Re-use existing stripe stub
2020-10-16 12:37:44 +01:00
Luis Ramos
cf319d3f05
Extract customers stripe stub to StripeStubs helper
2020-10-16 12:37:44 +01:00
Luis Ramos
f5f9a733fb
Fix rubocop issue, long module, by extracting StripeStubs to a separate helper module
2020-10-16 12:37:42 +01:00
Cillian O'Ruanaidh
c62f1bd550
Exclude products_reset_strategy_spec.rb from Rubocop's Metrics/ModuleLength check
2020-10-16 12:13:55 +01:00
Luis Ramos
05bb75db00
Merge pull request #6089 from luisramos0/seed_data
...
[Bye bye spree] Prepare seed data for bye bye spree
2020-10-16 11:55:27 +01:00
Cillian O'Ruanaidh
2cc751cb30
When resetting stock to 0 on absent products in product import also reset the on demand setting
...
Before when you imported products and clicked the 'Set stock to zero for all existing products not present in the file' option it would set the on hand stock to 0 but if the variant was also set to be on demand the product would still be available for sale. This change makes sure the on demand setting is turned off too.
Fixes #6064 .
2020-10-16 11:38:49 +01:00
Luis Ramos
487aaf4862
Extract stub to StripeHelper
2020-10-16 11:12:44 +01:00
Luis Ramos
f13ebf8f21
DRY StripeHelper
2020-10-16 11:09:52 +01:00
Luis Ramos
7e80ddf1e5
Add step to checkout with the previously saved card
2020-10-16 10:24:49 +01:00
Luis Ramos
7efc52075e
First attempt at adding a spec to checkout and save a credit card
2020-10-16 09:26:19 +01:00