Azure / Azure/apiops

[BUG] Noticed weird bug in v7.0.2/3 regarding extractor artifacts

Aperta
#863 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
448
Fork
247
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Release version

7.0.2/3

### Describe the bug

In previous versions when we run the extractor with below config, extractor will only pick up the subscription(s) details assigned to the product name given in config.

Find the example extractor config used below. (before v7.0.1)

`diagnosticNames: [ignore]
loggerNames: [ignore]
policyFragmentNames: [ignore]

apiNames:
- apiName1

backendNames:
- backendName1
- backendName2

namedValueNames:
- namedValueName1
- namedValueName2

productNames:
- productName1
- productName2

tagNames:
- tagName1
- tagName2
`
But in new version of extractor config if we do the same with new naming, extractor picking up every subscription(s) in the APIM instance with the product mention in the config.

This is causing issue for the publisher. if we run the publisher on the same, it will update all the subscription on new instance.

### Expected behavior

When we have given product in extractor config, it should only pickup related subscription. Also along with this if we have given specific API in the extractor config the api should the only api in the artifacts.

### Actual behavior

In this version, extractor pull all the APIs and Subscription attached with the product instead of the related ones like in previous versions.

### Reproduction Steps

1. Update the Version to 7.0.2
2. create the configuration.extractor.yaml with the specific api and Product( Make sure mutiple api attached to the product to see the difference) (>=v7.0.1 )

`diagnostics: []
loggers: []
policyFragments: []
gateways: []
groups: []
versionSets: []
workspaces: []

apis:
- apiName1

backends:
- backendName1
- backendName2

namedValues:
- namedValueName1
- namedValueName2

products:
- productName1
- productName2

tags:
- tagName1
- tagName2`

4. Run the extractor and observe the artifacts.

You will see, all the subscriptions attached and all the APIs are attached in the product.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia eseguendo l’estrattore con configuration.extractor.yaml sulla versione 7.0.2, usando un prodotto a cui sono associate più API, quindi esamina gli artefatti generati e confrontali con i nomi dell’API e del prodotto configurati. Il lavoro è completato quando gli artefatti includono solo l’API specificata e le sottoscrizioni relative al prodotto configurato, anziché ogni API e sottoscrizione associata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, csharp
Ambito
api, tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
52/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.