Fix-Wrong name conversion on getCustomerRegisterUrlUrl() at AuthenticationPopup.php - #36794
Fix-Wrong name conversion on getCustomerRegisterUrlUrl() at AuthenticationPopup.php#36794Vasudev-22 wants to merge 8 commits into
Conversation
|
Hi @Vasudev-22. 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. ✏️ 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. |
Den4ik
left a comment
There was a problem hiding this comment.
@Vasudev-22 Thanks for your PR. Change of public method name is not allowed by Backward compatibility policy. You may add new one private method with correct name and mark original @deprecated
|
Hi @Den4ik ,
I was updated that in PR |
|
@magento run all unit tests |
|
Failed to run the builds. Please try to re-run them later. |
|
@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. |
| */ | ||
| public function getCustomerRegisterUrlUrl() | ||
| { | ||
| return $this->getUrl('customer/account/create'); |
There was a problem hiding this comment.
I would call $this->getCustomerRegisterUrl(); here, to avoid code duplication.
There was a problem hiding this comment.
@Vasudev-22: can you take a look at this remark above also? Thanks! 🙂
As for the deprecation notice, I would put the following, to indicate which method to use instead:
* @deprecated
* @see getCustomerRegisterUrl
There was a problem hiding this comment.
Thanks 2 more remarks:
- I would call
return $this->getCustomerRegisterUrl();here, instead ofreturn $this->getUrl('customer/account/create');to avoid code duplication. - Please replace
@deprecated due to requirementsjust with@deprecated, I think you may have misunderstood @Den4ik's remark
Thank you!
There was a problem hiding this comment.
@hostep Yes confused those comments, Now updated.
Thanks for pointing.
| /** | ||
| * Get customer register url | ||
| * | ||
| * @deprecated |
There was a problem hiding this comment.
Please add deprecation comment due to requirements
|
@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. |
| * Get customer register url | ||
| * @return string | ||
| */ | ||
| private function getCustomerRegisterUrl() |
There was a problem hiding this comment.
I think this one should be public instead of private, because the original method was also public?
Update: @Den4ik: I see you mentioned making it private in your earlier review. But won't we cause confusion with callers of the original method when we mark that one as deprecated and give no new method as alternative to call?
|
@Vasudev-22 — every review point here was addressed except one, and it is still open: @hostep asked whether the replacement should be The typo is still on 2.4-develop ( |
|
Opened #41168 which continues this PR — rebased onto current 2.4-develop with your commits and authorship preserved, and with @hostep's outstanding point addressed: the replacement method is now @Vasudev-22 thanks for the original fix. @hostep @Den4ik #41168 should be ready for review. |
Description (*)
Wrong name conversion on getCustomerRegisterUrlUrl() at AuthenticationPopup.php
Changed this function to getCustomerRegisterUrl()
Related Pull Requests
#36735
Fixed Issues (if relevant)
Questions or comments
Contribution checklist (*)