Skip to content

Add helpful information for why module cannot be uninstalled#307

Open
artfulrobot wants to merge 1 commit intoprocesswire:devfrom
artfulrobot:module-uninstall-deps-info
Open

Add helpful information for why module cannot be uninstalled#307
artfulrobot wants to merge 1 commit intoprocesswire:devfrom
artfulrobot:module-uninstall-deps-info

Conversation

@artfulrobot
Copy link
Copy Markdown

When trying to uninstall a module you get a message if you can't because other modules depend on it, or because a field uses it. But you're not told which one. As this info is not listed anywhere else, it's quite hard to find out why.

This PR simply adds to the explanation text:

  • the list of modules for which the module-to-be-uninstalled is a dependency.
  • the list of the (first) field that uses the module.

@artfulrobot artfulrobot force-pushed the module-uninstall-deps-info branch 2 times, most recently from ffdf9f2 to 9a45104 Compare November 12, 2024 10:11
Copy link
Copy Markdown
Contributor

@poljpocket poljpocket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your sprintf changes don't really work correctly right now.

@poljpocket
Copy link
Copy Markdown
Contributor

Also, you should always request a PR against the dev branch of the repo. You can find more 'rules' like this here: https://github.com/processwire/processwire/blob/master/CONTRIBUTING.md

@artfulrobot artfulrobot force-pushed the module-uninstall-deps-info branch from 9a45104 to dff07b9 Compare July 1, 2025 09:08
@artfulrobot artfulrobot changed the base branch from master to dev July 1, 2025 09:08
@artfulrobot artfulrobot force-pushed the module-uninstall-deps-info branch from dff07b9 to feaf2c4 Compare July 1, 2025 09:12
@artfulrobot artfulrobot marked this pull request as draft July 1, 2025 09:12
@artfulrobot artfulrobot force-pushed the module-uninstall-deps-info branch 2 times, most recently from 5883251 to 210f9c3 Compare July 1, 2025 09:16
@artfulrobot artfulrobot marked this pull request as ready for review July 1, 2025 09:17
@artfulrobot
Copy link
Copy Markdown
Author

@poljpocket Took an embarrassing number of tries to get the formatting correct, but I think I got there in the end! 😆

  • rebased on dev.
  • translate the sprintf format string, not the formatted string.

poljpocket

This comment was marked as outdated.

@artfulrobot artfulrobot force-pushed the module-uninstall-deps-info branch from 210f9c3 to 21e8e32 Compare July 1, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants