-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Include Constructor to be a part of CommandListInterface
API, extend inline documentation
#37901
base: 2.4-develop
Are you sure you want to change the base?
Include Constructor to be a part of CommandListInterface
API, extend inline documentation
#37901
Conversation
Hi @engcom-Echo. 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. |
@api
to ensure backwards compatibilityCommandListInterface
API, extend inline documentation
@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. |
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.
This PR is the reference of the PR #29762, we have just changed the target branch to 2.4-develop from 2.5-develop.
Hence approving this PR to move forward.
Thanks
Hello @lbajsarowicz, Thanks for the contribution! ✔️ QA Passed As in this PR, the changes are related to making the There is nothing to reproduce in this issue but it is a good to have feature. Hence moving this PR further process. Due to SVC failure, moving this PR for approval. Thanks |
@magento run Functional Tests EE, Unit 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. |
Created an approval JIRA from approval of SVC failure. |
… Problem with the link - Fix 'It's time to change your password' link in admin panel
@magento run Semantic Version Checker |
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. |
Description (*)
This PR is copy of 29762. As in original PR target branch was 2.5-develop we have modified to point to 2.4-develop.
In my personal opinion usingCommandListInterface
is invalid way of adding new Commands to interface.It is because Constructor is not a part of Interface (Service Contract), thus it is not "guaranteed" part of Interface.
UsingCommandList
is against Magento rules, thus it's implementation is not guaranteed and can change in backwards-incompatible way.I'm extending theCommandList
with@api
to ensure developers that this class won't change backwards-incompatible way and this way - they can either add new classes using:Argument injection toCommandList
classPlugin ongetCommands
onCommandListInterface
.I'd love to get your feedback there.After discussion with @kandy I decided to add the
__construct()
to the API.Answering the main concerns: https://3v4l.org/8ug8i
As it affects you (community) I need your 👍🏻 or comments to pass the change:
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Thanks
Resolved issues:
CommandListInterface
API, extend inline documentation #31102: Include Constructor to be a part ofCommandListInterface
API, extend inline documentation