Add support for non-deployed "dev" packages

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
50/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
領域
cli, tooling

調査の方向性

Start with the package and publish command handling and the referenced %IPM.Storage.Module::Module.HaveToDeploy() and %IPM.Lifecycle.Module::%Package() entry points. Trace how the proposed modifier reaches packaging, then verify that non-deployed packages skip %MakeDeployed() while normal packages retain current behavior.

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

説明

enhancement good first issue

Link to the discussion thread

https://github.com/intersystems/ipm/discussions/1252

Describe the problem

We in HealthShare use IPM to package up modules that will be used for both development and production. Per https://github.com/intersystems/ipm/issues/624, this seems to be common among IPM users.

In addition to potentially selectively running code via or selectively applying configuration via , we would like to selectively deploy code depending on the branch from which the source code is packaged. For example, when packaging code from a particular testing and development branch, the package should not include any deployed code so that its source code can be inspected and edited for debugging purposes. However, when packaged from its main branch, the package should be production-ready (aka include deployed code). Currently, any module which is packaged via zpm "package" or zpm "publish" will deploy any resources marked with Deploy="True"

Describe the solution

Introduce a "dev" or "nondeployed" modifier to the package and publish commands that causes %IPM.Storage.Module::Module.HaveToDeploy() to return false so that ..MakeDeployed() is never run within %IPM.Lifecycle.Module::%Package().

Describe alternatives

  1. Developers could set up development + testing environments by installing modules from source code in dev mode, but this is not a recommended flow. It is much cleaner to load a tarball whose contents are based on a particular change to isolate the feature/bug fix being tested.
  2. Developers could maintain a separate module.xml for a module in different branches, with different Deploy attribute values.
主要言語
ObjectScript
スター
41
フォーク
33
平均マージ
23時間 20分
マージ済み PR(30日)
29

環境構築

はじめの一歩

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

intersystems/ipm のほかの issue

intersystems/ipm の issue をすべて見る

似ている issue

CLI の issue をもっと見る

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

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