While working on #2188613: Rename EntityStorageController to EntityStorage, I noticed that a lot of places in config refer to the config storage as "storage controller". It's only comments, no actual code, but it should still be cleaned up, this seems confusing.

Just replace "storage controller" with "storage", but wait for the issue above to land.

Comments

berdir’s picture

Title: Step refering to config storage as storage controller » Stop refering to config storage as storage controller

Ups.

mandar.harkare’s picture

Status: Active » Needs review
StatusFileSize
new12.15 KB

Not sure I made the changes in the right places or not.

Cheers.

Status: Needs review » Needs work

The last submitted patch, 2: drupal-2227187-replace-storage-controller-2.patch, failed testing.

jkingsnorth’s picture

Not sure the new comments make a whole lot of sense, might need more than just a find-replace. ie:

'A configuration storage to be cached.'
'Constructs a new FileStorage.'

Some of the find-and-replaced instances do read OK though. But this needs work.

ozin’s picture

Status: Needs work » Needs review
StatusFileSize
new10.7 KB

This is a re-roll.

ozin’s picture

StatusFileSize
new1.47 KB

Interdiff for #5 comment.

ozin’s picture

StatusFileSize
new1.58 KB

Sorry, here is correct interdiff for #5.

xano’s picture

Issue tags: +LembergSprint

Adding tag.

ribel’s picture

Status: Needs review » Reviewed & tested by the community

Good!

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
 *   callers like system_list() to force-disable a possible configuration
 *   storage controller cache or some other way to circumvent it/take it over.

module.inc

      // Renaming a config object needs to cater for:
      // - Storage controller needs to access the original object.

ConfigEntityStorage.php

Defines the file storage controller for metadata files.

SchemaStorage.php

Drupal\config\Tests\Storage\DatabaseStorageTest has 3 uses of controller
Drupal\config\Tests\Storage\FileStorageTest has 3 uses of controller

 * Storage controller for migration entities.

MigrationStorage.php (there are 2 of these)

   * The config storage controller.

ConfigEntityStorageTest.php

berdir’s picture

The module.inc @todo is being removed somewhere, although I'm not sure where exactly. The theme critical probably?

Looks like 3 uses are related to entities, but yeah, let's clean that up as well.

cs_shadow’s picture

Status: Needs work » Needs review
StatusFileSize
new16.06 KB

Changing patch in #5 according to changes mentioned in #10.

Status: Needs review » Needs work

The last submitted patch, 12: drupal-2227187-12.patch, failed testing.

Jalandhar’s picture

Status: Needs work » Needs review
StatusFileSize
new15.06 KB

Updating patch with reroll. Please review it.

filijonka’s picture

Status: Needs review » Reviewed & tested by the community

this looks good to me, the suggestions in #10 is included/done.

alexpott’s picture

Committed 9a878fb and pushed to 8.x. Thanks!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

  • Commit 9a878fb on 8.x by alexpott:
    Issue #2227187 by Mykhailo Gurei, Jalandhar, cs_shadow, mandar.harkare...

Status: Fixed » Closed (fixed)

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