Implement `AutoUninstallDependency` Configuration for Recursive Uninstalls

Open
#1,098 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
cli

Research direction

Start at the uninstall command and its existing -r handling, then trace how system-wide configuration is loaded. Define the default-disabled and enabled behaviors, including recursive dependency cleanup, and verify that existing non-recursive behavior remains unchanged when the setting is 0.

Written by the indexing model from the issue text.

Description

prio: low

Currently, IPM provides a -r flag for recursive uninstalls. However, this relies entirely on the user remembering to include it every time. If a user forgets the flag, dependency modules remain in the namespace as "orphans." Over time, this results in "orphaned modules".

Proposed Solution

Introduce a new system-wide configuration setting: AutoUninstallDependency (Boolean, defaulting to 0).

  • When 0 (Default): The current behavior is preserved. Modules are only uninstalled recursively if the -r flag is provided.
  • When 1 (Enabled): The uninstall command becomes "smart." It will automatically attempt to clean up dependencies of the target module without requiring the -r flag.
Dominant language
ObjectScript
Stars
41
Forks
33
Avg merge
23h 20m
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intersystems/ipm

All issues in intersystems/ipm

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.