Feature request: include override-only resource changes in incremental publish
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- azure, typescript
- Lĩnh vực
- backend-api-design, devops
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 44
- Fork
- 14
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure/apiops-cli
-
type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
Azure/apiops-cli#350 ·
-
stale
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
Azure/apiops-cli#333 · 1 bình luận ·
-
extract fails when a policy uses set-backend-service backend-id="{{namedValue}}"Có thể đã có người làm @dannyward630 đã nhận 37 ngày trước. Đang mởstale type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Azure/apiops-cli#331 · 1 bình luận ·
-
Docs example says products are auto-included transitively, but they aren't extracted with `products: []`Có thể đã có người làm @cdayne đã nhận 27 ngày trước. Đang mởstale type:question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Azure/apiops-cli#277 · 1 bình luận ·
-
Extractor mistakes set-body json response as transitive dependency which causes pipeline failureĐang mởtype:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
Azure/apiops-cli#349 ·
Tất cả issue của Azure/apiops-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
tashfeenahmed/freellmapi#2217 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
remotion-dev/skills#37 ·
-
gui: a narrow window's gateway key row with a line under it wraps its faded badges onto blank linesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Slider: Escape during a thumb drag keeps and commits the dragged value, unlike ui-sdk's other dragsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
vercel-labs/ui#1758 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nicobailon/pi-subagents#3425 ·
Maintainer thường phản hồi trong vòng 1 ngày