Azure / Azure/apiops

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

Offen
#863 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
448
Forks
247
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, den Extractor mit configuration.extractor.yaml auf Version 7.0.2 auszuführen, wobei ein Produkt mit mehreren angehängten APIs verwendet wird. Untersuche anschließend die generierten Artefakte und vergleiche sie mit den konfigurierten API- und Produktnamen. Als erledigt gilt die Aufgabe, wenn die Artefakte nur die angegebene API und die mit dem konfigurierten Produkt verbundenen Subscriptions enthalten, nicht jede angehängte API und Subscription.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, csharp
Bereich
api, tooling
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
52/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.