- Notifications
You must be signed in to change notification settings - Fork 9.4k
Remove unnecessary scripts review summary #34643
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
Remove unnecessary scripts review summary #34643
Conversation
Hi @in-session. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
reason because it's rely on id . I think that why reason author use that approach |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hi @ihor-sviziev , it was done in the scope of the story: "Move inline event handlers, styles to dedicated tags in phtml templates" |
Hi @in-session, |
Sorry, I don't quite get it yet :-) Due to the changes in the files, a script is no longer needed to display the rating summary stars. |
@in-session ifi got it correctly, the CSP rules in Magento disallows using inline styles, that's why it was added |
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.
Hello @in-session
Thank you for your contribution.
Could you please fix static tests
Thank you in advance.
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento give me 2.4-develop instance |
Hi @engcom-Lima. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Lima, here is your Magento Instance: https://02a2be646aebdb55cff8ce5523c383e1.instances-prod.magento-community.engineering |
@magento give me test instance |
Hi @engcom-Lima. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Lima, here is your Magento Instance: https://39fd41f4a9b1c3675af301a185ecf248.instances-prod.magento-community.engineering |
@magento create issue |
@magento run all tests |
@magento run Functional Tests CE, Integration Tests, Static Tests |
@magento run Functional Tests B2B, Static Tests |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests EE |
The functional B2B and EE tests failures in recent 2 builds are not consistent. The tests are not part of the PR or not failing because of the PR changes, considering them as flaky. Hence moving this PR to Merge in Progress. Functional B2B Run 1: ![]() ![]() ![]() ![]() |
015206d
into magento:2.4-develop
I don't see the need to use a script for the rating here I think with inline style that should be enough. This optimization avoids loading and executing JavaScript, which can result in faster page load time. In addition, the code is simplified and more readable because the CSS styles are specified directly in the HTML markup.
On women/tops-women/jackets-women.html removes 12 script tags
Before:


After:


Resolved issues: