Problem/Motivation
Refactor install_verify_database_settings(), install_verify_database_ready(), install_database_errors() into an Install helper class. Adding new methods piecemeal is our we're ending up with a disjointed API where we want the same method to do different things. We'll probably be able to make SiteSettingsForm use this too for added consistency and less code duplication.
Also possibly we want to look at how we validate database settings in migrate_drupal too.
Another aim should limit the number of times install_database_errors()
is called during an installation via the browser. Atm on a standard install on mysql we create the drupal_install_test table 13 times on my computer! Once for each request to the installer once db settings have been entered.
This came up in #3120731: Incorrect "Drupal already installed" if any database settings are wrong or unsatisfactory
Proposed resolution
TBD
Remaining tasks
- Design the API
- Decide whether install_verify_database_ready should be a install task - see #3120731-74: Incorrect "Drupal already installed" if any database settings are wrong or unsatisfactory
- Look for use cases in core
Comments
Comment #2
daffie CreditAttribution: daffie commentedComment #3
xjmSee also #1530756: [meta] Use a proper kernel for the installer.
Comment #4
andypostLooks like duplicate of #2234315: Dependency graph resolved plugins for installer tasks
At least summary could be used here)
PS related also affected
Comment #5
alexpott