-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Channel awareness for FacetService findByCode #3201
base: minor
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
c6daeaf
to
a6b051e
Compare
a6b051e
to
c4cd542
Compare
Quality Gate passedIssues Measures |
Hi, Do you have some situation where there is more than 1 version of the same code on different channels? |
Yes. We have a custom populate scenario where we import a csv for a 1 or more demo channels. A number of facets are created on the default channel and shared between channels. The FacetValue are channel specific and created on a per channel basis referencing the central facet and all have the same code. We don't want I figured in general all the facet - facetValue relation retrieval should result in a channel specific result and that it would likely solve a lot of hard to diagnose issues we had during the import process. |
Yes, as @mschipperheyn mentioned, that is the same case we are struggling with. We need full channel-aware support for all entities when we have two distinct channels of customers. I think I also need to work on the entity. |
Description
This PR introduces channel awareness to the findByCode method in the FacetService. The method now uses a channel-aware query to ensure that facets are retrieved in the context of the specified channel. This change enhances the accuracy and relevance of the data returned by the service.
Breaking changes
This PR does not introduce any breaking changes. The existing functionality is preserved, and backward compatibility is maintained by supporting the old method signature.
Checklist
📌 Always:
👍 Most of the time: