Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Bug] Selective API operation extraction filter does not filter paths in specification.yaml

Đang mở
#294 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
api, cli

Hướng nghiên cứu

Start with the apiops extract entry point and the filter configuration at configuration/extractor.config.yaml. Compare how the operations allow-list is applied to artifacts/apis/api1/operations/ versus artifacts/apis/api1/specification.yaml. Done means the specification contains only the selected operation paths while excluded operation artifacts remain absent.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

type:bug
Command that triggered the bug

apiops extract

Expected behavior

When an API is configured with an operations allow-list, the generated specification.yaml should contain only those selected operations.

For example:

apis:
  - api1:
      operations:
        - create-resources

If the api1 API contains create-resources and test, only create-resources should appear in: specification.yaml



### Actual behavior

The extractor correctly filters the individual operation artifacts. Only the selected operation is generated under:

artifacts/apis/api1/operations/

However, artifacts/apis/api1/specification.yaml still contains the other operations path.

As a result, publishing the extracted artifacts can create the excluded operation in the target APIM instance, even though it was not listed in the extractor filter.

This is the same behavior described in for the older apiops [Azure/apiops#854](https://github.com/Azure/apiops/issues/854).

### apiops CLI version

1.0.3

### Environment details

APIOps CLI package: @azure-tools/apiops-cli
APIOps CLI version: 1.0.3
Node.js: 22.x or later
Package installation: npm ci
Command: apiops extract
Filter option: --filter configuration/extractor.config.yaml

### CI/CD environment

Azure DevOps

### Is this bug blocking you?

Yes
Ngôn ngữ chính
TypeScript
Star
29
Fork
10
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
23

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/apiops-cli

Tất cả issue của Azure/apiops-cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.