Feature request: include override-only resource changes in incremental publish
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 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:
- Deletes the artifact for a managed Product.
- Changes the override value for an existing Named Value.
- Leaves that Named Value's artifact unchanged.
With commit B checked out and its parent available:
- Incremental publish with
--commit-id <B_SHA> --delete-unmatchedselects the Product deletion, but not the Named Value solely because its override changed. - Full publish without
--delete-unmatchedapplies the Named Value override but does not apply the Product artifact deletion. - Full publish with
--delete-unmatchedbroadens 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
- Override-only changes, v1.0.4
- Incremental publish, v1.0.4
- Publish deletion semantics, v1.0.4
- #157: Pipeline: Not publishing when overrides file updated is a closed report describing this behavior. This request asks for a behavioral improvement, not another report of the documented limitation.
If a newer release already provides this capability, please point to the supported configuration.
- 主要語言
- TypeScript
- 星號
- 44
- 分支
- 14
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Azure/apiops-cli 的其他 Issue
-
type:bug
難度 2/5 1-3 小時 新手友好度 71/100
Azure/apiops-cli#350 ·
-
stale
難度 1/5 1-3 小時 新手友好度 84/100
Azure/apiops-cli#333 · 1 則留言 ·
-
extract fails when a policy uses set-backend-service backend-id="{{namedValue}}"可能已有人在做 @dannyward630 於 37 天前認領。 未關閉stale type:bug
難度 2/5 1-3 小時 新手友好度 78/100
Azure/apiops-cli#331 · 1 則留言 ·
-
Docs example says products are auto-included transitively, but they aren't extracted with `products: []`可能已有人在做 @cdayne 於 27 天前認領。 未關閉stale type:question
難度 2/5 1-3 小時 新手友好度 76/100
Azure/apiops-cli#277 · 1 則留言 ·
-
Extractor mistakes set-body json response as transitive dependency which causes pipeline failure未關閉type:bug
難度 3/5 1-2 天 新手友好度 56/100
Azure/apiops-cli#349 ·
相似的 Issue
-
area:api bug good first issue priority:high
難度 2/5 1-3 小時 新手友好度 78/100
Doezer/Questarr#1486 · 1 則留言 ·
維護者通常 1 天內回覆
-
area:import difficulty:good-first good first issue help wanted priority:P1 roadmap size:S type:test
難度 2/5 1-3 小時 新手友好度 88/100
Sergey-Bar/Penny#245 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
Approve the Cloudflare agent plugin for harness sessions可能已有人在做 @joshtsch 今天認領。 未關閉enhancement ready-for-agent
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆