Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mapping and unmapping repos & improve zpm error output #663

Merged
merged 15 commits into from
Dec 18, 2024

Conversation

isc-shuliu
Copy link
Collaborator

@isc-shuliu isc-shuliu commented Dec 17, 2024

Added

  • Added support for mapping of repository settings along with, or in addition to, IPM package and routines
  • Added functionlity to always unmap repository settings when IPM package and routines are unmapped
  • Added support for unmapping of repository settings alone
  • Added support for enable -community which resets repository settings to default and map IPM along with repo settings globally

Changed

  • Improved error output and instructions in the language extension when "zpm" is run from a namespace without IPM

@isc-shuliu isc-shuliu changed the title V0.9.x feat enable repos Allow mapping repos with enable command Dec 17, 2024
@isc-shuliu isc-shuliu marked this pull request as ready for review December 17, 2024 16:41
@isc-shuliu isc-shuliu requested review from isc-kiyer, isc-tleavitt, isc-eneil, isc-jili and isc-jlechtne and removed request for isc-kiyer December 17, 2024 16:41
@isc-shuliu isc-shuliu changed the title Allow mapping repos with enable command Allow mapping and unmapping repos & improve zpm error output Dec 17, 2024
Copy link
Contributor

@isc-tleavitt isc-tleavitt left a comment

Choose a reason for hiding this comment

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

Thanks for the super quick turnaround! Since you got this before I had time to update README.md, would you mind taking that on too?

CHANGELOG.md Outdated Show resolved Hide resolved
@@ -2803,9 +2811,12 @@ ZPM(pArgs...)
Set found = 0
While rs.%Next() {
Set $Namespace = $Zstrip(rs.%Get("Nsp"), "<>WC")
If $System.CLS.IsMthd("%IPM.Main", "Shell") {
// Some I4H containers come with %IPM.Main but the "version" command doesn't work ?!
Copy link
Contributor

Choose a reason for hiding this comment

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

This would probably be those with IPM mapped from HSLIB/HSCUSTOM, on older versions?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, for example, containers.intersystems.com/intersystems/irishealth-community:2024.1 has this problem in HSLIB.

Copy link
Contributor

@isc-tleavitt isc-tleavitt left a comment

Choose a reason for hiding this comment

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

I added a few more minor readme tweaks; looks good to me at this point. Thanks for the quick turnaround @isc-shuliu!

Copy link
Collaborator

@isc-eneil isc-eneil left a comment

Choose a reason for hiding this comment

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

@isc-shuliu I noted a couple of typos but the code looks good to me!

README.md Outdated Show resolved Hide resolved
src/cls/IPM/Main.cls Outdated Show resolved Hide resolved
@isc-tleavitt isc-tleavitt merged commit 1dceb54 into v0.9.x Dec 18, 2024
12 checks passed
@isc-tleavitt isc-tleavitt deleted the v0.9.x-feat-enable-repos branch December 18, 2024 17:02
@isc-tleavitt isc-tleavitt linked an issue Dec 19, 2024 that may be closed by this pull request
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.

Build process is now broken
3 participants