Jean-Baptiste Bellet
e4ad6d736b
Canceling an order: clicking on cancel btn or cancel action in dropdown
2023-04-20 13:53:37 +02:00
basilawwad
9f30471373
Use a shared_examples for the order cancellation tests
2023-04-20 12:28:27 +02:00
basilawwad
fa373518fb
applied modal function
...
Update variant_autocomplete.js.erb
Applied modal function
refactored function
fix indentation and removed old function
2023-04-20 11:46:02 +02:00
Maikel
89cb3b7c14
Merge pull request #10707 from mkllnk/mailer-previews
...
Fix ShipmentMailer preview autoload path
2023-04-20 11:30:25 +10:00
Filipe
3e0b358370
Merge pull request #10461 from vviekk/9978
...
Updating price, on_hand, on_demand validations for product import
2023-04-19 16:09:49 +01:00
Filipe
f206b7ed9e
Merge pull request #10661 from mkllnk/report-download
...
[Hidden] Provide download link for reports generated in the background
2023-04-19 11:53:14 +01:00
Filipe
a409d3b97e
Merge pull request #10201 from saunmanoj888/fix-invalid-image-upload
...
Fix corrupt and invalid image upload issue
2023-04-19 10:45:04 +01:00
Maikel
1f661c1e69
Merge pull request #10716 from jibees/10048-stimulusreflex-caching-warning
...
Adds caching by default in development environment to avoid StimulusReflex warning
2023-04-19 16:22:37 +10:00
saunmanoj888
97f51d24b8
Validate image on creating product from products/new
2023-04-19 16:11:46 +10:00
saunmanoj888
c3d274c84f
Fix corrupt and invalid image upload issue
2023-04-19 16:11:46 +10:00
Maikel
0b03152f3b
Merge pull request #10697 from mkllnk/rubocop-config-update
...
Update Rubocop config and replace deprecated TimeWithZone#to_s with argument
2023-04-19 11:23:34 +10:00
Maikel
6f492d868c
Merge pull request #10688 from mkllnk/application-mailer
...
Apply Rails standard to base mailer class
2023-04-19 10:29:16 +10:00
jibees
dab2a4af75
Merge pull request #10693 from jibees/10658-move-all-managed-instances-to-fully-enabled-split_checkout-toggle
...
Activate `split_checkout` feature by default
2023-04-18 17:33:48 +02:00
Jean-Baptiste Bellet
f7935bde34
Enable caching dy default, to avoid StimulusReflex warning
...
```
Heads up! 🔥
👉 StimulusReflex requires caching to be enabled. Caching allows the session to be modified during ActionCable requests.
To enable caching in development, run:
rails dev:cache
```
Documentation: https://docs.stimulusreflex.com/hello-world/setup.html#manual-configuration
2023-04-18 16:02:02 +02:00
Jean-Baptiste Bellet
61850f7e92
Remove duplicate line
...
Probably due to a bad merge conflict resolution
Line is already on line `#25`
2023-04-18 16:01:04 +02:00
jibees
7df456c1e3
Merge pull request #10715 from openfoodfoundation/dependabot/bundler/puma-6.2.2
...
Bump puma from 6.2.1 to 6.2.2
2023-04-18 15:04:17 +02:00
Konrad
2fa86492d1
Merge pull request #10653 from openfoodfoundation/10645-pagination-in-bom-not-aggregating-results-when-clicking-a-productvariant
...
BOM: When selecting a specific variant, trigger a new search that avoid pagination issues
2023-04-18 14:49:14 +02:00
dependabot[bot]
85860692ae
Bump puma from 6.2.1 to 6.2.2
...
Bumps [puma](https://github.com/puma/puma ) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/puma/puma/releases )
- [Changelog](https://github.com/puma/puma/blob/master/History.md )
- [Commits](https://github.com/puma/puma/compare/v6.2.1...v6.2.2 )
---
updated-dependencies:
- dependency-name: puma
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-18 09:59:41 +00:00
jibees
8ad4d2cc2e
Merge pull request #10708 from openfoodfoundation/dependabot/npm_and_yarn/webpack-dev-server-4.13.3
...
Bump webpack-dev-server from 4.13.2 to 4.13.3
2023-04-18 10:15:01 +02:00
David Cook
c967eca9c4
Merge pull request #10713 from openfoodfoundation/dependabot/npm_and_yarn/ansi-regex-4.1.1
...
Bump ansi-regex from 4.1.0 to 4.1.1 (security patch)
2023-04-18 15:34:24 +10:00
David Cook
7fff82eec3
Merge pull request #10710 from openfoodfoundation/dependabot/bundler/rubocop-1.50.2
...
Bump rubocop from 1.50.1 to 1.50.2
2023-04-18 15:24:40 +10:00
dependabot[bot]
c30ed0f7c8
Bump rubocop from 1.50.1 to 1.50.2
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.50.1 to 1.50.2.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.50.1...v1.50.2 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-18 04:51:38 +00:00
David Cook
cde420716b
Merge pull request #10709 from openfoodfoundation/dependabot/bundler/rubocop-rails-2.19.1
...
Bump rubocop-rails from 2.19.0 to 2.19.1
2023-04-18 14:50:11 +10:00
David Cook
ee37c5d4a3
Merge pull request #10699 from dacook/sass-deprecations
...
Sass deprecations
2023-04-18 11:48:56 +10:00
dependabot[bot]
e9d236f761
Bump ansi-regex from 4.1.0 to 4.1.1
...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex ) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases )
- [Commits](https://github.com/chalk/ansi-regex/compare/v4.1.0...v4.1.1 )
---
updated-dependencies:
- dependency-name: ansi-regex
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-18 00:05:00 +00:00
Gaetan Craig-Riou
8b78c28feb
Merge pull request #10702 from openfoodfoundation/dependabot/npm_and_yarn/cable_ready-5.0.0
...
Bump cable_ready from 5.0.0-rc2 to 5.0.0
2023-04-18 10:02:59 +10:00
Filipe
871b2f8816
Merge pull request #10696 from mkllnk/login-as-admin
...
Simplify login test helpers
2023-04-17 12:14:06 +01:00
dependabot[bot]
214bdc6fbe
Bump rubocop-rails from 2.19.0 to 2.19.1
...
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails ) from 2.19.0 to 2.19.1.
- [Release notes](https://github.com/rubocop/rubocop-rails/releases )
- [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.19.0...v2.19.1 )
---
updated-dependencies:
- dependency-name: rubocop-rails
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-17 10:01:45 +00:00
dependabot[bot]
d2fce053a7
Bump webpack-dev-server from 4.13.2 to 4.13.3
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.13.2 to 4.13.3.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.13.2...v4.13.3 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-17 09:57:50 +00:00
Jean-Baptiste Bellet
11a7aa9f96
When clicking on "Clear Filters" button, to not reset variant selection
...
+ add some specs to cover that particular case
2023-04-17 11:08:17 +02:00
Jean-Baptiste Bellet
c0203e7091
Refactor by putting two specs into a shared_example
...
"It's a Surprise Tool That Will Help Us Later"
2023-04-17 11:06:23 +02:00
Maikel
44cc5cc665
Merge pull request #10677 from mkllnk/spec-helpers
...
Simplify spec helpers
2023-04-17 16:16:29 +10:00
Maikel Linke
6c8e383ab8
Fix ShipmentMailer preview autoload path
...
The Zeitwerk autoloader requires class names and file names to match. In
this case, the class had a Spree namespace without being in a spree
folder. The preview couldn't be displayed. Now it can be displayed.
2023-04-17 15:18:22 +10:00
Maikel Linke
5c6d9a092e
Simplify login spec helpers, avoid long lines
...
The `login_as_admin_and_visit` helper was used a lot but isn't really
shorter than:
login_as_admin
visit path_visit
Calling those methods separately reduces line length. It also removes
the potential impression that it may be more efficient to use the
helper. Now we have less indirection if one of the calls fails and see
the failing spec line straight away.
2023-04-17 11:08:32 +10:00
Maikel Linke
8d500a2c27
Remove superflouous login test helper
...
It was often used with a `visit` statement after which resulted in
unnecessary page loads. There was only one case where a `visit` was
expected but it wasn't needed either.
2023-04-17 10:56:51 +10:00
Maikel Linke
425674c4e5
Remove unused return value of admin login helper
...
Well, there was one use of the return helper. But I don't think that
it's a very intuitive method.
2023-04-17 10:56:51 +10:00
Konrad
e91e827f29
Merge pull request #10664 from abdellani/fix-remove-duplicated-cusomter-from-mailing-list-report
...
Fix Repeated customer entries on Mailing List Report
2023-04-16 21:17:33 +02:00
Konrad
8f201c830a
Merge pull request #10665 from abdellani/fix-remove-duplicated-cusomter-from-addresses-list-report
...
Fix Repeated customer entries on Addresses List Report
2023-04-16 20:40:56 +02:00
Konrad
1b536d9265
Merge pull request #10601 from abdellani/fix-v1-customers-endpoint-should-only-return-managed-enterprise-customers
...
fix: v1/customers endpoint should load customers of managed enterprises only
2023-04-16 16:22:02 +02:00
Mohamed ABDELLANI
1b8a9244a6
test when user is a non-persisted object
2023-04-15 06:16:40 +01:00
dependabot[bot]
a40e883d17
Bump cable_ready from 5.0.0-rc2 to 5.0.0
...
Bumps [cable_ready](https://github.com/stimulusreflex/cable_ready ) from 5.0.0-rc2 to 5.0.0.
- [Release notes](https://github.com/stimulusreflex/cable_ready/releases )
- [Changelog](https://github.com/stimulusreflex/cable_ready/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stimulusreflex/cable_ready/commits/v5.0.0 )
---
updated-dependencies:
- dependency-name: cable_ready
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-14 09:57:54 +00:00
Jean-Baptiste Bellet
6bf21d2abd
SASS loader: Do not print warnings from dependencies
2023-04-14 11:09:39 +02:00
David Cook
29b9777a96
Replace deprecated sass division operator
...
https://sass-lang.com/documentation/breaking-changes/slash-div
> Sass currently treats / as a division operation in some contexts and a separator in others. This makes it difficult for Sass users to tell what any given / will mean, and makes it hard to work with new CSS features that use / as a separator.
There's a handy migrator:
npm install -g sass-migrator
sass-migrator division **/*.scss
And it cleverly avoids the need for the ugly division method in most cases.
2023-04-14 17:59:01 +10:00
David Cook
283dd84ad6
Add expected whitespace
...
The migrator refused to proceed until I fixed this.
2023-04-14 17:56:24 +10:00
Maikel Linke
03828c5608
Style Rails/ToSWithArgument
2023-04-14 16:34:51 +10:00
Maikel Linke
dad4061ff9
Style Rails/ToFormattedS
2023-04-14 16:32:39 +10:00
Maikel Linke
b19df0dfbf
Enable new Rubocop cops
...
This detects an additional 639 offenses which I added to the todo file.
From now on, when Dependabot bumps rubocop the build may fail due to new
cops. But that's a great opportunity to utilise those new cops and fix
violations straight away. Otherwise we'll never get to them and lose out
on useful autocorrection, for example for updating deprecated syntax.
2023-04-14 16:28:20 +10:00
Maikel Linke
efb2ae6843
Style Rails/Pick - rubocop passes completely
2023-04-14 16:22:46 +10:00
Maikel Linke
407fca17cb
Style Rails/IndexWith
2023-04-14 16:19:21 +10:00
Maikel Linke
33409725a5
Run rubocop-rails with current Rails version 7.0
...
This adds three new issues I will address in the next commits.
```
Offenses:
app/json_schemas/json_api_schema.rb:40:7: C: [Correctable] Rails/IndexWith: Prefer index_with over to_h { ... }.
relationships.to_h { |name| [name, relationship_schema(name)] }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/reporting/reports/enterprise_fee_summary/base.rb:18:11: C: [Correctable] Rails/IndexWith: Prefer index_with over map { ... }.to_h.
data_attributes.map { |attr| [attr, I18n.t("header.#{attr}", scope: i18n_scope)] }.to_h
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/reporting/reports/sales_tax/sales_tax_totals_by_order.rb:140:14: C: [Correctable] Rails/Pick: Prefer pick('sum(amount)') over pluck('sum(amount)').first.
.pluck('sum(amount)').first || 0
^^^^^^^^^^^^^^^^^^^^^^^^^^
1404 files inspected, 3 offenses detected, 3 offenses autocorrectable
```
2023-04-14 16:15:13 +10:00
Maikel Linke
c70a694111
Style line length - rubocop passes completely
2023-04-14 16:12:14 +10:00
Maikel Linke
9c88c77066
Style empty lines
2023-04-14 16:05:50 +10:00
Maikel Linke
42585bb074
Remove redundant cop disable directive
2023-04-14 16:04:57 +10:00
Maikel
b0211d0930
Merge pull request #10686 from filipefurtad0/truncates_product_description
...
Sets too long line truncation spec as pending
2023-04-14 15:11:31 +10:00
Maikel
0675422509
Merge pull request #10678 from dacook/show-commit-in-ci
...
Show commit in CI
2023-04-14 14:43:44 +10:00
Maikel
5ff1b0d358
Merge pull request #10676 from filipefurtad0/fix_spec_ts_and_cs
...
Adds pending test for default ToS
2023-04-14 14:00:32 +10:00
Maikel Linke
43cbac7d17
Simplify report filename generation
2023-04-14 11:29:36 +10:00
Maikel Linke
98e4f867b4
Provide download link for generated reports
2023-04-14 11:29:35 +10:00
Maikel Linke
ebb15781d5
Store report's filename within the blob
...
For future downloads outside the ReportsController.
2023-04-14 11:29:35 +10:00
Maikel Linke
028c4f4281
Simplify ReportJob by extracting model for result
...
This makes the code heaps simpler.
2023-04-14 11:29:35 +10:00
Maikel Linke
ef7dfa3b4f
Store reports with Active Storage
...
This will enable us to offer download links and clean them up
automatically.
2023-04-14 11:29:35 +10:00
Maikel Linke
71f9415d21
Use ApplicationJob as it's a Rails default
2023-04-14 11:29:35 +10:00
Maikel Linke
12848acf21
Fix typo
2023-04-14 11:29:35 +10:00
Maikel Linke
4f751c2711
Leverage test helpers for enqueued jobs
...
The production code calls `perform_later` and it's better to do the same
in specs. Handy test helper allow us to control the execution.
Credit to https://github.com/cyrillefr .
2023-04-14 11:29:35 +10:00
jibees
920e2564a4
Merge pull request #10692 from openfoodfoundation/dependabot/bundler/rubocop-1.50.1
...
Bump rubocop from 1.50.0 to 1.50.1
2023-04-13 13:45:28 +02:00
Jean-Baptiste Bellet
6b4e150e2a
Active split_checkout feature by default
2023-04-13 13:21:23 +02:00
dependabot[bot]
2d43e32688
Bump rubocop from 1.50.0 to 1.50.1
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.50.0 to 1.50.1.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.50.0...v1.50.1 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-13 09:57:38 +00:00
David Cook
a6cd393c57
Update all locales with the latest Transifex translations
2023-04-13 16:45:38 +10:00
Filipe
b1060bf1c9
Merge pull request #10640 from openfoodfoundation/dependabot/bundler/stripe-8.5.0
...
Bump stripe from 8.3.0 to 8.5.0
2023-04-12 19:27:18 +01:00
Filipe
1bf5fbaf3a
Merge pull request #10449 from macanudo527/fix_ER
...
Update OCs after ER Permissions are Revoked
2023-04-12 18:59:20 +01:00
Konrad
2ace3afd67
Merge pull request #10606 from thejwuscript/10116-improve-bom-sorting
...
Sort orders by last name
2023-04-12 16:36:45 +02:00
Konrad
0bfceb877d
Merge pull request #10666 from jibees/9723-admin-missing-translation-in-payment-report
...
Admin, Payment reports: add missing translation for payment state
2023-04-12 15:47:23 +02:00
Filipe
c1d28b2e8f
Merge pull request #10119 from binarygit/donot-hide-producers-name-in-products
...
Display producer's name in products inspite of hide all refs option
2023-04-12 13:07:52 +01:00
Jean-Baptiste Bellet
2841b42296
Specify truncate parameter as we don't always truncate description
...
Only when too long.
2023-04-12 10:34:30 +02:00
jibees
98e44e7a40
Merge pull request #10687 from openfoodfoundation/dependabot/bundler/nokogiri-1.14.3
...
Bump nokogiri from 1.14.2 to 1.14.3
2023-04-12 10:25:56 +02:00
jibees
51c6c19f80
Merge pull request #10669 from openfoodfoundation/dependabot/bundler/sidekiq-7.0.8
...
Bump sidekiq from 7.0.7 to 7.0.8
2023-04-12 10:24:59 +02:00
filipefurtad0
26947a64c0
Adds test to check pagination upon line-item selection
2023-04-12 09:58:01 +02:00
Jean-Baptiste Bellet
df5c21048a
Clear on bulk submenu should reset some filters + refresh data as well
2023-04-12 09:58:01 +02:00
Jean-Baptiste Bellet
8a124fb6be
BOM: once variant has been selected, refresh data with a new search
...
- Remove variant_filter
- instantiate a new search to avoid pagination issues
2023-04-12 09:58:00 +02:00
Maikel Linke
ced49e0217
Apply Rails standard to base mailer class
...
It has the advantage that `rails generate mailer` works out of the box
and we comply with rubocop rules.
2023-04-12 16:39:20 +10:00
dependabot[bot]
75b7a1864b
Bump nokogiri from 1.14.2 to 1.14.3
...
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri ) from 1.14.2 to 1.14.3.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases )
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.14.2...v1.14.3 )
---
updated-dependencies:
- dependency-name: nokogiri
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-12 06:24:59 +00:00
Maikel Linke
281d0eb417
Simplify mailers with Rails default "from" setting
2023-04-12 16:15:51 +10:00
Maikel Linke
496f5199c9
Use DatabaseCleaner recommendation of late cleaning
...
https://github.com/DatabaseCleaner/database_cleaner#rspec-with-capybara-example
2023-04-12 14:24:07 +10:00
Maikel Linke
f13c0e1dca
Bring all Rspec config for database cleaning together
2023-04-12 14:23:09 +10:00
David Cook
f801d4a4cb
Move single-used variables to their own example
...
They were created three times each, but only used once.
2023-04-12 11:05:11 +10:00
David Cook
d94da8df1e
Update comment
2023-04-12 11:04:00 +10:00
filipefurtad0
70d9cfa08e
Sets too long line truncation spec as pending
2023-04-11 19:46:11 +01:00
jibees
193ae7936e
Merge pull request #10681 from openfoodfoundation/dependabot/bundler/rubocop-1.50.0
...
Bump rubocop from 1.49.0 to 1.50.0
2023-04-11 20:40:55 +02:00
Filipe
0971e8d9b5
Merge pull request #10644 from mkllnk/report-timeout-message
...
[Hidden] Display a friendly message when a background report times out
2023-04-11 19:40:42 +01:00
Jean-Baptiste Bellet
e78b44b9ca
Do not shows <a /> if producers is hidden
...
Different style as it does not open any modal
2023-04-11 14:27:57 +02:00
binarygit
c5779eff81
Do not open modal for producer's who are 'hidden'
2023-04-11 14:27:57 +02:00
Jean-Baptiste Bellet
b616c14f63
Don't hide producer's name in products despite hide all refs opt selected
2023-04-11 14:26:47 +02:00
Mohamed ABDELLANI
03cb14c926
define manage_by scope on customer model
2023-04-11 12:18:15 +01:00
Mohamed ABDELLANI
da78e06a39
load customers of managed enterprises only
2023-04-11 12:10:07 +01:00
dependabot[bot]
f4c351febf
Bump rubocop from 1.49.0 to 1.50.0
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.49.0 to 1.50.0.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.49.0...v1.50.0 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-11 10:05:30 +00:00
Maikel Linke
30184ac6aa
Background reports time out earlier than nginx
...
This allows us to display a friendly message before nginx displays its
default error.
2023-04-11 16:44:13 +10:00
David Cook
a123d45eca
Fix spec
...
It's worth noting that this page hasn't been updated by this PR.
I honestly don't know why it broke, but don't care anymore. It seems the extra `login_as_admin_and_visit` was causing a race condition on one spec. It's not necessary so I've removed this context.
Best viewed with whitespace ignored.
2023-04-11 16:38:49 +10:00
James Wu
a75f16e23c
Implement full_name_for_sorting
2023-04-11 15:25:20 +10:00
James Wu
546e90b286
Sort orders by last names
2023-04-11 15:25:20 +10:00
David Cook
bf9f47a000
Show commit in CI
...
actions/checkout@v3 actually creates a merge commit into master, to ensure you're testing the latest as close to master as possible.
That's all well and good, but quite confusing when you see errors in CI that aren't present in the actual PR branch. Hopefully this will be a clue when such confusions arise.
2023-04-11 15:22:19 +10:00
David Cook
3da6e6b5ed
Link to CI page
2023-04-11 15:22:12 +10:00
Maikel Linke
111705f6f2
Clarify DatabaseCleaner use only for concurrency
...
Otherwise we use transactions.
2023-04-11 14:07:27 +10:00
Maikel Linke
68d5327b12
Load all spec helpers in one place
...
These helpers are loaded depending on the spec type. We don't need to
separate them into different files.
2023-04-11 12:56:28 +10:00
Maikel Linke
688285c374
Remove loading of unused spec helpers
...
We have only one feature spec left and it's loading the
system_helper instead of the spec_helper. These lines were dead code.
2023-04-11 12:14:02 +10:00
Konrad
15058299d8
Merge pull request #10641 from openfoodfoundation/dependabot/npm_and_yarn/babel/preset-env-7.21.4
...
Bump @babel/preset-env from 7.18.2 to 7.21.4
2023-04-10 20:00:06 +02:00
filipefurtad0
4e92f33b1c
DRYes spec; adds pending test for default ToS
2023-04-10 12:08:35 +01:00
Jean-Baptiste Bellet
c7cb982c9a
Update browser list
...
```
npx update-browserslist-db@latest
```
2023-04-10 11:20:19 +02:00
Jean-Baptiste Bellet
34e9112c0a
Fix dependencies warning: adds core and `plugin-transform-runtime
2023-04-10 11:20:19 +02:00
dependabot[bot]
28eb11bda5
Bump @babel/preset-env from 7.20.2 to 7.21.4
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.20.2 to 7.21.4.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.21.4/packages/babel-preset-env )
---
updated-dependencies:
- dependency-name: "@babel/preset-env"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-10 11:20:19 +02:00
jibees
d8e82d9c88
Merge pull request #10668 from openfoodfoundation/dependabot/bundler/aws-sdk-s3-1.120.1
...
Bump aws-sdk-s3 from 1.120.0 to 1.120.1
2023-04-10 11:12:45 +02:00
Mohamed ABDELLANI
061fc321b4
group records before rending the report
2023-04-07 18:44:19 +01:00
Mohamed ABDELLANI
5201e54f82
group orders before rendering the report
2023-04-07 18:16:12 +01:00
jibees
5192a08082
Merge pull request #10673 from openfoodfoundation/dependabot/bundler/rubocop-rails-2.19.0
...
Bump rubocop-rails from 2.18.0 to 2.19.0
2023-04-07 14:33:31 +02:00
jibees
94d3f136e2
Merge pull request #10672 from openfoodfoundation/dependabot/npm_and_yarn/floating-ui/dom-1.2.6
...
Bump @floating-ui/dom from 1.2.5 to 1.2.6
2023-04-07 14:32:45 +02:00
dependabot[bot]
db3a923ea7
Bump rubocop-rails from 2.18.0 to 2.19.0
...
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails ) from 2.18.0 to 2.19.0.
- [Release notes](https://github.com/rubocop/rubocop-rails/releases )
- [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.18.0...v2.19.0 )
---
updated-dependencies:
- dependency-name: rubocop-rails
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-07 09:59:34 +00:00
dependabot[bot]
619eb43c57
Bump @floating-ui/dom from 1.2.5 to 1.2.6
...
Bumps [@floating-ui/dom](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/dom ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/floating-ui/floating-ui/releases )
- [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/dom@1.2.6/packages/dom )
---
updated-dependencies:
- dependency-name: "@floating-ui/dom"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-07 09:58:01 +00:00
filipefurtad0
680b6a7122
Update all locales with the latest Transifex translations
2023-04-07 10:17:13 +01:00
Filipe
d9e9add78b
Merge pull request #10527 from vviekk/10456
...
Fixing 'unsaved' alert behaviour for order cycle edit forms
2023-04-06 17:05:49 +01:00
Filipe
8893824b06
Merge pull request #10635 from jibees/fix-content-security-policy-for-local-images
...
Fix content security policy: authorize `ENV["SITE_URL"]` as trusted domain for images
2023-04-06 11:25:05 +01:00
dependabot[bot]
5c221621d3
Bump sidekiq from 7.0.7 to 7.0.8
...
Bumps [sidekiq](https://github.com/sidekiq/sidekiq ) from 7.0.7 to 7.0.8.
- [Release notes](https://github.com/sidekiq/sidekiq/releases )
- [Changelog](https://github.com/sidekiq/sidekiq/blob/main/Changes.md )
- [Commits](https://github.com/sidekiq/sidekiq/compare/v7.0.7...v7.0.8 )
---
updated-dependencies:
- dependency-name: sidekiq
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-06 09:58:23 +00:00
dependabot[bot]
60d7ed5036
Bump aws-sdk-s3 from 1.120.0 to 1.120.1
...
Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby ) from 1.120.0 to 1.120.1.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases )
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-ruby/commits )
---
updated-dependencies:
- dependency-name: aws-sdk-s3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-06 09:57:53 +00:00
Filipe
e71a747925
Merge pull request #10667 from jibees/10662-flaky-specqueriescustomers_with_balance_specrb26
...
Flaky: Avoid flaky spec by sorting array before comparing on `spec/queries/customers_with_balance_spec.rb:26`
2023-04-06 10:47:32 +01:00
Jean-Baptiste Bellet
eedd421055
Avoid flaky spec by sorting array before comparing
2023-04-06 10:41:42 +02:00
Jean-Baptiste Bellet
e74328f1d7
Add i18n for payment state key
...
+ update spec
2023-04-06 10:28:44 +02:00
Jean-Baptiste Bellet
bb502c2e65
Authorize localhost:3000 as trusted domain for images
2023-04-06 10:10:44 +02:00
Jean-Baptiste Bellet
6abd652251
Factorize into inherited method from Base: payment_state(order)
2023-04-06 09:50:50 +02:00
Filipe
2f6b730ed4
Merge pull request #10614 from cillian/business-address-country-state-placeholders
...
Add placeholders to business address country and state select fields
2023-04-05 19:55:07 +01:00
dependabot[bot]
3821eede51
Bump stripe from 8.3.0 to 8.5.0
...
Bumps [stripe](https://github.com/stripe/stripe-ruby ) from 8.3.0 to 8.5.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/v8.3.0...v8.5.0 )
---
updated-dependencies:
- dependency-name: stripe
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-05 16:38:33 +00:00
Filipe
2ff464321c
Merge pull request #10619 from openfoodfoundation/dependabot/npm_and_yarn/stimulus_reflex-3.5.0-rc1
...
Bump stimulus_reflex and cable_ready from 3.5.0-preX to 3.5.0-rc2
2023-04-05 17:37:15 +01:00
Filipe
fc8d9252d5
Merge pull request #10605 from abdellani/fix-impossible-to-reach-OCs-older-than-6-months
...
Fix load order cycles by date ranges
2023-04-05 17:33:51 +01:00
Rachel Arnould
3e5becf70a
Merge pull request #10538 from jibees/10537-shopfront-product-description-is-too-long
...
Shopfront: Force product description to be on one line
2023-04-05 17:42:18 +02:00
Maikel
ef841b161f
Merge pull request #10660 from MadisonBowron/master
...
Fix bug #10596 , missing translation for editing shipping category
2023-04-05 16:12:20 +10:00
Maikel
c11dd2c1fb
Merge pull request #10642 from macanudo527/fix_rubocop_errors
...
Fix Rubocop Layout/LineLength
2023-04-05 16:11:08 +10:00
Maikel Linke
8bbc545e39
Cover untranslated text by spec
2023-04-05 15:03:42 +10:00
Maikel
fc08913152
Merge pull request #10648 from openfoodfoundation/dependabot/bundler/aws-sdk-s3-1.120.0
...
Bump aws-sdk-s3 from 1.119.2 to 1.120.0
2023-04-05 14:44:22 +10:00
Maikel
19ae3651fa
Merge pull request #10643 from dacook/update-node-docker
...
Update node for docker
2023-04-05 14:43:24 +10:00
Jean-Baptiste Bellet
66307c9277
cable_ready changed its Content-Type ; update the mrujs one as well
...
Thanks @marcoroth for the great debugging session! 🙏
2023-04-05 14:19:34 +10:00
Jean-Baptiste Bellet
65084422cb
cable_ready is already imported in app/webpacker/controllers/index.js
2023-04-05 14:19:34 +10:00
Jean-Baptiste Bellet
6f8ab56d2e
Replace deprecated call render operations:
...
```
DEPRECATED: CableReady's `render operations:` call has been renamed to `render cable_ready:`. Please update your render call.
```
2023-04-05 14:19:34 +10:00
dependabot[bot]
ab6cdd4c78
Bump stimulus_reflex from 3.5.0-pre9 to 3.5.0-rc2
...
Updating JS and Ruby libraries. This commit was started by Dependabot
for 3.5.0-rc1. Then we updated to rc2.
Old Dependabot message about rc1:
Bumps [stimulus_reflex](https://github.com/stimulusreflex/stimulus_reflex ) from 3.5.0-pre9 to 3.5.0-rc1.
- [Release notes](https://github.com/stimulusreflex/stimulus_reflex/releases )
- [Changelog](https://github.com/stimulusreflex/stimulus_reflex/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stimulusreflex/stimulus_reflex/commits )
---
updated-dependencies:
- dependency-name: stimulus_reflex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Bump cable_ready from 5.0.0-pre10 to 5.0.0-rc1
Bumps [cable_ready](https://github.com/stimulusreflex/cable_ready ) from 5.0.0-pre10 to 5.0.0-rc1.
- [Release notes](https://github.com/stimulusreflex/cable_ready/releases )
- [Changelog](https://github.com/stimulusreflex/cable_ready/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stimulusreflex/cable_ready/commits )
---
updated-dependencies:
- dependency-name: cable_ready
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-05 14:19:16 +10:00
David Cook
865d81d28f
Apply suggestions from code review
2023-04-05 14:05:26 +10:00
Maikel Linke
020af0c0e4
Explain report timeout better to user
2023-04-05 09:59:02 +10:00
emiliecm
5abda22831
Fix bug #10596 , missing translation for editing shipping category
2023-04-04 19:48:16 -04:00
Cillian O'Ruanaidh
89dac47aa6
Add placeholders to business address country and state select fields
2023-04-04 19:22:22 +01:00
jibees
e18d973047
Merge pull request #10655 from filipefurtad0/fix_flaky_oc_form_spec
...
Sorts plucked shipping/payment methods
2023-04-04 15:34:39 +02:00
jibees
afeeaf0a9b
Merge pull request #10657 from openfoodfoundation/dependabot/bundler/combine_pdf-1.0.23
...
Bump combine_pdf from 1.0.22 to 1.0.23
2023-04-04 14:31:06 +02:00
jibees
3010717ece
Merge pull request #10656 from openfoodfoundation/dependabot/bundler/devise-4.9.2
...
Bump devise from 4.9.1 to 4.9.2
2023-04-04 14:30:11 +02:00
dependabot[bot]
0c48dbe0d5
Bump combine_pdf from 1.0.22 to 1.0.23
...
Bumps [combine_pdf](https://github.com/boazsegev/combine_pdf ) from 1.0.22 to 1.0.23.
- [Release notes](https://github.com/boazsegev/combine_pdf/releases )
- [Changelog](https://github.com/boazsegev/combine_pdf/blob/master/CHANGELOG.md )
- [Commits](https://github.com/boazsegev/combine_pdf/compare/v1.0.22...v1.0.23 )
---
updated-dependencies:
- dependency-name: combine_pdf
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-04 10:04:31 +00:00
dependabot[bot]
f7b215b7ac
Bump devise from 4.9.1 to 4.9.2
...
Bumps [devise](https://github.com/heartcombo/devise ) from 4.9.1 to 4.9.2.
- [Release notes](https://github.com/heartcombo/devise/releases )
- [Changelog](https://github.com/heartcombo/devise/blob/main/CHANGELOG.md )
- [Commits](https://github.com/heartcombo/devise/compare/v4.9.1...v4.9.2 )
---
updated-dependencies:
- dependency-name: devise
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-04 09:58:37 +00:00
filipefurtad0
29520542db
Sorts plucked shipping/payment methods
2023-04-04 09:30:36 +01:00
Maikel Linke
00a3976905
Display a friendly message when a report times out
...
Once we get a download link for a report, we can display this message
sooner. But for now we just use the existing request timeout.
2023-04-04 11:08:20 +10:00
Maikel Linke
3bd8e430f9
Use Rack::Timeout for more realistic tests
...
The closer the test environment is to the production environment the
more realistic the tests will be, and the more code we test.
We are now able to test the app behaviour on timeouts which I want to do
for reports. We can also catch incompatibilities with the rack-timeout
gem during testing.
2023-04-04 11:08:20 +10:00
Neal Chambers
940f806e5f
Fix Rubocop Layout/LineLength
2023-04-04 09:44:15 +09:00
Neal Chambers
77733169fc
Update OCs after ERs Permissions are Revoked
2023-04-04 09:37:13 +09:00
David Cook
c34ced2f65
Merge pull request #10639 from openfoodfoundation/dependabot/bundler/puma-6.2.1
...
Bump puma from 6.1.1 to 6.2.1
2023-04-04 10:08:57 +10:00
Filipe
2051d811cf
Merge pull request #10567 from jibees/10557-allow-hide-of-ofn-main-navigation
...
White Label: Allow enterprise to hide ofn main navigation on `/shop`, `/cart`, `/checkout`, `/orders` pages
2023-04-03 20:29:37 +01:00
jibees
0335cf2441
Merge pull request #10647 from openfoodfoundation/dependabot/npm_and_yarn/webpack-dev-server-4.13.2
...
Bump webpack-dev-server from 4.13.1 to 4.13.2
2023-04-03 16:47:02 +02:00
jibees
d3ddc8a221
Merge pull request #10650 from openfoodfoundation/dependabot/bundler/devise-4.9.1
...
Bump devise from 4.9.0 to 4.9.1
2023-04-03 16:44:46 +02:00
jibees
25e00d5210
Merge pull request #10649 from openfoodfoundation/dependabot/bundler/capybara-3.39.0
...
Bump capybara from 3.38.0 to 3.39.0
2023-04-03 16:42:53 +02:00
jibees
2a556ab329
Merge pull request #10651 from openfoodfoundation/dependabot/bundler/rubocop-1.49.0
...
Bump rubocop from 1.48.1 to 1.49.0
2023-04-03 16:42:08 +02:00
dependabot[bot]
80a94011b8
Bump rubocop from 1.48.1 to 1.49.0
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.48.1 to 1.49.0.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.48.1...v1.49.0 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-03 10:06:36 +00:00
dependabot[bot]
d4f2704213
Bump devise from 4.9.0 to 4.9.1
...
Bumps [devise](https://github.com/heartcombo/devise ) from 4.9.0 to 4.9.1.
- [Release notes](https://github.com/heartcombo/devise/releases )
- [Changelog](https://github.com/heartcombo/devise/blob/main/CHANGELOG.md )
- [Commits](https://github.com/heartcombo/devise/compare/v4.9.0...v4.9.1 )
---
updated-dependencies:
- dependency-name: devise
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-03 10:02:14 +00:00
dependabot[bot]
91bf3c67cd
Bump capybara from 3.38.0 to 3.39.0
...
Bumps [capybara](https://github.com/teamcapybara/capybara ) from 3.38.0 to 3.39.0.
- [Release notes](https://github.com/teamcapybara/capybara/releases )
- [Changelog](https://github.com/teamcapybara/capybara/blob/master/History.md )
- [Commits](https://github.com/teamcapybara/capybara/compare/3.38.0...3.39.0 )
---
updated-dependencies:
- dependency-name: capybara
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-03 10:01:25 +00:00
dependabot[bot]
307a9effb0
Bump aws-sdk-s3 from 1.119.2 to 1.120.0
...
Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby ) from 1.119.2 to 1.120.0.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases )
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-ruby/commits )
---
updated-dependencies:
- dependency-name: aws-sdk-s3
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-03 10:00:03 +00:00
dependabot[bot]
56e8f7b0c6
Bump webpack-dev-server from 4.13.1 to 4.13.2
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.13.1 to 4.13.2.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.13.1...v4.13.2 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-03 09:58:14 +00:00
Maikel
de58aa1187
Merge pull request #10529 from mkllnk/setup
...
Update setup script with newest template and merge with old script
2023-04-03 15:44:29 +10:00
Maikel Linke
da0ef8531b
Install our used bundler version
2023-04-03 14:37:31 +10:00
Maikel Linke
08f2254a0e
Leverage bin/setup within script/setup
...
And remove duplicate output. `bin/setup` is the Rails default for
updating your environment after code updates and `script/setup` is our
convenience script for the initial setup and starting with sample data.
2023-04-03 14:37:31 +10:00
Maikel Linke
477524039f
Update bundler version when necessary
...
Not just when it's missing.
2023-04-03 14:37:31 +10:00
Maikel Linke
e5e5bf8c17
Install ruby automatically if rbenv is available
...
People may use other ways to provide the right Ruby version but if they
use rbenv then we can use it automatically.
2023-04-03 14:37:30 +10:00
Maikel Linke
4999e231bc
Avoid permission warning when running sudo as root
...
The command is switching to an unprivileged user which can't access
/root and therefore there was a warning when executing. Adding `--login`
to the sudo command switches to that user properly and avoids the
warning.
2023-04-03 14:36:07 +10:00
Maikel Linke
6b857a5683
Make code examples easier to copy without $ sign
...
The $ sign used to indicate shell commands. But with markdown it's
obvious that we are entering commands.
Github has a quick copy button for all code examples which used to copy
the $ sign as well. Removing it allows to copy and paste easier with
that button.
2023-04-03 14:35:52 +10:00
Maikel Linke
f12ee186ee
Speed up setup script when restarting rails
2023-04-03 14:33:39 +10:00
Maikel Linke
93ef95f58e
Update JS dependencies with setup script
2023-04-03 14:33:39 +10:00
Maikel Linke
49dd1dd1fa
Update setup script with newest template
...
I used the script from a new Rails 7 project.
2023-04-03 14:32:22 +10:00
David Cook
04d2f3f50d
Install nodenv to use correct Node version
...
Copying what we do for rbenv, using the same plugins that we use in https://github.com/openfoodfoundation/ofn-install/blob/master/roles/node/tasks/main.yml
2023-04-03 14:11:28 +10:00
David Cook
f43bdec0f4
Update to latest node v17
...
Really this should install nodenv though..
2023-04-03 11:41:54 +10:00
Jean-Baptiste Bellet
b79bd8ef05
Removes empty <p> tags from product description
2023-03-31 11:37:30 +02:00
Jean-Baptiste Bellet
4dfc56954c
Force .product-description to be one line
...
and make it as a `div`
2023-03-31 10:41:27 +02:00
dependabot[bot]
8c08827d35
Bump puma from 6.1.1 to 6.2.1
...
Bumps [puma](https://github.com/puma/puma ) from 6.1.1 to 6.2.1.
- [Release notes](https://github.com/puma/puma/releases )
- [Changelog](https://github.com/puma/puma/blob/master/History.md )
- [Commits](https://github.com/puma/puma/compare/v6.1.1...v6.2.1 )
---
updated-dependencies:
- dependency-name: puma
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-31 08:13:31 +00:00
Maikel Linke
a56081ad5b
Update translations
2023-03-31 14:59:16 +11:00
jibees
996c6d35f3
Merge pull request #10633 from openfoodfoundation/dependabot/bundler/debug-1.7.2
...
Bump debug from 1.7.1 to 1.7.2
2023-03-30 14:08:13 +02:00
Jean-Baptiste Bellet
89036db666
Do not use a preference, but create a new column for hide_ofn_navigation
2023-03-30 09:19:17 +11:00
Jean-Baptiste Bellet
dd9fec58a4
Instead of parsing URLs pass order through method for Orders Ctrl
...
Use methods for before_actions
Maybe we should for hide_of_navigation too, but a name 'hide_ofn_navigation_for_order_distributor' seemed unhelpful..
2023-03-30 09:19:17 +11:00
Jean-Baptiste Bellet
4fa44e6c64
Put the white label behind a feature toggle white_label
...
+ update specs as well
+ for admin section also
2023-03-30 09:19:17 +11:00
Jean-Baptiste Bellet
4ad2a1a723
Prefer a concern that set a variable instead of a global helper
...
Therefor, for the right controllers, simply implements:
```
include WhiteLabel
before_action :hide_ofn_navigation, only: [:show, :edit]
```
This is mort robust, since we're working in a controller level, not parsing URLs...
2023-03-30 09:17:57 +11:00
Jean-Baptiste Bellet
5279be4dc6
Improve spec: visiting order confirmation with distributor
...
Two cases:
- the current distributor is the same than the order of the order confirmation page
- the current distributor *is not* the same than the order of the order confirmation page (and has not set `hide_ofn_navigation` preference to `true`)
2023-03-30 09:17:57 +11:00
Jean-Baptiste Bellet
348c1ff7da
Hide the OFN navigation menu when distributor as set its preference
...
Hide, when preference is true, for page:
- shop
- cart
- checkout
- order confirmation
2023-03-30 09:17:57 +11:00
Jean-Baptiste Bellet
c20ae0de1e
Edit hide_ofn_navigation in 'white label' panel for an enterprise
2023-03-30 09:17:57 +11:00
Jean-Baptiste Bellet
3452864503
Add "white label" panel in enterprise settings page
2023-03-30 09:17:57 +11:00
Jean-Baptiste Bellet
d2f29b7d73
Some refactoring to avoid rubocop class too long warning
2023-03-30 09:13:35 +11:00
Filipe
62cdda2ce2
Merge pull request #10523 from rioug/10431-voucher-minimum-backend
...
Voucher bare minimum backoffice
2023-03-29 20:21:57 +01:00
Filipe
e6123969d2
Merge pull request #10607 from mkllnk/zone-spec
...
Sort zones by name again, in the admin panel
2023-03-29 17:57:50 +01:00
Filipe
90ce52612d
Merge pull request #10615 from mkllnk/background-report-job
...
Run background reports with Sidekiq, not fork
2023-03-29 17:38:48 +01:00
jibees
7e6d40f370
Merge pull request #10621 from openfoodfoundation/dependabot/bundler/valid_email2-4.0.6
...
Bump valid_email2 from 4.0.5 to 4.0.6
2023-03-29 17:13:34 +02:00
Filipe
b6e4ff908f
Merge pull request #10566 from mkllnk/products-meta-description
...
Remove unused product meta description
2023-03-29 15:58:31 +01:00
Filipe
c16c1a5e62
Merge pull request #10544 from filipefurtad0/test_pdf_reports
...
Adds pdf comparison; removes csv, xlsx, pdf file fixtures
2023-03-29 14:03:25 +01:00
dependabot[bot]
3f5aceff99
Bump debug from 1.7.1 to 1.7.2
...
Bumps [debug](https://github.com/ruby/debug ) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/ruby/debug/releases )
- [Commits](https://github.com/ruby/debug/compare/v1.7.1...v1.7.2 )
---
updated-dependencies:
- dependency-name: debug
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-29 10:00:12 +00:00
dependabot[bot]
b8e9925601
Bump valid_email2 from 4.0.5 to 4.0.6
...
Bumps [valid_email2](https://github.com/micke/valid_email2 ) from 4.0.5 to 4.0.6.
- [Release notes](https://github.com/micke/valid_email2/releases )
- [Changelog](https://github.com/micke/valid_email2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/micke/valid_email2/compare/v4.0.5...v4.0.6 )
---
updated-dependencies:
- dependency-name: valid_email2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-29 07:51:47 +00:00
Maikel
667a514ed2
Merge pull request #10623 from jibees/10622-flaky-specservicesorder_cycle_form_specrb403
...
Flaky: Sort array to avoid flaky spec when comparing values
2023-03-29 16:32:44 +11:00
filipefurtad0
25108f4c70
Removes all fixture files; asserts on downloaded file
...
Changes helper method to assert there is one file only
load_file_txt will be useful in other spec files too, and could probably be moved to spec/support/file_helper.rb
2023-03-29 16:24:21 +11:00
Maikel Linke
6f83607aa8
Remove unused product meta description from DB
2023-03-29 14:35:16 +11:00
Maikel Linke
70aff98581
Remove unused product meta description from UI
2023-03-29 14:33:42 +11:00
Maikel
812fb974dd
Merge pull request #10584 from openfoodfoundation/dependabot/bundler/devise-i18n-1.11.0
...
Bump devise-i18n from 1.10.3 to 1.11.0
2023-03-29 13:08:35 +11:00
filipefurtad0
0a91f3d392
Sorts all shipiping method arrays
2023-03-28 15:46:41 +02:00
Gaetan Craig-Riou
c7c19e47de
Add feature toggle description
2023-03-28 13:46:51 +11:00
Gaetan Craig-Riou
e1845dddac
Fix TabsAndPanelsController now that #! are removed from url
...
This PR https://github.com/openfoodfoundation/openfoodnetwork/pull/9729
remove #! from url. But unfortunately, AngularJs rewrite "example.com#panel"
as "example.com#/panel" thus breaking the original implementation.
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
2e10336a47
Add ability to manage voucher for enterprise user
...
Update spec accordingly
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
37d3c025e9
Make sure New voucher page can be accessed from voucher panel
...
Co-authored-by: David Cook <david@redcliffs.net >
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
6eb52aa540
TabsAndPanelsController specs, add missinrg panel scenario
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
6809198c96
Vouchers specs, remove obsolete step
...
Vouchers tabs now shows when returning from new voucher page,
no need to manually click on the 'vouchers' link in the menu
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
3b7aebd6da
Enable vouchers feature toggle when running vouchers specs
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
7dc5bc87d1
Fix rubocop warnings
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
0c43d0f16a
Put vouchers admin screen behind 'vouchers' feature toggle
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
fb1ad4c65f
Remove non needed collumn from voucher list
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
04748b6e0e
Move voucher value to the model
...
Use Spree::Money to display amount with currency
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
094fc039e9
Update tabs_and_panels to display tab and panel based on the url anchor
...
For Vouchers, this means the voucher tab and panel are displayed when
you come back to entreprise edit screen from the new vourcher page
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
e4f40d14b8
Fix enterprise voucher tab
...
Add harcoded voucher amount
Add missing translation
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
4085aa22dc
Add create voucher action and system test
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
a4add889a8
Add form on the new voucher page
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
f9f6793d10
Add template and basic controller for backoffice voucher pages
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
a62687b1a7
Fix warning : The implicit block expectation syntax is deprecated
2023-03-28 13:39:29 +11:00
Gaetan Craig-Riou
a48fd0828c
Add Voucher model
...
A voucher belongs to an enterprise and an enterprise can have many
vouchers
2023-03-28 13:39:29 +11:00
Maikel
6cfb86e578
Link to merged feature toggle wiki page
2023-03-28 12:25:21 +11:00
Maikel
a168126cfa
Merge pull request #10600 from mkllnk/features
...
Add all feature toggles with descriptions at boot
2023-03-28 10:58:40 +11:00
Jean-Baptiste Bellet
88c833ec83
Sort array to avoid flaky spec when comparing values
2023-03-27 15:57:46 +02:00
Konrad
c887efee54
Merge pull request #10519 from vviekk/viv/10515
...
Removing 'none' from shipping categories from product edit page
2023-03-27 14:01:11 +02:00
jibees
86abff224e
Merge pull request #10616 from mkllnk/rails-7-schema
...
Update DB schema to Rails 7.0
2023-03-27 10:56:14 +02:00
vviekk
9a10c8c25a
Removing none from shipping categories from product edit page
2023-03-27 11:56:10 +05:30
Maikel Linke
4461b33491
Sort zones by name again
...
Zones were intended to be sorted by name. But I guess that the syntax of
Ransack changed one day and we didn't notice because the spec was
creating entries in the right order already (which often reflects the
query result order without parameters). So the spec is fixed to fail if
the sorting doesn't happen and Ransack is configured to sort correctly.
The previous sort value was ignored.
2023-03-27 16:36:04 +11:00
Maikel Linke
5ae9016f09
Speed up spec by skipping additional page load
...
The login_as_admin helper has to load a page to log in. Providing the
page we want to go to avoids going to the default page first.
2023-03-27 16:36:04 +11:00
Maikel Linke
67ab8f63e0
Remove superfluous test setup
...
There are no zones at the start of the test. This is probably a
left-over from old times when specs were not encapsulated in
transactions.
2023-03-27 16:36:04 +11:00
Maikel Linke
40e64acd37
Update DB schema to Rails 7.0
...
This is the result of: `./bin/rails db:migrate`
2023-03-27 16:18:02 +11:00
Maikel Linke
78fea7c7f2
Run background reports with Sidekiq, not fork
...
Forking worked in theory but crashed the browser in system specs. It
also came with many other hurdles and isn't well known solution in the
Rails community. Sidekiq can give us better control over execution
limits as well.
2023-03-27 13:27:49 +11:00
Konrad
4c61666fc7
Merge pull request #10547 from vviekk/10419
...
Enable invoices config only controls Print bulk action
2023-03-26 13:53:20 +02:00
Konrad
0c6a12a6f0
Merge pull request #10241 from binarygit/provide-err-msg-when-using-text-in-var-field
...
Admin, edit variant: only allow numerical values for weight, height, width and depth fields
2023-03-26 13:03:20 +02:00
jibees
0da245f912
Merge pull request #10595 from jibees/10592-flaky-specservicesorder_cycle_form_specrb282
...
Flaky spec: Sort each array to ensure the order
2023-03-24 16:11:49 +01:00
jibees
eba0c9c4f7
Merge pull request #10609 from openfoodfoundation/dependabot/npm_and_yarn/prettier-2.8.7
...
Bump prettier from 2.8.6 to 2.8.7
2023-03-24 11:22:07 +01:00
dependabot[bot]
25618c009e
Bump prettier from 2.8.6 to 2.8.7
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.6 to 2.8.7.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.6...2.8.7 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-24 09:58:19 +00:00
jibees
068ac40a76
Merge pull request #10589 from openfoodfoundation/dependabot/npm_and_yarn/webpack-dev-server-4.13.1
...
Bump webpack-dev-server from 4.12.0 to 4.13.1
2023-03-24 10:52:01 +01:00
dependabot[bot]
5868fd1b7c
Bump webpack-dev-server from 4.12.0 to 4.13.1
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.12.0 to 4.13.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.12.0...v4.13.1 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-24 09:36:40 +00:00
jibees
540129854e
Merge pull request #10603 from openfoodfoundation/dependabot/bundler/aws-sdk-s3-1.119.2
...
Bump aws-sdk-s3 from 1.119.1 to 1.119.2
2023-03-24 10:29:26 +01:00
jibees
f747ab568a
Merge pull request #10604 from openfoodfoundation/dependabot/bundler/knapsack_pro-3.9.0
...
Bump knapsack_pro from 3.8.0 to 3.9.0
2023-03-24 10:23:01 +01:00
Jean-Baptiste Bellet
f9f619c036
Update all locales with the latest Transifex translations
2023-03-24 09:29:45 +01:00
Filipe
31ffeab4cd
Merge pull request #10440 from mkllnk/rails7
...
Upgrade to Rails 7.0
2023-03-23 12:04:11 +00:00
Filipe
1673a18eb6
Merge pull request #9729 from binarygit/remove-angular-from-users
...
Admin, Enterprise Settings, Users tabs: remove tooltips directives + use reflex to invite user to be managers
2023-03-23 11:52:18 +00:00
Mohamed ABDELLANI
d3a25282de
fix load order cycles by date ranges
2023-03-23 12:02:17 +01:00
Jean-Baptiste Bellet
29cdadd563
Avoid using exception but simply errors attribute contained in object
...
Co-Authored-By: Maikel <maikel@email.org.au >
2023-03-23 11:21:15 +01:00
Jean-Baptiste Bellet
8dffb38bf5
Sort each array to ensure the order
...
and then expect the right values.
2023-03-23 11:21:05 +01:00
binarygit
ecd5033efa
Replace angular for when adding a new unregistered manager to an enterprise
...
Co-Authored-By: David Cook <david@redcliffs.net >
2023-03-23 11:21:05 +01:00
Jean-Baptiste Bellet
a13227defa
Add I18N to all reflexes
2023-03-23 11:21:05 +01:00
Jean-Baptiste Bellet
465a295dfa
Delete manager invitation controller
2023-03-23 11:21:05 +01:00
Jean-Baptiste Bellet
9c84a6936a
Create a concern for manager invitations
...
Can be used elsewhere
Update manager_invitations.rb
2023-03-23 11:21:05 +01:00
dependabot[bot]
f3d687cbea
Bump knapsack_pro from 3.8.0 to 3.9.0
...
Bumps [knapsack_pro](https://github.com/KnapsackPro/knapsack_pro-ruby ) from 3.8.0 to 3.9.0.
- [Release notes](https://github.com/KnapsackPro/knapsack_pro-ruby/releases )
- [Changelog](https://github.com/KnapsackPro/knapsack_pro-ruby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v3.8.0...v3.9.0 )
---
updated-dependencies:
- dependency-name: knapsack_pro
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-23 10:05:23 +00:00
dependabot[bot]
6894cb5dd7
Bump aws-sdk-s3 from 1.119.1 to 1.119.2
...
Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby ) from 1.119.1 to 1.119.2.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases )
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-ruby/commits )
---
updated-dependencies:
- dependency-name: aws-sdk-s3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-23 10:04:05 +00:00
Filipe
809a57dbdb
Merge pull request #10437 from openfoodfoundation/10436-the-cookie-policy-modal-does-not-appear-to-use-the-language-selected-by-the-user
...
Translate cookie policy into languages selected by the user
2023-03-23 10:00:38 +00:00
Filipe
6b30a654a6
Merge pull request #10516 from macanudo527/fix_taxonomy
...
Fix Sorting entries in a taxonomy is broken
2023-03-23 09:23:16 +00:00
Filipe
9b749ee2e0
Merge pull request #10466 from dacook/report-summaries
...
Report summaries in JSON (API) output
2023-03-22 23:34:48 +00:00
David Cook
c27974c5a3
Add marker for summary rows
...
This can be enabled in the reports API with the hidden parameter `fields_to_show[]=report_row_type` to help with parsing summary row output.
2023-03-22 11:47:26 +00:00
David Cook
6f41a4168d
Allow headers and footers for JSON format
...
You wouldn't want it by default, but it can be enabled with a parameter like display_summary_row=true
2023-03-22 11:47:26 +00:00
David Cook
db7ac904e9
Allow column formatting and header/footer stripping to be specified independently
...
This will allow us to change the options in the following commit.
2023-03-22 11:47:26 +00:00
David Cook
96eaec908d
Remove unused mock in specs
...
It looks like it was expected that the price and amount columns would be formatted, but this is not currently the case. So I cleaned this up to be less ambiguous.
If any of these columns were to be configured for formatting, this line could be added back to test for unformatted output.
2023-03-22 11:47:26 +00:00
Maikel Linke
e0fd180edd
DRY Flipper UI config
2023-03-22 15:45:26 +11:00
Maikel Linke
fd68cbf56d
Remove on-the-fly adding of feature toggle entries
...
We now have a new source of truth. You shouldn't use a feature toggle
without adding it to OpenFoodNetwork::FeatureToggle first. All toggles
are added at boot time already.
2023-03-22 15:36:08 +11:00
Maikel Linke
9a1b1498bf
Add all feature toggles with descriptions at boot
...
So you can easily inspect and activate new features without trying to
use them first. It brings more visibility and will enable us to easily
remove retired features as well.
2023-03-22 15:36:08 +11:00
Filipe
12de3ae584
Merge pull request #10509 from mkllnk/filter-shipping-methods-by-category
...
Filter shipping methods by category
2023-03-21 17:47:22 +00:00
Rachel Arnould
75c3bf8b56
Merge pull request #9630 from binarygit/remove-angular-from-business-details
...
Remove angular from business details
2023-03-21 18:31:40 +01:00
Rachel Arnould
52c12ea896
Merge pull request #10554 from mkllnk/dfc-variants
...
Ignore master variants exporting to DFC
2023-03-21 18:30:05 +01:00
jibees
2e4bbb7740
Merge pull request #10590 from openfoodfoundation/dependabot/npm_and_yarn/prettier-2.8.6
...
Bump prettier from 2.8.5 to 2.8.6
2023-03-21 15:32:45 +01:00
dependabot[bot]
1b0880e7df
Bump prettier from 2.8.5 to 2.8.6
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.5 to 2.8.6.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.5...2.8.6 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-21 14:12:05 +00:00
Filipe
84f319894a
Merge pull request #10594 from jibees/10593-deployment-failed-on-master
...
Move `webpack-*` as dependency (not devDependencies)
2023-03-21 14:09:52 +00:00
Jean-Baptiste Bellet
2a9b6f8e8c
Sort each array to ensure the order
...
and then expect the right values.
2023-03-21 14:52:05 +01:00
Jean-Baptiste Bellet
c4e58eab3c
Move webpack-* as dependency (not devDependencies)
2023-03-21 14:35:57 +01:00
Neal Chambers
920e9e65bd
Merge remote-tracking branch 'origin/fix_taxonomy' into fix_taxonomy
2023-03-21 21:39:02 +09:00
David Cook
78b978efba
Merge pull request #10458 from dacook/838-node-install-scripts
...
Node install script
2023-03-21 15:02:08 +11:00
Maikel Linke
31db35675b
Add feature toggle for filtering shipping methods
2023-03-21 14:49:47 +11:00
Maikel Linke
6b25c36476
Filter ship methods by required shipping category
...
The products in an order may require several shipping categories like
refrigeration or express. We now filter the categories according to
their support of shipping categories.
2023-03-21 14:30:45 +11:00
Maikel Linke
73fa6295ec
Simplify shipping method selection code
2023-03-21 14:30:44 +11:00
Maikel Linke
b5f43b3c1c
Rename method because it's not changing the input
...
A common Ruby convention is to to use the bang naming `!` to mark method
which change the given parameter instead of returning a copy.
2023-03-21 14:30:44 +11:00
Maikel Linke
fcc68a0a19
Return new filtered list instead of modifying
...
This makes a clear distinction between the unfiltered and filtered list.
There may also be some gotchas when modifying the array of an
ActiveRecord relation. It also allows us to write shorter code without
storing a separate variable.
2023-03-21 14:30:44 +11:00
Maikel Linke
4c2d7c0d1c
Rename confusing test variable
...
The "subject" is usually the code under test. In this spec it would be
the TagRuleApplicator and not the parameter given to it. So I renamed it
to avoid confusion here.
2023-03-21 14:30:44 +11:00
Maikel Linke
eee5e8eee7
Remove unnecessary tag rule code
...
The applicator converts the input to an array, even `nil` becomes an
empty array. Iterating over an empty array doesn't do anything either,
the result is the same.
2023-03-21 14:30:44 +11:00
Maikel Linke
e227cb912b
Simplify tag rule spec
...
We don't need to know the internals. We want to know that the applicator
is not raising an error when we give `nil` or an empty collection.
2023-03-21 14:30:44 +11:00
Maikel Linke
6f3a0e8812
De-duplicate early for better performance
2023-03-21 14:30:44 +11:00
Maikel Linke
d7e4962fba
Add method for easier reading
2023-03-21 14:30:44 +11:00
David Cook
7ad5181026
Merge pull request #10568 from openfoodfoundation/dependabot/npm_and_yarn/webpack-dev-server-4.12.0
...
Bump webpack-cli and webpack-dev-server from v3 to v4
2023-03-21 11:47:16 +11:00
jibees
c2133c8fa5
Merge pull request #10583 from openfoodfoundation/dependabot/bundler/flipper-active_record-0.26.2
...
Bump flipper-active_record from 0.26.0 to 0.26.2
2023-03-20 14:48:10 +01:00
dependabot[bot]
de5264138d
Bump flipper-active_record from 0.26.0 to 0.26.2
...
Bumps [flipper-active_record](https://github.com/jnunemaker/flipper ) from 0.26.0 to 0.26.2.
- [Release notes](https://github.com/jnunemaker/flipper/releases )
- [Changelog](https://github.com/jnunemaker/flipper/blob/main/Changelog.md )
- [Commits](https://github.com/jnunemaker/flipper/compare/v0.26.0...v0.26.2 )
---
updated-dependencies:
- dependency-name: flipper-active_record
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-20 13:30:57 +00:00
Jean-Baptiste Bellet
bfbcdba98c
Modify configuration to match new version of webpacker
...
Error was:
```
ERROR in chunk admin [entry]
js/[name]-[contenthash].js
Cannot use [chunkhash] or [contenthash] for chunk in 'js/[name]-[contenthash].js' (use [hash] instead)
```
2023-03-20 11:34:57 +01:00
David Cook
0632553a4a
Remove @webpack-cli/serve
...
This now gets included as a dependency of webpack-cli v4. If webpack-cli had been upgraded earlier, we never would have needed to specify this.
2023-03-20 11:34:57 +01:00
David Cook
a97d416bfd
Bump webpack-cli from 3.3.12 to 4.10.0
...
I don't know why, but Dependabot decided not to: https://github.com/openfoodfoundation/openfoodnetwork/pull/9798#issuecomment-1288583629
This is required for webpack-dev-server v4.
2023-03-20 11:34:56 +01:00
dependabot[bot]
b306539163
Bump webpack-dev-server from 3.11.3 to 4.12.0
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 3.11.3 to 4.12.0.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v3.11.3...v4.12.0 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-20 11:33:31 +01:00
jibees
caea53ab91
Merge pull request #10582 from openfoodfoundation/dependabot/npm_and_yarn/floating-ui/dom-1.2.5
...
Bump @floating-ui/dom from 1.2.4 to 1.2.5
2023-03-20 11:23:56 +01:00
jibees
d7ee0ca434
Merge pull request #10580 from openfoodfoundation/dependabot/bundler/flipper-ui-0.26.2
...
Bump flipper-ui from 0.26.0 to 0.26.2
2023-03-20 11:20:11 +01:00
jibees
7fa4aa62f9
Merge pull request #10581 from openfoodfoundation/dependabot/npm_and_yarn/prettier-2.8.5
...
Bump prettier from 2.8.4 to 2.8.5
2023-03-20 11:17:14 +01:00
dependabot[bot]
ca97adb724
Bump devise-i18n from 1.10.3 to 1.11.0
...
Bumps [devise-i18n](https://github.com/tigrish/devise-i18n ) from 1.10.3 to 1.11.0.
- [Release notes](https://github.com/tigrish/devise-i18n/releases )
- [Changelog](https://github.com/tigrish/devise-i18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tigrish/devise-i18n/compare/v1.10.3...v1.11.0 )
---
updated-dependencies:
- dependency-name: devise-i18n
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-20 09:59:49 +00:00
dependabot[bot]
6295ecc7cf
Bump @floating-ui/dom from 1.2.4 to 1.2.5
...
Bumps [@floating-ui/dom](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/dom ) from 1.2.4 to 1.2.5.
- [Release notes](https://github.com/floating-ui/floating-ui/releases )
- [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/dom@1.2.5/packages/dom )
---
updated-dependencies:
- dependency-name: "@floating-ui/dom"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-20 09:58:48 +00:00
dependabot[bot]
b207d3e7fd
Bump prettier from 2.8.4 to 2.8.5
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.4 to 2.8.5.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.4...2.8.5 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-20 09:58:31 +00:00
dependabot[bot]
b4f3655fae
Bump flipper-ui from 0.26.0 to 0.26.2
...
Bumps [flipper-ui](https://github.com/jnunemaker/flipper ) from 0.26.0 to 0.26.2.
- [Release notes](https://github.com/jnunemaker/flipper/releases )
- [Changelog](https://github.com/jnunemaker/flipper/blob/main/Changelog.md )
- [Commits](https://github.com/jnunemaker/flipper/compare/v0.26.0...v0.26.2 )
---
updated-dependencies:
- dependency-name: flipper-ui
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-20 09:58:17 +00:00
Jean-Baptiste Bellet
918e220557
Move $locationProvider configuration to another file
...
Actually the `config()` method of `admin_ofn` file did not run on `/admin/enterprises/*` pages for an unknown reason
Now those two files have the same configuration
2023-03-20 08:37:47 +01:00
binarygit
a397ba1ca9
Replace what's this tooltips
...
There are tooltips here that don't have a what's this?
There are many angular directives/methods being used that I haven't
looked into
Every select box is using select2
2023-03-20 08:37:47 +01:00
Maikel Linke
7cd235c84d
Translate AngularJS templates in the browser
...
AngularJS templates are compiled as assets on deploy. Any translatable
text can't be translated in Ruby during compilation because it's static
text. It needs to be translated with an AngularJS filter in the browser.
2023-03-20 17:02:10 +11:00
Jean-Baptiste Bellet
e97cd0a1fd
That particular spec is actually failing ; this must be solved
2023-03-20 16:59:19 +11:00
Jean-Baptiste Bellet
a56f061663
Prepare the spec to be factorized and to be used in different context
2023-03-20 16:59:19 +11:00
Maikel
512cb44df5
Merge pull request #10330 from mickenorlen/8909-add-balance-to-api-v1-customer-endpoint
...
Add balance to api v1 customers endpoint
2023-03-20 15:47:41 +11:00
Maikel
0ab8e62749
Merge pull request #10405 from jibees/upgrade-node-version
...
Upgrade node version
2023-03-20 10:55:41 +11:00
Mohamed ABDELLANI
008b12a75d
remove "/" from the partial path to load sub-report filters
2023-03-20 10:41:28 +11:00
Maikel Linke
2e51d9be4a
Include Rails version in db schema
...
So Rails knows which defaults to apply.
https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#rails-version-is-now-included-in-the-active-record-schema-dump
2023-03-20 10:41:28 +11:00
Maikel Linke
bd20e299f3
Support old cookie encryption
...
https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#key-generator-digest-class-changing-to-use-sha256
2023-03-20 10:41:28 +11:00
Maikel Linke
90a92421f4
Remove obsolete setting of Zeitwerk
...
It's the default now.
https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#the-setter-config-autoloader-has-been-deleted
2023-03-20 10:41:28 +11:00
Maikel Linke
84daa046ca
Update I18n spec to Rails 7
2023-03-20 10:41:28 +11:00
Maikel Linke
61259bcfc2
Bump rails from 6.1.7 to 7.0.4
...
Result of:
bundle update --conservative rails railties\
actioncable actionmailbox actionmailer actionpack actiontext\
actionview activejob activemodel activerecord activestorage activesupport
2023-03-20 10:41:15 +11:00
Maikel Linke
4f44d50943
Omit Rails version restriction
2023-03-20 10:38:57 +11:00
Konrad
2e426c701e
Merge pull request #10232 from binarygit/show-correct-error-when-user-inputs-url-as-ig-acc
...
[Enterprise->Create] Show correct error message when user inputs url in instagram field
2023-03-19 21:57:02 +01:00
Konrad
99b3701e17
Merge pull request #10463 from openfoodfoundation/dependabot/bundler/devise-4.9.0
...
Bump devise from 4.8.1 to 4.9.0
2023-03-17 18:41:03 +01:00
Filipe
8bef0f9a43
Merge pull request #10337 from jibees/9419-send-invoices-per-email-in-bulk-from-the-admin-orders-page
...
Admin, orders list page: send invoices per email in bulk
2023-03-17 10:58:26 +00:00
jibees
d69aa04435
Merge pull request #10577 from openfoodfoundation/dependabot/bundler/flipper-0.26.2
...
Bump flipper from 0.26.0 to 0.26.2
2023-03-17 11:42:23 +01:00
dependabot[bot]
0b4a243d8e
Bump flipper from 0.26.0 to 0.26.2
...
Bumps [flipper](https://github.com/jnunemaker/flipper ) from 0.26.0 to 0.26.2.
- [Release notes](https://github.com/jnunemaker/flipper/releases )
- [Changelog](https://github.com/jnunemaker/flipper/blob/main/Changelog.md )
- [Commits](https://github.com/jnunemaker/flipper/compare/v0.26.0...v0.26.2 )
---
updated-dependencies:
- dependency-name: flipper
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-17 10:01:35 +00:00
David Cook
ced9784fb8
Merge pull request #10576 from openfoodfoundation/revert-10474-fix-customer-can-checkout-non-matching-shipping-and-product-categories
...
Revert "Fix: Customers can checkout with non-matching shipping and product categories"
2023-03-17 15:41:04 +11:00
David Cook
788457618f
Check ship address required based on all available methods
...
This check was implemented based on 'allowed' shipping methods, but we need to revert that logic. So for now, we can check all 'available' shipping methods.
This could potentially result in the same query being run twice, because load_shipping_methods also loads it. I opted to keep things simple and not try to optimise here.
2023-03-17 13:06:45 +11:00
David Cook
ef607da2c1
Revert "Fix: Customers can checkout with non-matching shipping and product categories"
2023-03-17 10:40:53 +11:00
Filipe
9ea6fa5c44
Merge pull request #9687 from dacook/9616-order-cycle-open-webhook
...
Add webhook triggered on Order Cycle Open
2023-03-16 17:24:22 +00:00
Konrad
a945f8f72f
Merge pull request #10522 from mkllnk/flipper-upgrade
...
Bump flipper* from 0.20.4 to 0.26.0
2023-03-16 17:24:33 +01:00
jibees
0c3ee2e8fc
Merge pull request #10574 from openfoodfoundation/dependabot/npm_and_yarn/jasmine-core-4.6.0
...
Bump jasmine-core from 4.5.0 to 4.6.0
2023-03-16 14:59:33 +01:00
vviekk
54d5d0ed80
Accepting 0<unit values<1 in product import validations
2023-03-16 16:26:43 +05:30
dependabot[bot]
f6458e91c2
Bump jasmine-core from 4.5.0 to 4.6.0
...
Bumps [jasmine-core](https://github.com/jasmine/jasmine ) from 4.5.0 to 4.6.0.
- [Release notes](https://github.com/jasmine/jasmine/releases )
- [Changelog](https://github.com/jasmine/jasmine/blob/main/RELEASE.md )
- [Commits](https://github.com/jasmine/jasmine/compare/v4.5.0...v4.6.0 )
---
updated-dependencies:
- dependency-name: jasmine-core
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-16 09:59:04 +00:00
vviekk
ac5cbcf19e
Merge branch 'openfoodfoundation:master' into 9978
2023-03-16 14:30:26 +05:30
David Cook
4757b82a80
Update all locales with the latest Transifex translations
2023-03-16 14:15:04 +11:00
David Cook
ad9e82e973
Merge pull request #10569 from openfoodfoundation/dependabot/bundler/sidekiq-7.0.7
...
Bump sidekiq from 7.0.6 to 7.0.7
2023-03-16 11:47:55 +11:00
Filipe
e8430eae6d
Merge pull request #10460 from jibees/10400-pagination-in-bom-not-aggregating-results-from-quick-search-field
...
BOM: Add a search input that search for items with pagination
2023-03-15 16:31:32 +00:00
dependabot[bot]
584b013a49
Bump sidekiq from 7.0.6 to 7.0.7
...
Bumps [sidekiq](https://github.com/sidekiq/sidekiq ) from 7.0.6 to 7.0.7.
- [Release notes](https://github.com/sidekiq/sidekiq/releases )
- [Changelog](https://github.com/sidekiq/sidekiq/blob/main/Changes.md )
- [Commits](https://github.com/sidekiq/sidekiq/compare/v7.0.6...v7.0.7 )
---
updated-dependencies:
- dependency-name: sidekiq
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-15 10:05:08 +00:00
Maikel
f15cb01f2a
Merge pull request #10520 from mkllnk/return-auth-controller-spec
...
Correctly include order id in return auth spec for Rails 7 compatibility
2023-03-15 14:08:16 +11:00
Maikel Linke
f1a5c46685
Remove unnecessary Flipper memoizer config
...
Auto-config, yay.
2023-03-15 12:54:03 +11:00
Maikel Linke
00f2f92ce0
Remove unnecessary Flipper active_record config
...
This is now done automatically when including flipper-active_record in
the Gemfile.
2023-03-15 12:54:03 +11:00
Maikel Linke
fdd71cff51
Remove now unnecessary flipper_id method
...
Flipper does it for us.
2023-03-15 12:54:02 +11:00
Maikel Linke
c9ca020f05
Bump flipper* from 0.20.4 to 0.26.0
2023-03-15 12:54:02 +11:00
David Cook
d59074dabd
Tidy up spec
...
The best way to check if something changed or not, is with 'change' of course.
2023-03-15 12:18:17 +11:00
jibees
6a874b9527
Merge pull request #10562 from openfoodfoundation/dependabot/bundler/rails-6.1.7.3
...
Bump rails from 6.1.7.2 to 6.1.7.3
2023-03-14 15:02:49 +01:00
dependabot[bot]
1f08da207f
Bump rails from 6.1.7.2 to 6.1.7.3
...
Bumps [rails](https://github.com/rails/rails ) from 6.1.7.2 to 6.1.7.3.
- [Release notes](https://github.com/rails/rails/releases )
- [Commits](https://github.com/rails/rails/compare/v6.1.7.2...v6.1.7.3 )
---
updated-dependencies:
- dependency-name: rails
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-14 09:59:50 +00:00
Maikel Linke
9c3bdc6b9b
Remove unnecessary table join
...
And use Rails syntax for clarity and future extensions.
2023-03-14 14:38:25 +11:00
Maikel Linke
2105c0d0ea
Ignore master variants exporting to DFC
2023-03-14 14:38:24 +11:00
Maikel Linke
6e514acc77
Spec too many variants exported to DFC
2023-03-14 14:38:24 +11:00
Maikel Linke
b8338fb9af
Removing engine namespace from services
...
Services are usually not namespaced because they are part of the app.
This engine has an isolated namespace which means that we don't need to
separate with out own namespacing here.
2023-03-14 13:49:21 +11:00
jibees
687d4593fb
Merge pull request #10550 from openfoodfoundation/dependabot/bundler/database_cleaner-2.0.2
...
Bump database_cleaner from 2.0.1 to 2.0.2
2023-03-13 21:12:42 +01:00
dependabot[bot]
b62f88512f
Bump database_cleaner from 2.0.1 to 2.0.2
...
Bumps [database_cleaner](https://github.com/DatabaseCleaner/database_cleaner ) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/DatabaseCleaner/database_cleaner/releases )
- [Changelog](https://github.com/DatabaseCleaner/database_cleaner/blob/main/History.rdoc )
- [Commits](https://github.com/DatabaseCleaner/database_cleaner/compare/v2.0.1...v2.0.2 )
---
updated-dependencies:
- dependency-name: database_cleaner
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-13 15:24:41 +00:00
vviekk
2674df026a
Fixing 'unsaved' alert behaviour for order cycle edit forms
2023-03-13 17:50:00 +05:30
vviekk
c1c0eca7c4
Enable invoices config only controls Print bulk action
2023-03-13 11:39:21 +05:30
vviekk
e10ea4b686
Merge branch 'openfoodfoundation:master' into 9978
2023-03-11 11:00:03 +05:30
David Cook
8f67e9839d
Apply code suggestion
...
Avoids an error:
./script/nodenv-install.sh: line 13: brew: command not found
Co-authored-by: Maikel <maikel@email.org.au >
2023-03-10 13:38:59 +11:00
David Cook
fdeeab5750
Test twitter with (almost) real world example
...
I discovered that twitter doesn't have 'www' in the url anymore, no '@' symbol and interestingly no trailing slash. I added back the '@' just so we can test that still.
Using a regex group we can cater for optional www in a single regex.
2023-03-09 11:22:04 +11:00
David Cook
9e7e176cf9
Accept full URLs
...
It looks like the intention was there, so I made it work.
I've included a real world example, but added capitalisation to complete the test.
2023-03-09 11:21:52 +11:00
Jean-Baptiste Bellet
40a0d8e08c
Improve design: make delete not a button but a link + close to file name
2023-03-08 10:38:28 +01:00
Jean-Baptiste Bellet
5cbec5521c
Simplify ability
...
Co-Authored-By: David Cook <david@redcliffs.net >
2023-03-08 10:38:28 +01:00
binarygit
8f6fdf3e31
[Admin, Enterprise Settings] Remove Angular from Business Details tab
2023-03-08 10:26:05 +01:00
David Cook
9d5ca2255b
Apply suggestions from code review
...
Co-authored-by: Maikel <maikel@email.org.au >
2023-03-07 15:38:50 +11:00
David Cook
00a823b2fc
6. Add webhook endpoints to user developer settings screen
...
Allowing creation and deleting via the user association.
It probably won't be much effort to allow editing and multiple records, but I cut it down to the minimum needed to avoid any further delays.
I couldn't find a way to test a failure in the destroy method, but decided to keep the condition because I thought it was worth having.
2023-03-07 15:38:50 +11:00
David Cook
3d81a6e280
Prevent creating duplicate webhook notifications [migration]
...
Using the clever concurrency testing borrowed from SubscriptionPlacementJob, but I thought a shorter pause time (just 100ms) would be sufficient.
I considered doing this with a new 'state' field (upcoming/open/close), but decided to keep it simple.
2023-03-07 15:38:50 +11:00
David Cook
739df4be01
4. OrderCycleOpenedJob triggers webhook
2023-03-07 15:38:50 +11:00
David Cook
b91cabc510
Also send webhook payloads for distributor owners
...
But not supplier owners.
2023-03-07 15:38:50 +11:00
David Cook
ba152f12ee
3. Add OrderCycleWebhookService to create webhook payloads for an order cycle event
2023-03-07 15:38:50 +11:00
David Cook
778baba118
User may have many WebhookEndpoints [migration]
...
Although we won't be allowing multiple in the this PR, we certainly plan to in the future.
The migration helper add_reference couldn't handle the custom column name, so I had to put it together manually.
2023-03-07 15:38:50 +11:00
David Cook
85c98c6d3e
2. Add model WebhookEndpoint [migration]
...
This will store the URL for each user that wants a notification.
We probably don't need URL validation (it's not done on Enterprise for example). It could be validated by browser input, and anyway will be validated if the webhook actually works or not.
Inspired by Keygen: https://keygen.sh/blog/how-to-build-a-webhook-system-in-rails-using-sidekiq/
2023-03-07 15:38:50 +11:00
David Cook
de9546587a
Prevent webhooks to private addresses (SSRF) [add gem]
...
Best reviewed with whitespace hidden.
Unfortunately the spec isn't allowed in CI. But it worked on my environment, I promise.
I chose `xit` so that it doesn't run unnecessarily. Perhaps we could use `pending` instead, which would execute, and notify us if it suddenly started working one day. But I doubt it.
2023-03-07 15:38:50 +11:00
David Cook
9741935955
Raise error on server error
...
And thus retry later.
I tried to test that it actually retries, or ensuring the job remained in the queue to be retried, but couldn't get it to work.
2023-03-07 15:38:50 +11:00
David Cook
9d19f37fec
1. Add WebhookDeliveryJob
...
This job is responsible for delivering a payload for one webhook event only. It allows the action to run asynchronously (and not slow down the calling process).
2023-03-07 15:38:50 +11:00
David Cook
718ac0ab80
Add Faraday for making HTTP requests [add gem]
...
It's the most popular and flexible option, so should be able to cater for our future needs best.
2023-03-07 15:38:47 +11:00
Neal Chambers
d95c5ff8a8
Use Spree Taxon Controller instead of API Taxon Controller
...
Add tests for reordering taxons
2023-03-07 13:22:59 +11:00
Maikel Linke
797b98d686
Remove Rails 5.0 controller spec workaround
...
We added a method to work around a bug. But that's not needed any more.
2023-03-07 08:46:36 +11:00
Maikel Linke
3dc3ebe584
Correctly include order id in return auth spec
...
The route to update a return authorization must include the order number
as id:
/admin/orders/:order_id/return_authorizations/:id(.:format)
The spec only worked because the controller's ivars were not reset
between requests and the order was already set. But Rails 7 will reset
the ivars and it failed finding the order without a given id.
2023-03-07 08:46:36 +11:00
filipefurtad0
6d05d57846
Fixes spec when introducing invalid instagram link
...
It seems that only the slash at the end of the address is making it invalid, which does not correspond to the error message. This is a separate issue.
2023-03-06 15:02:49 +01:00
Jean-Baptiste Bellet
ac739108a2
Improve readability by generating search string for ransack
2023-03-06 11:31:36 +01:00
Neal Chambers
3f3ae97a40
Add tests for reordering taxons
2023-03-06 18:57:02 +09:00
binarygit
ae166ae220
Fix: User does not get stuck when going backwards while creating new ent
2023-03-06 09:29:04 +01:00
binarygit
533f7048bf
[Enterprise->Create] Show correct error message when user inputs url in instagram field
2023-03-06 09:29:04 +01:00
Neal Chambers
e399e27a7d
Merge remote-tracking branch 'origin/fix_taxonomy' into fix_taxonomy
2023-03-06 15:09:13 +09:00
Neal Chambers
63ba3defec
Use Spree Taxon Controller instead of API Taxon Controller
2023-03-06 15:07:52 +09:00
dependabot[bot]
fb01a6e244
Bump devise from 4.8.1 to 4.9.0
...
Bumps [devise](https://github.com/heartcombo/devise ) from 4.8.1 to 4.9.0.
- [Release notes](https://github.com/heartcombo/devise/releases )
- [Changelog](https://github.com/heartcombo/devise/blob/main/CHANGELOG.md )
- [Commits](https://github.com/heartcombo/devise/compare/v4.8.1...v4.9.0 )
---
updated-dependencies:
- dependency-name: devise
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-02 14:47:11 +00:00
binarygit
fd81429f39
Specify weight, height, width and depth as numeric field
2023-03-01 16:32:18 +01:00
Jean-Baptiste Bellet
50bc48c96f
Introduce some specs around searching in BOM
2023-03-01 14:54:46 +01:00
Jean-Baptiste Bellet
8ad532c41a
Can search bill_address:phone, firstname, lastname and distributor:name
2023-03-01 14:54:46 +01:00
Jean-Baptiste Bellet
ebd5d706c2
Add search input
...
Actually this only search for `order_email` or `order_number` or `product_name` or `supplier_name`
+ Improve display by reduce each columns width
2023-03-01 14:40:12 +01:00
Jean-Baptiste Bellet
8658b1a743
Remove quick filter that search only on displayed line items
...
+ remove specs as well
2023-02-28 15:39:31 +01:00
Jean-Baptiste Bellet
5208094f05
Do not bulk send invoices if order is not 'complete' or 'resumed'
...
+ update specs as well
2023-02-27 14:30:59 +01:00
Jean-Baptiste Bellet
8926a3f08d
Having a cleaner syntax a prefer using map() instead of forEach()
2023-02-27 14:30:59 +01:00
Jean-Baptiste Bellet
58ea3a10e8
Invert condition on can send invoice
2023-02-27 14:30:59 +01:00
Jean-Baptiste Bellet
5ca5c32da4
Factorize what could be into two methods: success and orders
2023-02-27 14:30:59 +01:00
Jean-Baptiste Bellet
7a1a1286d2
Factorize two reflexes into one: BulkActionsInOrdersListReflex
2023-02-27 14:30:59 +01:00
Jean-Baptiste Bellet
5e61aa8a77
Create the bulk send invoice action in order list
...
using the same pattern than SendConfirmationEmail action
Co-Authored-By: David Cook <david@redcliffs.net >
2023-02-27 14:30:59 +01:00
Jean-Baptiste Bellet
af92b9f464
Reorganize spec by dividing into two contexts: 'admin' and 'hub manager'
2023-02-27 14:30:59 +01:00
Jean-Baptiste Bellet
ffaf4a837f
Extract common behavior to BulkActionsController
2023-02-27 14:30:58 +01:00
vviekk
913f8bbad0
Addressing comments
2023-02-26 15:50:34 +05:30
vviekk
fc951e92ac
Updating price, on_hand, on_demand validations for product import
2023-02-18 13:52:35 +05:30
David Cook
d377300f32
Support installations with homebrew (macOS)
...
The officially recommended installation for Mac is via Homebrew.
2023-02-17 10:36:10 +11:00
David Cook
b7a3f7263b
Add script to install current node version
...
The API is conveniently exactly the same as rbenv.
2023-02-17 10:17:48 +11:00
Mikael Norlén
f645f8fc79
Improve schema method get_extra_fields
...
Use double-splat for passing options and improve examples
2023-02-15 11:14:28 +01:00
Mikael Norlén
3d06b75892
Simplify customers_with_balance spec
...
Improve variable names and use multiple expectations
2023-02-15 11:14:28 +01:00
Mikael Norlén
af23375b04
Separate Structure from JsonApiSchema
...
Class was getting too long
2023-02-15 11:14:28 +01:00
Mikael Norlén
f15a4cc943
Add autogenerated whitespaces to swagger.yml
...
These whitespaces were generated by
bundle exec rails rswag.
Might be related to a new version of rswag or
developers' trim trailing whitespace settings.
2023-02-15 11:14:28 +01:00
Mikael Norlén
e95d08cae8
Add balance to api v1 customers endpoint
...
- customers#show: Add balance (data_type: double) to customer attributes.
- customers#index: Add balance only if specified in extra_fields
query parameter: extra_fields[customer]=balance
2023-02-15 11:14:27 +01:00
Mikael Norlén
3989843a21
Add support for extra fields in JsonApiSchemas
...
As we are now supporting optional extra fields,
We need to be able to construct schemas where
extra fields are optionally included.
2023-02-15 11:14:27 +01:00
Mikael Norlén
22b1dd3232
Add support for extra_fields query parameter
...
Api now supports optional fields.
These are included with the extra_fields query param.
Syntax: extra_fields[type]=field1,field2
2023-02-15 11:14:27 +01:00
Mikael Norlén
96c0057b03
Use Customers as argument for CustomersWithBalance
...
Change argument for CustomersWithBalance from
enterprise_id to Customers collection.
We have the need to calculate balance for customers in general,
not just for customers in a given enterprise.
2023-02-15 11:14:27 +01:00
Jean-Baptiste Bellet
1fb4e27064
Upgrade to latest 17.* node version
2023-02-09 14:00:19 +01:00
Jean-Baptiste Bellet
9f2a17c3e9
Upgrade to node 17 which requires a --openssl-legacy-provider option
...
Node 17 moved to OpenSSL3, see https://nodejs.org/en/blog/release/v17.0.0/#openssl-3-0 for more.
2023-02-09 12:54:11 +01:00
Jean-Baptiste Bellet
ac639fa283
Upgrade node to the next LTS version
...
(which is in maintenance mode, but let's be incremental to test)
2023-02-09 10:56:28 +01:00