Expected Behavior with ECP Namespaces ?

Aperta
#1,310 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
sql
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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 ?

Lingua principale
ObjectScript
Stelle
41
Fork
33
Merge medio
23h 20m
PR unite (30g)
29

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di intersystems/ipm

Tutte le issue di intersystems/ipm

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.