magento / community-features

Magento Features Development is an Initiative to Allows Community Memebers Join to Development of Magento Features
46 stars 18 forks source link

Additional repository kills Web Setup Wizard Component Manager performance #42

Open magento-engcom-team opened 6 years ago

magento-engcom-team commented 6 years ago

Steps to reproduce

  1. Install Magento 2.1.0-rc1
  2. Add a custom repository to your main composer.json
  3. Navigate from the admin to the Web Setup Wizard
  4. Open the Component Manager

    Expected result

  5. Component Manager is functional

    Actual result

  6. Component Manager never finishes loading the grid in a timely manner (tested with 10 minute timeout)

    Cause

This code here https://github.com/magento/magento2/blob/2.1.0-rc2/setup/src/Magento/Setup/Model/PackagesData.php#L361 causes an avalanche of individual composer commands for every single package including Magento ones, if more than 1 repository is present

Original Report: https://github.com/magento/magento2/issues/4986 by @fooman