Since we now delegate to the config entity storage controller there no longer is any need to create manifest entries in config_install_default_config().

#9 4-9-interdiff.txt459 bytesalexpott
#9 1889752.9.drupal8.manifest.patch5.63 KBalexpott
PASSED: [[SimpleTest]]: [MySQL] 49,370 pass(es). View
#4 3-4-interdiff.txt1.07 KBalexpott
#4 1889752.4.drupal8.manifest.patch5.02 KBalexpott
FAILED: [[SimpleTest]]: [MySQL] 50,907 pass(es), 1 fail(s), and 0 exception(s). View
#3 1-3-interdiff.txt3.98 KBalexpott
#3 1889752.3.drupal8.manifest.patch4.8 KBalexpott
PASSED: [[SimpleTest]]: [MySQL] 51,014 pass(es). View
#1 1889752.drupal8.manifest.patch2.61 KBalexpott
PASSED: [[SimpleTest]]: [MySQL] 50,752 pass(es). View


alexpott’s picture

Status: Active » Needs review
2.61 KB
PASSED: [[SimpleTest]]: [MySQL] 50,752 pass(es). View

Here's a patch that adds a test to ensure manifests are written for config entities and removes the unnecessary code - which was made unnecessary due to #1806178: Remove code duplication for hook_config_import_*() implementations of config entities.

heyrocker’s picture

I think we always want to have a manifest file even when it is empty, and right now there will be no manifest if a module is installed with no default config entities out of the box. So I'd like to see an empty manifest file created in config_install_default_config() for consistency's sake. Otherwise this is a great changed, that original code was pretty ugly, I'm glad to see it go.

alexpott’s picture

4.8 KB
PASSED: [[SimpleTest]]: [MySQL] 51,014 pass(es). View
3.98 KB

New patch that ensures an empty manifest is created for each config entity whether or not a default config entity is provided. Tests added for this too.

alexpott’s picture

5.02 KB
FAILED: [[SimpleTest]]: [MySQL] 50,907 pass(es), 1 fail(s), and 0 exception(s). View
1.07 KB

Actually we want to create empty manifest files even if the module has no config directory!

Status: Needs review » Needs work
Issue tags: -Configuration system, -Configurables

The last submitted patch, 1889752.4.drupal8.manifest.patch, failed testing.

alexpott’s picture

Status: Needs work » Needs review
Issue tags: +Configuration system, +Configurables

#4: 1889752.4.drupal8.manifest.patch queued for re-testing.

alexpott’s picture

Got a fatal php error in testRegression_310447() - nought to do with this change - so requested retest.

Status: Needs review » Needs work

The last submitted patch, 1889752.4.drupal8.manifest.patch, failed testing.

alexpott’s picture

Status: Needs work » Needs review
5.63 KB
PASSED: [[SimpleTest]]: [MySQL] 49,370 pass(es). View
459 bytes

oh wow! the fatal is caused by this patch ...

exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal8alt.simpletest694268node_type' doesn't exist' in /Users/alex/dev/sites/
Stack trace:
#0 /Users/alex/dev/sites/ PDOStatement->execute(Array)
#1 /Users/alex/dev/sites/ Drupal\Core\Database\Statement->execute(Array, Array)
#2 /Users/alex/dev/sites/ Drupal\Core\Database\Connection->query('SELECT nt.*?FRO...', Array, Array)
#3 /Users/alex/dev/sites/ Drupal\Core\Database\Query\Select->execute()
#4 /Users/alex/dev/sites/ _node_types_build()
#5 /Users/alex/dev/sites/ node_type_get_names()
#6 /Users/alex/dev/sites/ node_entity_info(Array)
#7 /Users/alex/dev/sites/ Drupal\Core\Plugin\Discovery\InfoHookDecorator->getDefinitions()
#8 /Users/alex/dev/sites/ Drupal\Component\Plugin\Discovery\ProcessDecorator->getDefinitions()
#9 /Users/alex/dev/sites/ Drupal\Core\Plugin\Discovery\AlterDecorator->getDefinitions()
#10 /Users/alex/dev/sites/ Drupal\Component\Plugin\PluginManagerBase->getDefinitions()
#11 /Users/alex/dev/sites/ Drupal\Core\Entity\EntityManager->getDefinitions()
#12 /Users/alex/dev/sites/ entity_get_info()
#13 /Users/alex/dev/sites/ config_get_module_config_entities('database_test')
#14 /Users/alex/dev/sites/ config_install_default_config('module', 'database_test')
#15 /Users/alex/dev/sites/ module_enable(Array, false)
#16 /Users/alex/dev/sites/ Drupal\simpletest\DrupalUnitTestBase->enableModules(Array)
#17 /Users/alex/dev/sites/ Drupal\system\Tests\Database\DatabaseTestBase->setUp()
#18 /Users/alex/dev/sites/ Drupal\simpletest\TestBase->run()
#19 /Users/alex/dev/sites/ simpletest_script_run_one_test('17', 'Drupal\system\T...')
#20 {main}

So when installing the 'database_test' module simpletest thinks it's got node installed but actually it hasn't... funnily enough this test does not even need node installed.

alexpott’s picture

#9: 1889752.9.drupal8.manifest.patch queued for re-testing.

sun’s picture

Status: Needs review » Reviewed & tested by the community


webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

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