Problem/Motivation

Claims success while failing silently.

Steps to reproduce

Run via drush without enabling first.

 ⚙  ~/P/c/atlas   develop/2020   lando drush @atlas.dev updbst                                              02:22:10 PM
 Module                  Update ID  Description
 feeds_feed entity type             The feeds_feed.field_state field needs to be uninstalled.

 ⚙  ~/P/c/atlas   develop/2020   lando drush @atlas.dev entup                                               02:25:53 PM
The following updates are pending:

feeds_feed entity type :
  The feeds_feed.field_state field needs to be uninstalled.
Do you wish to run all pending updates? (y/n): y
Cache rebuild complete.                                                                                                                                                                                                                                     [ok]
Finished performing updates.                                                                                                                                                                                                                                [ok]
 ⚙  ~/P/c/atlas   develop/2020   lando drush @atlas.dev updbst                                              02:26:28 PM
 Module                  Update ID  Description
 feeds_feed entity type             The feeds_feed.field_state field needs to be uninstalled.

 ⚙  ~/P/c/atlas   develop/2020   lando drush @atlas.dev en -y devel_entity_updates                          02:29:35 PM
The following extensions will be enabled: devel_entity_updates, devel
Do you really want to continue? (y/n): y
devel was enabled successfully.                                                                                                                                                                                                                             [ok]
devel defines the following permissions: access devel information, execute php code, switch users
devel_entity_updates was enabled successfully.                                                                                                                                                                                                              [ok]
 ⚙  ~/P/c/atlas   develop/2020   lando drush @atlas.dev entup -y                                            02:29:45 PM
The following updates are pending:

feeds_feed entity type :
  The feeds_feed.field_state field needs to be uninstalled.
Do you wish to run all pending updates? (y/n): y
Cache rebuild complete.                                                                                                                                                                                                                                     [ok]
Finished performing updates.                                                                                                                                                                                                                                [ok]
 ⚙  ~/P/c/atlas   develop/2020   lando drush @atlas.dev updbst                                              02:31:17 PM
No database updates required                                                                                                                                                                                                                                [ok]

Proposed resolution

Throw an error stating the module needs to be enabled (yes, this should be obvious, but even this seasoned dev just did that by accident :D).

Comments

seanr created an issue.

plach’s picture

The proposed solution makes sense to me, patch/MR welcome :)