-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Update Store.php #38717
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?
Update Store.php #38717
Conversation
Hi @thomas-kl1. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run Unit Tests |
@magento run all tests |
@magento run all tests |
Failures are not related to PR's changes. |
@magento run all tests |
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 @thomas-kl1,
Thanks for the collaboration!
Please fix the failed static test, other failures seems flaky to me. Also update or add unit tests to cover scenarios where isCurrentlySecure()
is called for different store scopes.
Thanks
@engcom-Hotel it says that copyright must be updated, could you tell me which one should I use? |
Hello @thomas-kl1, Currently the copyright is showing something like below:
We need to update it something as below:
|
@magento run all tests |
Hello @thomas-kl1, As per this #38717 (review), please update/add the Unit test as well. Thanks |
Hello @thomas-kl1 I wanted to check if you are working on the automated unit test coverage. If not, Can I take care of them? Just let me know what works best for you. Thanks! |
Hello @engcom-Dash Regards, |
@magento run all tests |
Hello @engcom-Hotel As per review comment, I have updated the Unit tests for the changes done in this PR. Please review the changes. Thanks! |
@magento run all tests |
@magento create issue |
@thomas-kl1 Thank you for the contribution & collaboration! ✔️ QA PassedBefore:
After:
By looking at the code changes, it make sense that Instead of relying on Magento's global context to determine the current store, it explicitly passes the store ID ($this->getId()) to the getValue() method to avoid global context resolution. By passing the store ID directly, Magento skips the logic to resolve the current store leads to performance improvement. Some of the builds are failing hence moving this PR in Extended Testing. |
@magento run 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. Known Issues: The consistent test failures for Functional CE is known Issues and JIRA is raised for the same. Other failures are 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 failures are 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 (*)
Performance improvment by skipping current store resolution.
Also it makes sense by design that the configuration is resolved from the internal state of the object instead of global context.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Resolved issues: