Add support for non-deployed "dev" packages

Aperta
#1,253 1 commento 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
50/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
cli, tooling

Direzione di ricerca

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.

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

Descrizione

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.
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 CLI

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.