[Bug] Selective API operation extraction filter does not filter paths in specification.yaml
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 29
- Fork
- 10
- Merge medio
- 1g 13h
- PR unite (30g)
- 23
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/apiops-cli
-
type:question
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Azure/apiops-cli#277 ·
-
type:documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
Azure/apiops-cli#250 ·
-
Documentation P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Azure/apiops-cli#24 · 1 commento ·
-
type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
Azure/apiops-cli#291 ·
-
type:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
Azure/apiops-cli#276 ·
Tutte le issue di Azure/apiops-cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
fil-donadoni/tolaria#4409 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
corsairdev/corsair#1764 ·