Extracted from #2171683: Remove all Simpletest overrides and rely on native multi-site functionality instead:

Problem

  1. The database configuration form in the installer still uses 'db_prefix' instead of 'prefix'.

  2. The 'db_prefix' value is passed forward and converted into global $databases as-is.

  3. Only a dirty hack/@todo for PIFR happens to catch the wrong 'db_prefix' key and move it into the correct 'prefix' key.

Solution

  1. Fix the form definition to use 'prefix'.
  2. Remove the obsolete hack/@todo for PIFR.
  3. Fix WebTestBase::installParameters() to actually pass the correct form input values for the database configuration form step.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, drupal8.db-prefix.0.patch, failed testing.

sun’s picture

Status: Needs work » Needs review
FileSize
3.79 KB

Those test failures are actually caused by the removed futzing with global $databases in TestBase::changeDatabasePrefix(), which is still required, because the installer does not get a real settings.php.

(Yet - that's one of the major points of #2171683: Remove all Simpletest overrides and rely on native multi-site functionality instead)

sun’s picture

FileSize
3.21 KB

Great! Now also removing the @todo that was just commented out previously.

sun’s picture

Issue tags: +API clean-up
FileSize
2.64 KB

Removed the additional change to the form description from this patch, since that is irrelevant here.

This patch looks ready to me. I need it for #2171683: Remove all Simpletest overrides and rely on native multi-site functionality instead

sun’s picture

Issue summary: View changes

Clarified issue summary. Reviews, anyone? :)

sun’s picture

4: drupal8.db-prefix.4.patch queued for re-testing.

tstoeckler’s picture

Yup, makes sense.

Thanks for the explicit issue summary, things like that help a lot!

tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Wanted to do this, actually :-)

alexpott’s picture

Title: Database configuration form in installer still uses 'db_prefix' instead of 'prefix' » Change notice: Database configuration form in installer still uses 'db_prefix' instead of 'prefix'
Priority: Normal » Critical
Status: Reviewed & tested by the community » Active
Issue tags: +Needs change record

Committed c84a43d and pushed to 8.x. Thanks!

We need a change notice since the database configuration form has changed.

sun’s picture

Title: Change notice: Database configuration form in installer still uses 'db_prefix' instead of 'prefix' » Database configuration form in installer still uses 'db_prefix' instead of 'prefix'
Status: Active » Fixed
Issue tags: -Needs change record
jibran’s picture

Priority: Critical » Normal

Thank you for the change notice and the patch @sun.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.