Maikel Linke
df3fc83c8e
Remove version from DFC API URL in specs
...
We were aiming to use stable URLs to identify resources but the URL
helpers were still using dfc-v1.7 because that was the last and
overriding path of the mounted DFC Provider engine.
2023-09-11 15:00:08 +10:00
Maikel Linke
7654d37fc3
DRY, shorten swagger file names
2023-09-11 14:57:39 +10:00
Maikel Linke
fe2eecb69e
DRY swagger-ui config with relative path
2023-09-11 14:57:38 +10:00
Maikel Linke
fc7c8757d9
Move DFC patches into our DFC engine
...
It seems to belong there and it's avoiding some loading issues with
Spring.
2023-09-11 14:57:38 +10:00
Maikel Linke
73193fbfd0
Explicitely load our DFC Connector patches
...
It makes sure we can extend functionality without conflicts.
2023-09-11 14:57:38 +10:00
Maikel Linke
191c4a79db
Load spec helpers before Rails is loaded
...
Using Spring was hiding an loading error. When you start Rspec, Rails
and its engines are not loaded yet. So our way to load the spec helper
via `Rails.root` did not work when you ran specs on their own without
loading Rails with Spring first.
2023-09-11 14:57:38 +10:00
Maikel Linke
6316974146
Group DFC API operations by endpoint
...
Previously they were all in one long list called "default".
2023-09-11 14:57:38 +10:00
dependabot[bot]
ce7c9f0895
chore(deps): bump rails from 7.0.7.2 to 7.0.8
...
Bumps [rails](https://github.com/rails/rails ) from 7.0.7.2 to 7.0.8.
- [Release notes](https://github.com/rails/rails/releases )
- [Commits](https://github.com/rails/rails/compare/v7.0.7.2...v7.0.8 )
---
updated-dependencies:
- dependency-name: rails
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-11 04:05:35 +00:00
dependabot[bot]
29f476e559
chore(deps-dev): bump rubocop-rails from 2.20.2 to 2.21.0
...
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails ) from 2.20.2 to 2.21.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.20.2...v2.21.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-09-11 04:01:42 +00:00
Maikel
ecc04b05e3
Merge pull request #11512 from openfoodfoundation/dependabot/bundler/stripe-9.2.0
...
chore(deps): bump stripe from 9.1.0 to 9.2.0
2023-09-11 14:00:15 +10:00
Neal Chambers
e69e5eb0ec
Update .rubocop_todo.yml
2023-09-09 09:02:14 +09:00
Neal Chambers
416d6e538a
Fix Style/HashSyntax
2023-09-09 09:00:38 +09:00
Matt-Yorkley
839e580878
Fix error when importing entries with a tax category
2023-09-08 19:24:50 +01:00
Gaetan Craig-Riou
8face3d182
Merge pull request #11488 from macanudo527/fix_helperinstancevariable_2
...
Fix Rails/HelperInstanceVariable 2
2023-09-08 19:51:39 +10:00
dependabot[bot]
eb4517cf0b
chore(deps): bump stripe from 9.1.0 to 9.2.0
...
Bumps [stripe](https://github.com/stripe/stripe-ruby ) from 9.1.0 to 9.2.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/v9.1.0...v9.2.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-09-08 09:15:23 +00:00
David Cook
99da60921f
Fix Update button sizing
...
This was broken when upgrading [Foundation](https://github.com/openfoodfoundation/openfoodnetwork/pull/11349 ). For some reason the button.expand class now sets larger font size and padding, which overrides the button.small class. It's probably a bug but we'll have to work around it.
2023-09-08 10:20:26 +10:00
Maikel
1991970185
Merge pull request #11377 from mkllnk/dfc-update-request
...
[DFC API] Import known units when creating new products
2023-09-08 09:05:26 +10:00
Filipe
b64c1c2675
Merge pull request #11349 from dacook/foundation-sites-5.5.3
...
chore(deps): bump foundation-sites from 5.5.2 to 5.5.3
2023-09-07 18:33:43 +01:00
Filipe
ccabf5936d
Merge pull request #11505 from drummer83/master
...
[Super admin] Highlight 'Configuration' tab on 'Terms of Service' page
2023-09-07 18:00:18 +01:00
Konrad
ea622cd2d7
Merge pull request #11487 from pedrocarmona/feature/invitation-email-locale
...
Send translated email when creating users via super admin interface
2023-09-07 16:41:59 +02:00
Gaetan Craig-Riou
f225cd78df
Handle unique voucher code exception
...
Rails validation doesn't handle unique validation for soft deleted
object. So we rescue the exception raise by the database and display
a nice error message. We don't want an enterprise to be able to reuse
a code in case the voucher get reactivated.
2023-09-07 15:13:47 +02:00
Gaetan Craig-Riou
63cd8ccf28
Test scenario where a voucher is deactivated before end of checkout
...
A customer should be able to complete the checkout even if the voucher
has been deactivated after being added to the order.
2023-09-07 14:00:26 +02:00
Gaetan Craig-Riou
b955e0b25d
Use depedend: nil on adjustment association
...
We want to keep the voucher adjustment associated with the Voucher
event when the voucher as been soft deleted, as we use this
functionality as activate/deactivate feature
2023-09-07 13:58:07 +02:00
David Cook
ab5e16effb
chore(deps): bump foundation-sites from 5.5.2 to 5.5.3
...
Better 7 years late than never...
This resolves CWE-79: https://security.snyk.io/vuln/npm:foundation-sites:20150619
2023-09-07 11:45:37 +10:00
drummer83
a7ddf99ee4
Fix typo
2023-09-06 23:20:12 +02:00
drummer83
13d5b954e6
Add 'Terms of Service' to the tabs
2023-09-06 23:18:00 +02:00
Konrad
3b9ebf4e07
Merge pull request #11396 from abdellani/fix-if-tos-is-not-set
...
fix If ToS file is not set, customer needs to accept Terms on each checkout
2023-09-06 16:56:21 +02:00
Neal Chambers
dbb758b73a
Update .rubocop_todo.yml
2023-09-06 22:36:51 +09:00
Neal Chambers
2da9ffd3cb
Delete Unused Helper Functions
2023-09-06 22:36:51 +09:00
Neal Chambers
b1e40ed605
Fix Rails/HelperInstanceVariable
2023-09-06 22:36:46 +09:00
jibees
d8f4f58c77
Merge pull request #11499 from openfoodfoundation/dependabot/bundler/web-console-4.2.1
...
chore(deps-dev): bump web-console from 4.2.0 to 4.2.1
2023-09-06 08:52:58 +02:00
dependabot[bot]
954e080cbf
chore(deps-dev): bump web-console from 4.2.0 to 4.2.1
...
Bumps [web-console](https://github.com/rails/web-console ) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/rails/web-console/releases )
- [Changelog](https://github.com/rails/web-console/blob/main/CHANGELOG.markdown )
- [Commits](https://github.com/rails/web-console/compare/v4.2.0...v4.2.1 )
---
updated-dependencies:
- dependency-name: web-console
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-06 01:44:08 +00:00
David Cook
aaa3bebb93
Merge pull request #11495 from openfoodfoundation/dependabot/bundler/valid_email2-5.0.0
...
chore(deps): bump valid_email2 from 4.0.6 to 5.0.0
2023-09-06 11:39:26 +10:00
Gaetan Craig-Riou
d1b5dcab88
Add ability to activate deactivate a voucher
...
Plus controller specs
2023-09-05 15:48:59 +02:00
Gaetan Craig-Riou
79f4caaee2
Clean up spec
2023-09-05 15:48:30 +02:00
dependabot[bot]
3405865c0f
chore(deps): bump valid_email2 from 4.0.6 to 5.0.0
...
Bumps [valid_email2](https://github.com/micke/valid_email2 ) from 4.0.6 to 5.0.0.
- [Changelog](https://github.com/micke/valid_email2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/micke/valid_email2/compare/v4.0.6...v5.0.0 )
---
updated-dependencies:
- dependency-name: valid_email2
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-05 09:48:34 +00:00
David Cook
a096c56658
Merge pull request #11484 from openfoodfoundation/mkllnk-patch-1
...
Add release note category "API changes"
2023-09-05 13:29:55 +10:00
Maikel Linke
997c8a49ca
Combine system specs for efficiency
2023-09-05 10:51:38 +10:00
Pedro Carmona
51050036d4
Use instance default locale as the default locale for a new user
2023-09-05 01:00:35 +01:00
Pedro Carmona
c4830e3baa
Send localized email when creating users via admin interface
...
Based on the current user locale
2023-09-05 01:00:35 +01:00
David Cook
0874c7ddb8
Merge pull request #11309 from filipefurtad0/legal_invoices_spec_comparator
...
[Invoices] Adds unit level test coverage order model attributes
2023-09-05 09:45:00 +10:00
Maikel
b1a88ab7a9
Merge pull request #11490 from mkllnk/sample-data-validation
...
Skip online validation of sample emails
2023-09-05 09:28:16 +10:00
Konrad
c50a3b4f86
Merge pull request #11489 from mkllnk/order_cycle_schedule
...
Require associations on join model
2023-09-04 21:37:30 +02:00
Konrad
fd6f2338e5
Merge pull request #11450 from mkllnk/feature-toggle-enterprise
...
Activate vouchers feature per user or enterprise
2023-09-04 21:30:41 +02:00
filipefurtad0
82ca115931
Removes unnecessary && operator
...
reloads instead of saving order again
2023-09-04 19:35:28 +01:00
filipefurtad0
4e54279b05
Rearranges relevant and non-relevant test cases
2023-09-04 19:32:06 +01:00
Konrad
406577ed2a
Merge pull request #11140 from jibees/11129-add-trix-editor-to-product-description-editor
...
Admin, add trix editor to product description editor (both new and edit)
2023-09-04 20:22:14 +02:00
Gaetan Craig-Riou
08c131680d
Merge pull request #11471 from mkllnk/variant-supplier
...
[DFC API] Replace service class with simple AR association
2023-09-04 23:59:37 +10:00
Jean-Baptiste Bellet
b6b64e9439
Add trix editor to new product form
2023-09-04 15:46:54 +02:00
Jean-Baptiste Bellet
1d5d1c5405
Include trix-styles mixin in where content from trix is displayed
2023-09-04 15:46:54 +02:00