-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Move bunch of javascript variables from global scope to local scope in magnifier.js file #39321
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
base: 2.4-develop
Are you sure you want to change the base?
Conversation
Hi @hostep. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
@magento run all tests |
Hi @hostep, Thanks for the collaboration & contribution! ✔️ QA PassedPreconditions:
Steps to reproduce
Before: ✖️ After: ✔️ Magnifier functionality was working the way it worked before Builds are failed. Hence, moving this PR to Extended Testing. Thanks. |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE |
@magento run all tests |
@magento run Database Compare, Functional Tests B2B, Functional Tests CE, Functional Tests EE |
1 similar comment
@magento run Database Compare, Functional Tests B2B, Functional Tests CE, Functional Tests EE |
The consistent test failures for Functional B2B are known Issues and JIRA is raised for them. They neither part of PR nor failing because of the PR changes Known Issues: The consistent test failures for Functional CE are known Issues and JIRA is raised for the same. Other failure is inconsistent and seems to be flaky. They neither part of PR nor failing because of the PR changes. Known Issues: The consistent test failure for Functional EE is known Issues and JIRA is raised for the same. Other failure is inconsistent and seems to be flaky. They neither part of PR nor failing because of the PR changes. Known Issues: Hence moving this PR in Merge In Progress. |
Description (*)
Due to a mistake in a 9 year old commit where a
,
was incorrectly changed to a;
, a bunch of JS variables became globally scoped and no longer scoped inside the localMagnify
function.This PR fixes that.
To better review the changes in this PR, please ignore whitespace changes: https://github.com/magento/magento2/pull/39321/files?w=1
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
console.log(magnifierOptions);
Expected:
4. Shouldn't work,
magnifierOptions
should not be available in global scope5. Magnifier functionality should keep working the way it worked before
Questions or comments
I won't be updating/writing automated tests, because I have no idea how to do that in scope of this change. If that's required, please do it yourself :)
Contribution checklist (*)