Deprecate secret "PermitDowngrade" flag

Open
#867 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Domain
cli, tooling

Research direction

Search the IPM codebase for every instance of "PermitDowngrade" and inspect the related install and uninstall behavior first. Remove or deprecate the flag, verify that existing behavior is unchanged, and search the GitHub Wiki and Stack Overflow for documentation that should be removed or marked deprecated.

Written by the indexing model from the issue text.

Description

enhancement good first issue prio: medium usability

The secret "PermitDowngrade" flag should be deprecated (removed from IPM codebase).
This is because by allowing users to downgrade without making them uninstall the module first leads to more complications than good.
For example, if a module was at 1.1.0 and the install command is used to downgrade to 1.0.0, classes that were added in 1.1.0 will not be deleted, and will linger after the "downgrade".
Moving forward, if an user wants to downgrade a module, they must first run the uninstall command, and then run the install command with their desired version.

Work involved:

  • Search for all instances of "PermitDowngrade" in the IPM code base and remove them.
  • Test to make sure existing behavior has not changed.
  • If documentation exists for the PermitDowngrade flag, remove it from all sources (Github Wiki, Stack Overflow, etc.) or at least update to say deprecated.
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.