Skip to content

Fix #1779: CarrierInterface additional requirement #11822

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

Closed
wants to merge 4 commits into from
Closed

Fix #1779: CarrierInterface additional requirement #11822

wants to merge 4 commits into from

Conversation

dverkade
Copy link
Member

@dverkade dverkade commented Oct 27, 2017

Fixed for issue #1779 as mentioned in closed PR #11293 :

  • Moved methods from AbstractCarrierInterface to CarrierInterface
  • Deprecated AbstractCarrierInterface
  • Removed references to AbstractCarrierInterface in fthe CarrierFactoryInterface, changed them to CarrierInterface.
  • Removed AbstractCarrier model implementing the AbstractCarrierInterface.
  • Changed references from AbstractCarrierInterface to CarrierInterface in de Config model.

- Deprecated AbstractCarrierInterface
- Removed references to AbstractCarrierInterface in fthe CarrierFactoryInterface, changed them to CarrierInterface.
- Removed AbstractCarrier model implementing the AbstractCarrierInterface.
- Changed references from AbstractCarrierInterface to CarrierInterface in de Config model.
@magento-engcom-team magento-engcom-team added 2.2.x bugfix Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release labels Nov 7, 2017
@okorshenko okorshenko added this to the November 2017 milestone Nov 7, 2017
Copy link
Contributor

@omiroshnichenko omiroshnichenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sync your branch with 2.3-develop.

@@ -17,7 +17,7 @@
* @api
* @since 100.0.2
*/
abstract class AbstractCarrier extends \Magento\Framework\DataObject implements AbstractCarrierInterface
abstract class AbstractCarrier extends \Magento\Framework\DataObject
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, revert this change because it is backward incompatible.

/**
* Interface AbstractCarrierInterface
*
* @deprecated
* @see CarrierInterface
*/
interface AbstractCarrierInterface
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must extend CarrierInterface here.

@@ -5,7 +5,7 @@
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, revert all these changes because they cause backward incompatible issue.

@@ -8,7 +8,7 @@

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, revert all these changes because they cause backward incompatible issue.

@@ -5,199 +5,12 @@
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave methods isStateProvinceRequired, isCityRequired, debugData in this interface. These methods must be also deprecated.

Copy link
Member Author

@dverkade dverkade Nov 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As described in this comment by @okorshenko the AbstractCarrierInterface should be empty
#11293 (comment)

Copy link
Contributor

@omiroshnichenko omiroshnichenko Nov 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As described in comment that you mentioned "We need to move all the “correct” methods to CarrierInterface", so I please you to leave unused methods in deprecated interface. When deprecated interface will be deleted, unused methods also will be removed.

@omiroshnichenko
Copy link
Contributor

@dverkade Will you continue to work on this PR?

@dverkade
Copy link
Member Author

dverkade commented Dec 2, 2017

Thanks for chaning this, I was not able to make time last week. I see this is now approved and will be processed further.

@omiroshnichenko
Copy link
Contributor

Hi @dverkade, after internal discussion, we came to that fact that we need to introduce new interface that will have correct methods, for this we must make some HLD.So I will close this PR as current solution will be backward incompatible and will not bring any benefit. Thank you for your contribution.

@dverkade dverkade deleted the Fix_#1779_CarrierInterface_additional_requirement branch June 22, 2018 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Progress: reject Release Line: 2.3 Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants