Skip to content

Please add your expectations for @deprecated annotations #10133

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
flancer64 opened this issue Jul 4, 2017 · 2 comments
Closed

Please add your expectations for @deprecated annotations #10133

flancer64 opened this issue Jul 4, 2017 · 2 comments
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line improvement Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed

Comments

@flancer64
Copy link
Contributor

Hello,

I try to create own code based on the \Magento\Checkout\Controller\Cart\Add class. I see that this class uses \Magento\Checkout\Model\Cart class that has @deprecated annotation. I could use other class in my code but I don't know your expectations - which other class does Magento team use instead of deprecated \Magento\Checkout\Model\Cart?

It would be more pleasantly if @deprecated annotations will have comments that point to expected replacements. Something like:

/**
 * Shopping cart model
 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
 * @deprecated use \Magento\Quote\Model\Quote
 */
class Cart extends DataObject implements CartInterface {...}

I know, there are a lot of deprecated classes/methods in the code (> 500) and Magento team cannot comment all of them at once. However, the source code is a primary documentation for developers and all developers read the sources. Your plans (expectations) will be more understandable for us if you will write it just a little wider in the sources.

Thanks.

@flancer64 flancer64 changed the title Please add your expectation for @deprecated annotation Please add your expectations for @deprecated annotations Jul 4, 2017
@magento-engcom-team magento-engcom-team added the Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed label Sep 11, 2017
@magento-engcom-team
Copy link
Contributor

Hi @flancer64 thank you for pointing on this. We already have this as a part of our commitment in Backward compatible development We still have some tech debt, but we are working to minimize it.
Feel free to submit pull request to address the most painful issues for you. Thank you

@magento-engcom-team
Copy link
Contributor

Hi @flancer64. Thank you for your report.
The issue has been fixed in magento-engcom/magento2ce#1359 by @magento-engcom-team in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.0 release.

@magento-engcom-team magento-engcom-team added the Fixed in 2.3.x The issue has been fixed in 2.3 release line label Feb 8, 2018
@magento-engcom-team magento-engcom-team added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line improvement Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed
Projects
None yet
Development

No branches or pull requests

2 participants