Problem/Motivation

EntityDatabaseStorage is the old entity storage and was used for a long time for menu links. Those are converted to content entities now.

There is only one test usage left.

The class could mislead developers to accidently use (for example by extending from it in custom storages), but that will very likely not work, as it doesn't support content entities.

Proposed resolution

Remove it.

Remaining tasks

User interface changes

API changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

Status: Active » Needs review
FileSize
11.92 KB

Removed EntityApiInfoTest, that is testing that the entity info cache is cleared and available in hook_modules_installed(), I think we have lots of test coverage now for this and also use it a lot in hooks like that.

Converted the no-bundle test entity to a content entity and extend from EntityTest.

tstoeckler’s picture

Status: Needs review » Needs work

Awesome patch!

I agree that the test is pretty much pointless but I think there must be some code that implements hook_entity_type_(build|info_alter)() that sets the entity type label. That should be removed as well.

Berdir’s picture

True, more stuff to remove :)

tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Yes, let's do this! This is really sooo long overdue...

Berdir’s picture

I don't think we need a new change record for this.

I will clean up https://www.drupal.org/node/1400186 and https://www.drupal.org/node/2200867 after it has been committed, especially the first one is very outdated anyway.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 055aac1 and pushed to 8.0.x. Thanks!

  • alexpott committed 055aac1 on 8.0.x
    Issue #2332577 by Berdir: Remove EntityDatabaseStorage.
    
Berdir’s picture

Updated the change records, although [#1400186] is a pretty hopeless biest, just too old, with too much information by now (list of storage classes and so on).

Status: Fixed » Closed (fixed)

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