Maikel Linke
56667f6142
Simplify test setup with enabled features
...
If a feature is activated or not depends on the database which is reset
after each test scenario. So enabling a feature doesn't leak into other
scenarios.
Just enabling the feature is less code and more realistic than mocking a
method call.
2022-10-27 15:32:05 +11:00
Maikel Linke
f9246f1917
Remove unused/broken feature toggle helper
2022-10-27 15:25:33 +11:00
Maikel Linke
36c44a5487
Allow FeatureToggleConstraint to run w/o warden
...
Routing specs and controller specs don't set warden on the request
environment. While we could try to re-implement Warden/Devise logic
here, it's much easier to not rely on the environment to be set.
While I'm usually opposed to changing production code to make testing
easier, it does avoid a lot of complication in this case. And maybe it
would be handy in other circumstances to have a more defensive approach
to checking the logged in user.
2022-10-27 15:07:04 +11:00
Maikel Linke
6aefc23c35
Allow devs to lazy-load app with right dependency
2022-10-26 14:08:27 +11:00
Maikel Linke
7c562d321d
Activate DfcProvider with feature toggle, not prod
...
We want to test in dev and on staging, too.
2022-10-26 14:08:27 +11:00
Maikel
5a4727138c
Merge pull request #9875 from filipefurtad0/fix_flaky_spec_8701
...
Minor changes to improve flakyness
2022-10-26 14:00:08 +11:00
Maikel
fe05d17078
Merge pull request #9872 from jibees/update-actions/upload-artifact-to-lastest-version
...
Build: use the latest version of `actions/upload-artifact`
2022-10-26 13:58:48 +11:00
filipefurtad0
14955ac8ca
Minor changes to improve flakyness
2022-10-25 17:39:10 +01:00
dependabot[bot]
06c6853323
Merge pull request #9856 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-docs-6.5.13
2022-10-25 14:08:01 +00:00
dependabot[bot]
4e0b206c7b
Merge pull request #9857 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-controls-6.5.13
2022-10-25 13:59:39 +00:00
Konrad
3d003a735f
Merge pull request #9851 from openfoodfoundation/dependabot/bundler/aws-sdk-s3-1.116.0
...
Bump aws-sdk-s3 from 1.114.0 to 1.116.0
2022-10-25 15:52:34 +02:00
dependabot[bot]
eaa6e9bc18
Bump @storybook/addon-docs from 6.5.12 to 6.5.13
...
Bumps [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/addons/docs ) from 6.5.12 to 6.5.13.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/v6.5.13/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.5.13/addons/docs )
---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 13:20:15 +00:00
dependabot[bot]
91652ba792
Bump @storybook/addon-controls from 6.5.12 to 6.5.13
...
Bumps [@storybook/addon-controls](https://github.com/storybookjs/storybook/tree/HEAD/addons/controls ) from 6.5.12 to 6.5.13.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/v6.5.13/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.5.13/addons/controls )
---
updated-dependencies:
- dependency-name: "@storybook/addon-controls"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 13:19:28 +00:00
dependabot[bot]
4bf640f0c4
Merge pull request #9866 from openfoodfoundation/dependabot/bundler/rubocop-1.37.1
2022-10-25 13:18:51 +00:00
jibees
cf489e809f
Merge pull request #9867 from openfoodfoundation/dependabot/bundler/rswag-specs-2.7.0
...
Bump rswag-specs from 2.6.0 to 2.7.0
2022-10-25 15:18:18 +02:00
jibees
35bb539271
Merge pull request #9855 from openfoodfoundation/dependabot/npm_and_yarn/hotwired/turbo-7.2.4
...
Bump @hotwired/turbo from 7.2.2 to 7.2.4
2022-10-25 15:17:25 +02:00
jibees
b3020a5573
Merge pull request #9854 from openfoodfoundation/dependabot/npm_and_yarn/floating-ui/dom-1.0.3
...
Bump @floating-ui/dom from 1.0.2 to 1.0.3
2022-10-25 15:17:05 +02:00
jibees
250b9bc3c0
Merge pull request #9853 from openfoodfoundation/dependabot/npm_and_yarn/storybook/server-6.5.13
...
Bump @storybook/server from 6.5.12 to 6.5.13
2022-10-25 15:16:30 +02:00
Jean-Baptiste Bellet
e58add6af0
Use the latest version of actions/upload-artifact
2022-10-25 15:00:14 +02:00
Konrad
62935f65a2
Merge pull request #9849 from openfoodfoundation/dependabot/bundler/active_storage_validations-1.0.2
...
Bump active_storage_validations from 1.0.0 to 1.0.2
2022-10-25 12:04:50 +02:00
Konrad
e8425c5805
Merge pull request #9792 from vsmay98/6531-remove-user-registrations-controller
...
Remove spree user registrations controller file
2022-10-25 11:52:34 +02:00
dependabot[bot]
31cde7e06e
Bump @hotwired/turbo from 7.2.2 to 7.2.4
...
Bumps [@hotwired/turbo](https://github.com/hotwired/turbo ) from 7.2.2 to 7.2.4.
- [Release notes](https://github.com/hotwired/turbo/releases )
- [Commits](https://github.com/hotwired/turbo/compare/v7.2.2...v7.2.4 )
---
updated-dependencies:
- dependency-name: "@hotwired/turbo"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 09:31:08 +00:00
dependabot[bot]
f467efc42b
Bump @storybook/server from 6.5.12 to 6.5.13
...
Bumps [@storybook/server](https://github.com/storybookjs/storybook/tree/HEAD/app/server ) from 6.5.12 to 6.5.13.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/v6.5.13/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.5.13/app/server )
---
updated-dependencies:
- dependency-name: "@storybook/server"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 09:30:49 +00:00
dependabot[bot]
faa8888e2a
Bump @floating-ui/dom from 1.0.2 to 1.0.3
...
Bumps [@floating-ui/dom](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/dom ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/floating-ui/floating-ui/releases )
- [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/dom@1.0.3/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 >
2022-10-25 09:30:47 +00:00
jibees
84f488917e
Merge pull request #9865 from jibees/sort-package.json-file
...
Sort package.json to avoid conflicts
2022-10-25 11:29:41 +02:00
dependabot[bot]
00c57fa06c
Bump rswag-specs from 2.6.0 to 2.7.0
...
Bumps [rswag-specs](https://github.com/rswag/rswag ) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/rswag/rswag/releases )
- [Changelog](https://github.com/rswag/rswag/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rswag/rswag/compare/2.6.0...2.7.0 )
---
updated-dependencies:
- dependency-name: rswag-specs
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 09:03:31 +00:00
dependabot[bot]
c4748104a0
Bump rubocop from 1.36.0 to 1.37.1
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.36.0 to 1.37.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.36.0...v1.37.1 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 09:02:59 +00:00
Jean-Baptiste Bellet
46bbf1b1ec
Sort package.json to avoid conflicts
2022-10-25 10:54:11 +02:00
Konrad
d12e99e363
Merge pull request #9808 from abdellani/sort_items_by_product_name_in_ocstd_report
...
add sort by product name to order_cycle_supplier_totals_by_distributo…
2022-10-25 10:34:22 +02:00
Maikel
85c8a0ac35
Merge pull request #9852 from openfoodfoundation/dependabot/bundler/rswag-api-2.7.0
...
Bump rswag-api from 2.6.0 to 2.7.0
2022-10-25 14:33:04 +11:00
Maikel
0e9869c4d3
Merge pull request #9848 from openfoodfoundation/dependabot/bundler/debug-1.6.3
...
Bump debug from 1.6.2 to 1.6.3
2022-10-25 14:02:17 +11:00
Maikel
a3416bcb80
Merge pull request #9790 from matisnape/update-docker-readme-for-m1-users-#8421
...
Update docker readme for M1 users [#8421 ]
2022-10-25 11:12:09 +11:00
Maikel
bf206dc4e6
Merge pull request #9858 from jibees/setup-redis-for-build
...
Setup redis on build
2022-10-25 11:11:08 +11:00
Maikel
55ef4dfe0d
Merge pull request #8809 from Matt-Yorkley/dead-code-variants-check
...
Remove dead code: Product#variants?
2022-10-25 10:49:01 +11:00
Konrad
4a7ac45dba
Merge pull request #9830 from jibees/9821-remove-report_inverse_columns_logic-feature-toggle
...
Remove `report_inverse_columns_logic` feature toggle
2022-10-25 00:23:31 +02:00
Konrad
df925d6412
Merge pull request #9737 from Laurel16/fix_issue#9559
...
Translate error messages when creating products
2022-10-24 23:17:32 +02:00
Konrad
84bf38ce4d
Merge pull request #9791 from vsmay98/8250-fix-snail-for-all-enterprise-fee
...
Fix snail issue for all enterprise fees
2022-10-24 21:49:45 +02:00
Jean-Baptiste Bellet
892a020bcc
Setup redis on build
2022-10-24 17:01:12 +02:00
dependabot[bot]
1f5281ac1a
Bump rswag-api from 2.6.0 to 2.7.0
...
Bumps [rswag-api](https://github.com/rswag/rswag ) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/rswag/rswag/releases )
- [Changelog](https://github.com/rswag/rswag/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rswag/rswag/compare/2.6.0...2.7.0 )
---
updated-dependencies:
- dependency-name: rswag-api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 11:19:45 +00:00
Rachel Arnould
3c9b7a10f4
Merge pull request #9058 from Matt-Yorkley/oidc-redux
...
Add OIDC authentication for Les Communs
2022-10-24 13:18:36 +02:00
Jean-Baptiste Bellet
e2441cdcf6
Use the report type or subtype as the title
2022-10-24 11:12:22 +02:00
Jean-Baptiste Bellet
6dec80aaaf
Links only on right side
2022-10-24 11:12:22 +02:00
Jean-Baptiste Bellet
1c349049d1
Remove report description when they are useless
2022-10-24 11:12:22 +02:00
Jean-Baptiste Bellet
edc667a336
By default, some columns are hidden.
2022-10-24 11:12:22 +02:00
Jean-Baptiste Bellet
02787e668f
Remove report_inverse_columns_logic feature toggle
...
Co-Authored-By: Maikel <maikel@email.org.au >
2022-10-24 11:12:22 +02:00
dependabot[bot]
830a7c8f1d
Bump aws-sdk-s3 from 1.114.0 to 1.116.0
...
Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby ) from 1.114.0 to 1.116.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 >
2022-10-24 09:03:55 +00:00
dependabot[bot]
cd43bd4522
Bump active_storage_validations from 1.0.0 to 1.0.2
...
Bumps [active_storage_validations](https://github.com/igorkasyanchuk/active_storage_validations ) from 1.0.0 to 1.0.2.
- [Release notes](https://github.com/igorkasyanchuk/active_storage_validations/releases )
- [Changelog](https://github.com/igorkasyanchuk/active_storage_validations/blob/master/CHANGES.md )
- [Commits](https://github.com/igorkasyanchuk/active_storage_validations/compare/1.0.0...1.0.2 )
---
updated-dependencies:
- dependency-name: active_storage_validations
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 09:03:07 +00:00
dependabot[bot]
9dbc9f7272
Bump debug from 1.6.2 to 1.6.3
...
Bumps [debug](https://github.com/ruby/debug ) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/ruby/debug/releases )
- [Commits](https://github.com/ruby/debug/compare/v1.6.2...v1.6.3 )
---
updated-dependencies:
- dependency-name: debug
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 09:02:49 +00:00
Mohamed ABDELLANI
da9a4803ff
add it "lists products sorted by name" test
2022-10-24 09:01:42 +01:00
Mohamed ABDELLANI
732ebd8457
fix the expected table size in "generates the report" test
2022-10-24 09:01:42 +01:00