Expected Behavior with ECP Namespaces ?

オープン
#1,310 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
sql
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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 ?

主要言語
ObjectScript
スター
41
フォーク
33
平均マージ
23時間 20分
マージ済み PR(30日)
29

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

intersystems/ipm のほかの issue

intersystems/ipm の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。