Problem/Motivation

I had to rebase one of my pet issues, #2865710: Dependencies from only one instance of a widget are used in display modes, and discovered that all of the update tests started failing. The error message said:

PluginNotFoundException: The "contact_message" entity type does not exist.

The problem is that core/modules/system/tests/fixtures/update/uninstall-contact.php doesn't delete the entity_form_display and entity_view_display config entities for the contact_message entity type after installing the fixture. Any attempt to use the ConfigEntityUpdater to update form or view displays will crash because the entity type no longer exists.

Steps to reproduce

See this pipeline: https://git.drupalcode.org/project/drupal/-/pipelines/758673.

Proposed resolution

Update uninstall-contact.php to delete the display entities.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3577684

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dcam created an issue. See original summary.

dcam changed the visibility of the branch 3577684-uninstall-display-entities to hidden.

dcam changed the visibility of the branch 3577684-uninstall-display-entities to active.

dcam changed the visibility of the branch 3577684-uninstall-contact-display-entities to hidden.

berdir’s picture

Status: Active » Reviewed & tested by the community

Makes sense, I assume the php build job errors are random.

longwave’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to main, thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • longwave committed ea25dee1 on main
    test: #3577684 uninstall-contact.php doesn't delete entity displays
    
    By...

Status: Fixed » Closed (fixed)

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