Cillian O'Ruanaidh
4e0bf75ecf
Get tests broken because of new order cycle shipping method validations working again
2022-09-30 13:13:39 +01:00
Cillian O'Ruanaidh
a46b77d10c
Ensure hack for showing products on a shop with closed order cycles also works if an order cycle has no shipping methods
...
If a distributor order cycle has no shipping methods it will be invalid. This is a bit confusing because adding a check for :invalid seems like it would be better if it was done in the Shop::OrderCyclesList service but the hack doesn't work if you put it in there, it seems like something needs a refactor.
2022-09-30 13:13:39 +01:00
Cillian O'Ruanaidh
5a4bc79c74
Update sample data task so distributor order cycles have shipping methods attached i.e. are valid
2022-09-30 13:13:39 +01:00
Cillian O'Ruanaidh
bff7650b35
Change :available_shipping_methods helper to use new OrderAvailableShippingMethods service.
2022-09-30 13:13:39 +01:00
Cillian O'Ruanaidh
855ec1a708
Add new 'Checkout options' step to the edit order cycle form so people can attach shipping methods
2022-09-30 13:13:39 +01:00
Cillian O'Ruanaidh
1e817af5aa
Validate deleting a shipping method or switching it to backoffice only doesn't invalidate any order cycles
2022-09-30 13:13:39 +01:00
Cillian O'Ruanaidh
48c2e48b24
Update the OrderCycleForm service so it supports attaching shipping methods
2022-09-30 13:13:39 +01:00
Cillian O'Ruanaidh
ca97a7f52d
Add :shipping_methods association to OrderCyle and validations
2022-09-30 13:13:39 +01:00
Cillian O'Ruanaidh
9a6e8a1113
Add an OrderCycleShippingMethod model to handle attaching shipping methods to order cycles
2022-09-30 13:13:39 +01:00
Cillian O'Ruanaidh
94d71b8dce
Remove extra unnecessary :display_on_checkout scope and reuse :frontend scope instead
2022-09-30 13:13:39 +01:00
Cillian O'Ruanaidh
a5daee39e3
Extract out a DISPLAY_ON_OPTIONS constant in Spree::ShippingMethod instead of magic strings
2022-09-30 13:13:39 +01:00
Cillian O'Ruanaidh
37617f63ea
Remove non-functional :backend scope from Spree::ShippingRate
...
It finds shipping methods where 'display_on != front_end' but :front_end values were removed in a1317be19b/db/migrate/20200508101630_convert_frontend_shipping_method_to_both.rb so it will always return true.
2022-09-30 13:13:39 +01:00
Cillian O'Ruanaidh
9b5f743fa5
Extract out a OrderCycle#simple? method so it can be used in models
2022-09-30 13:13:39 +01:00
Filipe
e85dd99e04
Merge pull request #9633 from binarygit/add-stimulus-reflex
...
Add StimulusReflex
2022-09-29 17:11:18 +01:00
binarygit
ebe4a3d6ab
Add StimulusReflex
2022-09-29 16:03:45 +02:00
jibees
382f8c38f6
Merge pull request #9712 from jibees/solve-uglifier-error
...
Remove now unnecessary uglifier gem
2022-09-29 16:02:14 +02:00
Jean-Baptiste Bellet
a024d0e5ac
Remove uglifier
2022-09-29 15:24:31 +02:00
Rachel Arnould
f8f778eaa1
Merge pull request #9686 from jibees/9684-fix-search-customer-in-order-creation-for-super-admin
...
Admin, New Order, Search customer: As a super admin, search for customer within all enterprises
2022-09-29 14:35:18 +02:00
jibees
5dc4a859f7
Merge pull request #9717 from openfoodfoundation/dependabot/bundler/view_component-2.74.0
...
Bump view_component from 2.73.0 to 2.74.0
2022-09-29 10:19:23 +02:00
jibees
9323931a21
Merge pull request #9715 from openfoodfoundation/dependabot/npm_and_yarn/babel/preset-env-7.19.3
...
Bump @babel/preset-env from 7.19.1 to 7.19.3
2022-09-29 09:33:28 +02:00
Maikel Linke
d81037d658
Simplify branching logic in SearchesController
2022-09-29 09:30:21 +02:00
Maikel Linke
12d7db3dd6
More efficient enterprise access check
2022-09-29 09:30:21 +02:00
Jean-Baptiste Bellet
cdf71b419f
Search within all enterprises if user is the super admin
2022-09-29 09:30:21 +02:00
dependabot[bot]
6f6b1ce9e6
Bump view_component from 2.73.0 to 2.74.0
...
Bumps [view_component](https://github.com/viewcomponent/view_component ) from 2.73.0 to 2.74.0.
- [Release notes](https://github.com/viewcomponent/view_component/releases )
- [Changelog](https://github.com/ViewComponent/view_component/blob/main/docs/CHANGELOG.md )
- [Commits](https://github.com/viewcomponent/view_component/compare/v2.73.0...v2.74.0 )
---
updated-dependencies:
- dependency-name: view_component
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-29 07:02:17 +00:00
Maikel
2c2d244c56
Merge pull request #9716 from filipefurtad0/fix_reports_spec
...
Fixes invert columns logic on reports spec
2022-09-29 17:00:38 +10:00
Maikel
c000c0dd5d
Merge pull request #9709 from openfoodfoundation/dependabot/bundler/view_component-2.73.0
...
Bump view_component from 2.72.0 to 2.73.0
2022-09-29 08:23:09 +10:00
Filipe
958c6fe8f3
Merge pull request #9685 from filipefurtad0/remove_js_tracking_code
...
Removes matomo JS tracking code
2022-09-28 23:15:23 +01:00
Filipe
9cc2d30920
Merge pull request #9642 from mkllnk/9002-customer-association
...
Delete duplicate customer entries
2022-09-28 17:17:23 +01:00
filipefurtad0
e00a59212c
Fixes invert columns logic on reports spec
2022-09-28 11:49:20 +01:00
dependabot[bot]
e783594385
Bump @babel/preset-env from 7.19.1 to 7.19.3
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.19.1 to 7.19.3.
- [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.19.3/packages/babel-preset-env )
---
updated-dependencies:
- dependency-name: "@babel/preset-env"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-28 09:03:57 +00:00
dependabot[bot]
fea78884e7
Bump view_component from 2.72.0 to 2.73.0
...
Bumps [view_component](https://github.com/viewcomponent/view_component ) from 2.72.0 to 2.73.0.
- [Release notes](https://github.com/viewcomponent/view_component/releases )
- [Changelog](https://github.com/ViewComponent/view_component/blob/main/docs/CHANGELOG.md )
- [Commits](https://github.com/viewcomponent/view_component/compare/v2.72.0...v2.73.0 )
---
updated-dependencies:
- dependency-name: view_component
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-28 07:23:18 +00:00
jibees
4f290b5bc5
Merge pull request #9707 from filipefurtad0/remove_visible_true_label
...
Removes "visible: true" from system specs
2022-09-28 09:21:19 +02:00
Maikel
52c38428e8
Merge pull request #9624 from filipefurtad0/add_vcr_to_the_stack
...
Add VCR to the stack
2022-09-28 10:48:59 +10:00
filipefurtad0
538844a1fb
Removes _visible: true_ from system specs
2022-09-27 17:32:25 +01:00
filipefurtad0
4690cb102b
Adds sets-up the cassettes correctly and other configs
...
deletes unecessary files
Reverts helper option to turn VCR off
2022-09-27 07:26:26 +01:00
Maikel Linke
4e33bd2713
Avoid trying to delete address referenced elsewhere
2022-09-27 13:14:51 +10:00
Maikel Linke
286dade66f
Don't enforce ApplicationRecord in migrations
...
We shouldn't use app code in migrations because app code changes while
migrations should always do the same to enable old servers to upgrade.
We have some existing migrations which use ApplicationRecord but I found
that changing them retrospectively breaks them already. So let's leave
them alone.
2022-09-27 13:14:51 +10:00
Maikel Linke
591f901935
Delete duplicate customer entries
2022-09-27 13:14:49 +10:00
Maikel Linke
aec28e0807
Simplify customer model requiring enterprise
2022-09-27 13:14:18 +10:00
Maikel Linke
be31b9a897
Document purpose of customer model
2022-09-27 13:14:18 +10:00
Maikel
6783e7f74c
Fix typo
2022-09-27 12:37:08 +10:00
Maikel
19c9eccffe
Merge pull request #9704 from openfoodfoundation/dependabot/bundler/geocoder-1.8.1
...
Bump geocoder from 1.8.0 to 1.8.1
2022-09-27 12:09:12 +10:00
Maikel
561aa0e291
Merge pull request #9701 from sashashura/patch-6
...
GitHub Workflows security hardening
2022-09-27 11:56:25 +10:00
dependabot[bot]
e45decf14e
Bump geocoder from 1.8.0 to 1.8.1
...
Bumps [geocoder](https://github.com/alexreisner/geocoder ) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/alexreisner/geocoder/releases )
- [Changelog](https://github.com/alexreisner/geocoder/blob/master/CHANGELOG.md )
- [Commits](https://github.com/alexreisner/geocoder/compare/v1.8.0...v1.8.1 )
---
updated-dependencies:
- dependency-name: geocoder
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-26 09:32:31 +00:00
jibees
b851aba81a
Merge pull request #9699 from filipefurtad0/localization_number_settings
...
Adds tests to decimal, thousands and localization number settings
2022-09-26 10:57:28 +02:00
jibees
45040ca702
Merge pull request #9696 from openfoodfoundation/dependabot/npm_and_yarn/hotwired/turbo-7.2.0
...
Bump @hotwired/turbo from 7.1.0 to 7.2.0
2022-09-26 10:56:55 +02:00
jibees
126da75167
Merge pull request #9694 from openfoodfoundation/dependabot/bundler/spring-4.1.0
...
Bump spring from 4.0.0 to 4.1.0
2022-09-26 10:55:51 +02:00
jibees
71b24ef8b9
Merge pull request #9690 from openfoodfoundation/dependabot/bundler/sidekiq-6.5.7
...
Bump sidekiq from 6.5.6 to 6.5.7
2022-09-26 10:54:42 +02:00
jibees
4ae93113f0
Merge pull request #9670 from dacook/generate-erd
...
Script to generate ERD
2022-09-26 10:33:06 +02:00
Alex
8ce82a9ad6
build: harden mapi.yml permissions
...
Signed-off-by: Alex <aleksandrosansan@gmail.com >
2022-09-23 22:52:16 +02:00