After composer error on install, card incorrectly reflects "Installed" status

Created on 13 January 2025, 3 months ago

Problem/Motivation

When installing a module from Project Browser, Composer may error and not be able to apply the module back to the original codebase. When this happens, the module is not installed. However, the UI reflects that the module is installed.

Steps to reproduce

I was doing this in Drupal CMS. I built the site with:

mkdir dcms
cd dcms
ddev config --project-type=drupal
ddev composer create drupal/cms:1.x-dev
ddev config --auto
ddev restart
ddev launch (not necessary)

Trying to install the Feeds module current in Drupal CMS has an error due to an ExperienceBuilderDemo.php symlink, so that caused the module to not reapply. However, when closing the error modal, the card reflected "Installed" state. Refreshing the page and/or re-searching for feeds to cause a re-draw made it show the correct state again.

Proposed resolution

We must have "order of operations" issue, where the Svelte is updated before getting a success from PM. We may need to move that check.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States chrisfromredfin Portland, Maine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024