Feature request: include override-only resource changes in incremental publish

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
azure, typescript

調査の方向性

Start with the v1.0.4 incremental publish and environment overrides guides linked in the issue, then trace the publish command's --commit-id, --overrides, and --delete-unmatched handling. Define how prior and externally supplied override configuration is compared, and how removed overrides are handled; done means dry-run includes the override-only Named Value update and commit-scoped Product deletion while leaving unrelated resources untouched.

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

説明

Problem or use case

When promoting APIM configuration between environments, a commit can contain both an artifact deletion and an environment-specific override change for a different resource whose artifact is unchanged.

The documented incremental behavior considers artifact changes, not override-only changes. Full publish applies overrides, but enabling full --delete-unmatched is unsuitable when the destination also contains resources outside the repository's management scope.

This makes it difficult to publish the intended updates and commit-scoped deletions in one invocation.

Version reviewed: @azure-tools/apiops-cli 1.0.4. This request is based on documentation and source review. The following is a synthetic scenario, not an APIM runtime reproduction or a production incident report.

Example scenario

The destination contains repository-managed resources and other resources that must remain untouched. Commit A is fully deployed. Commit B:

  1. Deletes the artifact for a managed Product.
  2. Changes the override value for an existing Named Value.
  3. Leaves that Named Value's artifact unchanged.

With commit B checked out and its parent available:

  • Incremental publish with --commit-id <B_SHA> --delete-unmatched selects the Product deletion, but not the Named Value solely because its override changed.
  • Full publish without --delete-unmatched applies the Named Value override but does not apply the Product artifact deletion.
  • Full publish with --delete-unmatched broadens deletion beyond the changes in B, which is not acceptable for this use case.

Two invocations, full publish without deletion followed by incremental publish with deletion, add intermediate state, verification, and failure-recovery work.

Proposed solution

Provide an override-aware incremental mode that includes existing artifact-backed resources whose effective publish configuration changed, in addition to artifact changes.

Deletion should remain explicitly enabled and limited to the selected Git changes, rather than becoming full destination reconciliation.

Please define how the previous override configuration is obtained and how removed overrides are handled. If comparison is not feasible for some externally supplied overrides, an explicit way to select additional existing resources for update in the same commit-scoped publish would also help.

We are not requesting that a resource be created from an override entry without an artifact, or that independent REST operations become transactional.

Desired outcome

For the example above, a single planned publish includes the Named Value update and managed Product deletion, while leaving unrelated destination resources untouched. Its dry-run output should show both.

Affected command

apiops publish --commit-id <sha> --overrides <path> --delete-unmatched

References and related issues

If a newer release already provides this capability, please point to the supported configuration.

主要言語
TypeScript
スター
44
フォーク
14
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

Azure/apiops-cli のほかの issue

Azure/apiops-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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