-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate dangling option_values and duplicated routes #4385
Deprecate dangling option_values and duplicated routes #4385
Conversation
It makes no sense to have dangling option_values without an associated option_type. Ref solidusio#3309 & solidusio#3517
I asked for some context here, #3517 (comment). It's quite old so not sure we can get anything but I thought it was worth trying. |
It looks like the referenced PR didn't introduce the behavior. It only added a test to make it explicit and fixed an issue when |
By the way, for some reason, CircleCI result is not being reported, although it was successful. See https://app.circleci.com/pipelines/github/nebulab/solidus?branch=waiting-for-dev%2Fduplicated_option_value_endpoints&filter=all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah got it, thanks @waiting-for-dev!
There's no need to fetch the parent id for those routes.
d9583bf
to
7c49645
Compare
As in solidusio#4385: - We keep shallow member routes. We deprecate nested member routes. - We keep creation nested route. We deprecate creation shallow route. - We keep both shallow and nested collection routes (more flexibility for storefronts).
As in solidusio#4385: - We keep shallow member routes. We deprecate nested member routes. - We keep creation nested route. We deprecate creation shallow route. - We keep both shallow and nested collection routes (more flexibility for storefronts).
Add a NOT NULL validation at the database level on top of removing the existing deprecation warning. Ref solidusio#4385.
Add a NOT NULL validation at the database level on top of removing the existing deprecation warning. Ref solidusio#4385.
Add a NOT NULL validation at the database level on top of removing the existing deprecation warning. Ref solidusio#4385.
Add a NOT NULL validation at the database level on top of removing the existing deprecation warning. Ref solidusio#4385.
Add a NOT NULL validation at the database level on top of removing the existing deprecation warning. Ref solidusio#4385.
Add a NOT NULL validation at the database level on top of removing the existing deprecation warning. Ref solidusio#4385.
Add a NOT NULL validation at the database level on top of removing the existing deprecation warning. Ref #4385.
Up until now, we were allowing the creation of option_values without an associated option_type. It makes no sense from the domain logic perspective. Ref #3309 & #3517.
On top of that, we're deprecating the nested version for member routes, as there's no need to fetch the parent id for those.