Expected Behavior with ECP Namespaces ?

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
sql
Domain
backend

Research direction

Start by locating the code behind enable -map -globally and the check that prints “IPM is not enabled in this namespace.” Trace how namespace database mappings are discovered, then compare that behavior with the ECP namespace configuration in the issue. Done means documenting or correcting whether this namespace should be detected and confirming that zpm behaves as expected there.

Written by the indexing model from the issue text.

Description

Hello,

Didnt know what to call this so I guess its something I have hit recently and wanted to know if it was expected.

I have a namespace where the globals "data" are on a remote server over ecp and the routines "code" is still local.


%SYS>ZW ^CONFIG("Namespaces")
^CONFIG("Namespaces","%SYS")="IRISSYS"
^CONFIG("Namespaces","HSCUSTOM")="HSCUSTOM"
^CONFIG("Namespaces","HSLIB")="HSLIB"
^CONFIG("Namespaces","HSSYS")="HSSYS"
^CONFIG("Namespaces","HSSYSLOCALTEMP")="HSSYSLOCALTEMP"
^CONFIG("Namespaces","STARTMGR")="STARTMGR"
^CONFIG("Namespaces","ECPNAMESPACE")="ECP-REMOTE-DB,LOCAL-DB"
^CONFIG("Namespaces","USER")="USER"

With the database mounted and the namespace accessible, if I run an "enable -map -globally" the namespace does not seem to be in view with IPM:

zpm:USER>enable -map -globally

Skipping IPM mapping of %SYS - IPM already installed.
Mapping %IPM package in USER equivalently to HSCUSTOM
Mapping %IPM.* routines in USER equivalently to HSCUSTOM
Skipping IPM mapping of HSLIB - IPM already installed.
Mapping %IPM package in USER equivalently to HSSYS
Mapping %IPM.* routines in USER equivalently to HSSYS
Mapping %IPM package in USER equivalently to HSSYSLOCALTEMP
Mapping %IPM.* routines in USER equivalently to HSSYSLOCALTEMP
Mapping %IPM package in USER equivalently to STARTMGR
Mapping %IPM.* routines in USER equivalently to STARTMGR
Mapping %IPM package in USER equivalently to USER
Mapping %IPM.* routines in USER equivalently to USER
Done.

%SYS>           zpm 0.10.2
HSLIB>          zpm 0.10.5-SNAPSHOT
HSCUSTOM>       zpm 0.10.2
                Installed In: %SYS 
HSSYS>          zpm 0.10.2
                Installed In: %SYS 
HSSYSLOCALTEMP> zpm 0.10.2
                Installed In: %SYS 
STARTMGR>       zpm 0.10.2
                Installed In: %SYS 
USER>           zpm 0.10.2
                Installed In: %SYS

I have tried things like using the oneliner to install IPM, then executing a cpf merge to mount the remote database and modify the namespace after IPM install, which seems to "work", but when I try to install a package I get this:

ECPNAMESPACE>zpm

IPM is not enabled in this namespace.
Change namepace to one of the following to run the "zpm" command
%SYS>           zpm 0.10.2
HSLIB>          zpm 0.10.5-SNAPSHOT
HSCUSTOM>       zpm 0.10.2
                Installed In: %SYS 
HSSYS>          zpm 0.10.2
                Installed In: %SYS 
HSSYSLOCALTEMP> zpm 0.10.2
                Installed In: %SYS 
STARTMGR>       zpm 0.10.2
                Installed In: %SYS 
USER>           zpm 0.10.2
                Installed In: %SYS 
If you want to map IPM globally, switch to one of the namespaces above and run: zpm "enable -map -globally".
If you want to reset repository and map IPM globally along with repository settings, switch to one of the namespaces above and run: zpm "enable -community".

Expected? it this because ipm has globals dependencies and is intentionally gated ?

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 Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.