Skip to content
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

Dependencies of Magento_Core #487

Closed
CodeMonkey90 opened this issue Feb 2, 2014 · 12 comments
Closed

Dependencies of Magento_Core #487

CodeMonkey90 opened this issue Feb 2, 2014 · 12 comments
Assignees

Comments

@CodeMonkey90
Copy link

Magento_Core still depends on Magento_GiftMessage, Magento_GoogleAnalytics and Magento_GoogleCheckout, all of which are modules that some people might want to disable. Will those dependencies be removed before the final release?

@verklov
Copy link
Contributor

verklov commented Feb 20, 2014

@Landkeks , thank you for asking this question!
I assigned this issue to @eleonova , who should be able to respond on your inquiry better.

@elenleonova
Copy link

@Landkeks, we don't have those plans yet, however, I would like to hear feedback from the community if those modules are very critical ones to be decoupled.

@CodeMonkey90
Copy link
Author

@eleonova: All I can personally say is that none of our customers need or want the functionality of the GiftMessage module and that none of them currently use Google Checkout. GoogleAnalytics is the only module we're actually using.

@ivanweiler
Copy link

I agree with the suggestion. Google checkout is rarely used and discontinued by Google if I'm not mistaken, gift message is rarely used, GoogleAnalytics are needed but Core shouldn't depend on them. I would also add Magento_ProductAlert to the list.

@JoseHawkins
Copy link

I cannot find dependency on GiftMessage and GoogleAnalytics in code of Core module (except string literals that are not real dependency). Looks like dependencies are redundant. May be problems are in dependencies test.

@mzeis
Copy link
Contributor

mzeis commented Feb 23, 2014

@eleonova We have the same situation as @Landkeks: we never used GiftMessage or GoogleCheckout but used GoogleAnalytics.
I'd vote for removing the dependencies as there is no logical reason for this and given all the current refactoring the change may not be that big (see also message by @JoseHawkins, didn't check myself).

@davidalger
Copy link
Member

@eleonova The Magento_Core module should have no dependencies other than to the Magento Framework and it's underpinning libraries. Having these dependencies on small pieces of functionality flies directly in the face of the stated goal to unravel the dependency mess which Magento 1.x has currently. This module is essentially a part of the Magento Framework, and we should be able to strip any functional module or functional group of modules away without breaking the Magento_Core or the Magento Framework.

@rtull
Copy link
Contributor

rtull commented Feb 24, 2014

@eleonova Google Checkout is discontinued as of last November. It should be dropped entirely. http://googlecommerce.blogspot.com/2013/05/an-update-to-google-checkout-for.html

@rgranadino
Copy link

My vote goes for decoupling, @davidalger put it pretty well.

@elenleonova
Copy link

To all, we know that GoogleCheckout is discontinued so we are going to delete it from M2. Other parts are still under planning process. Thanks for active participation in the discussion.

@saleemshafi
Copy link

hello, sorry to jump in this late, but some of the work that Elena is referring to as being "under planning" includes further refactoring of the Magento/Core module by moving more of the code there to the Magento Framework.. we've done some of that already, and have more planned.. not sure if we'll get all the way to what @davidalger refers to, but we're moving in that direction..

as for the specific dependencies that started this thread, all three of those dependencies are caused by the references to those modules in \Magento\Core\Model\Resource\Setup\Migration.php in the getCompositeModules() method. That qualifies them as true dependencies, but not "hard" dependencies meaning that the logic in Magento_Core will not break if those modules aren't available.

We should be able to make this clearer by explicitly marking these dependencies in the Magento_Core/module.xml file as type="soft"

@maksek maksek added the PROD label Jan 8, 2015
@vpelipenko
Copy link
Contributor

All described dependencies are removed. Magento_Core module also will be eliminated - this work is still in progress.

magento-team pushed a commit that referenced this issue Jul 23, 2015
[Vanilla] bugs fixes + stories
magento-team pushed a commit that referenced this issue Mar 28, 2016
okorshenko pushed a commit that referenced this issue Dec 14, 2016
Fixed issue:
 - MAGETWO-59394: [Backport] Wrong algorithm for calculation batch size on category indexing for 2.0 branch
magento-engcom-team added a commit that referenced this issue Mar 26, 2019
…is zero or less then zero, one was unexpectedly added #487

 - Merge Pull Request magento/graphql-ce#487 from XxXgeoXxX/graphql-ce:2.3-develop#357
 - Merged commits:
   1. 96ca3d4
magento-engcom-team pushed a commit that referenced this issue Mar 26, 2019
…is zero or less then zero, one was unexpectedly added #487
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests