Expected Behavior with ECP Namespaces ?

Abierto
#1,310 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
sql
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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 ?

Lenguaje dominante
ObjectScript
Estrellas
41
Forks
33
Merge medio
23 h 20 min
PR fusionados (30 d)
29

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de intersystems/ipm

Todos los issues de intersystems/ipm

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.