- Issue created by @phenaproxima
This is spun off from π Skip Package Manager validation of using the local recipes source plugin Active .
Project Browser is way too blunt about doing Package Manager validation. It does it even if it's not necessary, and won't be necessary in a particular context. We should be smarter about that, which will be better for UX, and also more performant, since Package Manager's validation is very slow.
Move the install readiness checking to \Drupal\project_browser\Controller\InstallerController::begin()
. If this method is called at all, it means we're about to create a Package Manager sandbox, and that means we need to validate the state of the system.
This should happen just before we call $this->installer->create();
, before the try
block. If validation fails, then we need to return an error response and gracefully display it to the user. Tests will certainly need to be adjusted; some tests that were previously functional tests will probably have to be turned into functional JS tests.
Active
2.0
Code