Uninstalling a module sometimes fails with no explanation

Created on 27 February 2025, about 2 months ago

Problem/Motivation

When you install a module with Project Browser, you can see an "Uninstall" link as one of its follow-up tasks. It sets up an redirects you to the uninstall confirmation form, which is a core thing. However, you can't always get to the confirmation form -- if a module cannot be uninstalled because things are depending on it, you can't even click its checkbox at /admin/modules/uninstall. But we're jumping over that validation barrier, and that can cause weird errors if you try to uninstall something that can't be uninstalled.

Proposed resolution

Our uninstall redirection route should validate that the uninstall can actually be done. If it can't, then it needs to bounce the user back to Project Browser, with the reasons why validation failed.

πŸ› Bug report
Status

Active

Version

2.0

Component

User experience

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

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

Merge Requests

Comments & Activities

  • Issue created by @phenaproxima
  • Pipeline finished with Failed
    about 2 months ago
    Total: 486s
    #436163
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts
  • Pipeline finished with Canceled
    about 2 months ago
    Total: 36s
    #436186
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts
  • Pipeline finished with Failed
    about 2 months ago
    Total: 438s
    #436178
  • Pipeline finished with Failed
    about 2 months ago
    Total: 428s
    #436187
  • Pipeline finished with Failed
    about 2 months ago
    Total: 805s
    #436197
  • Pipeline finished with Failed
    about 2 months ago
    Total: 539s
    #436211
  • Pipeline finished with Success
    about 2 months ago
    Total: 472s
    #436218
  • First commit to issue fork.
  • Pipeline finished with Skipped
    about 2 months ago
    #436969
  • πŸ‡ΊπŸ‡ΈUnited States chrisfromredfin Portland, Maine

    confirmed with manual testing that the new additions fix the issues with token when there's a dependency installed. turns out there's a pattern in core where we check dependencies, and then everything else goes to a validator, so we need to replicate that here.

  • Pipeline finished with Failed
    about 2 months ago
    Total: 419s
    #436966
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Pipeline finished with Failed
    6 days ago
    #469115
  • Pipeline finished with Failed
    6 days ago
    Total: 1544s
    #469323
  • Pipeline finished with Canceled
    6 days ago
    Total: 1281s
    #469404
  • Pipeline finished with Failed
    6 days ago
    Total: 1562s
    #469423
  • Pipeline finished with Failed
    5 days ago
    Total: 1942s
    #469947
  • Pipeline finished with Failed
    5 days ago
    Total: 2129s
    #469988
  • Pipeline finished with Canceled
    5 days ago
    Total: 1389s
    #470080
  • Pipeline finished with Success
    5 days ago
    Total: 3424s
    #470504
  • Pipeline finished with Success
    4 days ago
    Total: 1899s
    #470940
  • Pipeline finished with Canceled
    4 days ago
    Total: 559s
    #470988
  • Pipeline finished with Canceled
    4 days ago
    Total: 307s
    #471000
  • Pipeline finished with Failed
    4 days ago
    Total: 1534s
    #471005
  • Pipeline finished with Failed
    4 days ago
    Total: 1841s
    #471039
  • Pipeline finished with Failed
    4 days ago
    Total: 1433s
    #471172
  • Pipeline finished with Failed
    4 days ago
    Total: 1499s
    #471213
  • Pipeline finished with Failed
    4 days ago
    Total: 1517s
    #471295
  • Pipeline finished with Failed
    4 days ago
    #471316
  • Pipeline finished with Failed
    4 days ago
    Total: 1728s
    #471386
  • Pipeline finished with Failed
    4 days ago
    Total: 2828s
    #471455
  • Pipeline finished with Success
    4 days ago
    Total: 1807s
    #471479
  • Pipeline finished with Canceled
    4 days ago
    Total: 400s
    #471495
  • Pipeline finished with Skipped
    4 days ago
    #471520
  • Pipeline finished with Success
    4 days ago
    Total: 1883s
    #471498
Production build 0.71.5 2024