-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed #26118 Cms Block Graphql Scope wise Data issue #27990
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
Conversation
Hi @shikhamis11. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Hi @shikhamis11, You need to load block by 2 parameters:
So, you can make refactoring of GraphQL resolver and start to use
|
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.
Hi @shikhamis11. Thank you for collaboration. Can you please fix the tests and cover your changes by automated ( I think web API ) tests? If you need any help feel free to chat me!
hi @VladimirZaets |
Hi @shikhamis11 |
Hi @shikhamis11, thank you for your contribution! |
Fixed #26118 cmsBlocks that has scope limited to specific Store View can be seen on other Store Views in case there are Blocks with identical identifiers on both Store Views
Preconditions (*)
Case 1:
1 Website, 1 Store, 2 Store Views
Case 2:
2 Websites, 2 Stores (one per website), 2 Store Views (one per store)
I will demonstrate case 2, because I believe it has higher severity.
(Code: engsite)
(Code: engstore)
(Code: engstv)
(Code: germsite)
(Code: germstore)
(Code: germstv)
(Code: base)
(Code: main_website_store)
(Code: default)
Owner
and "Use Website" is checked[email protected]
and "Use Website" is checkedContent:
Content:
Steps to reproduce (*)
Assertion 1
Query:
Variables:
Headers:
Assertion 2
Query:
Variables:
Headers:
Expected result (*)
Assertion 1.
The scope is not ignored
Assertion 2
Actual result (*)
Assertion 1
The scope was ignored. Sensitive data like email, telephone number, etc. is shown even if:
Assertion 2
The title and the content are wrong. Only values of variables are correct, but not the selection of the variables (test-coverage)
Contribution checklist (*)