Skip to content
Snippets Groups Projects

Issue #3267577: Clean up in hook_uninstall

1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
23 $this->container->get('config.factory'),
24 $this->container->get('package_manager.path_locator'),
25 $this->container->get('package_manager.beginner'),
26 $this->container->get('package_manager.stager'),
27 $this->container->get('package_manager.committer'),
28 $this->container->get('file_system'),
29 $this->container->get('event_dispatcher'),
30 $this->container->get('tempstore.shared'),
31 $this->container->get('datetime.time')
32 );
33 if ($stage->isAvailable() || !$stage->isApplying()) {
34 return [];
35 }
36 if ($stage->isApplying()) {
37 $reasons[] = $this->t('The @module module cannot be uninstalled because staged changes are being applied to the active code base.', [
38 '@module' => $module,
  • Comment on lines +37 to +38

    I think we should clarify that current module being uninstalled is not necessarily the module that is doing updating. For instance if I saw the message:

    The Webform module cannot be uninstalled because staged changes are being applied to the active code base.

    I would probably assume "staged changes are being applied" had something to do with webform. This could be more confusing if module name contained update.

    The Bulk Author Update module cannot be uninstalled because staged changes are being applied to the active code base.

    Maybe something like:

    The Webform module cannot be uninstalled because module uninstalls are not disabled when staged changes are being applied to the active code base by the Package Manager module.

  • Adam G-H changed this line in version 9 of the diff

    changed this line in version 9 of the diff

  • OK, changed the phrasing to sound less module-specific.

  • Please register or sign in to reply
  • Ted Bowman
  • Adam G-H added 1 commit

    added 1 commit

    Compare with previous version

  • Adam G-H added 3 commits

    added 3 commits

    Compare with previous version

  • Adam G-H added 1 commit

    added 1 commit

    Compare with previous version

  • merged

  • Please register or sign in to reply
    Loading