Azure / Azure/apiops

[FEATURE REQ] Allow only product extraction and not enforce that apis are also extracted in the same run

Offen
#570 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

### Please describe the feature.

When I run a product extractor and have no apis listed. It will not write the apis association file. I see in the Trace that the apis are being listed but i believe the CLI is getting that list and perhaps trying to validate that the APIs exist or, that it tries to reconcile them with its own list of APIs. And when it doesn't find a match, it doesn't write any associations.

We have a workflow whereby we manage products separately. This pretty much means I cannot run the product extractor or, if I do, i have to also extract the APIS, and then cherry pick the src content and move it into a branch that I can then reconcile w/ the rest of the codebase.

Perhaps if we can't just trust the api-names in the product (and I don't know why you couldn't.. as they're saved in the platform) then you could list APIs and check the names for matches.

But I think you can just get the API names from the list products for API as you do and just trust the names: https://learn.microsoft.com/en-us/rest/api/apimanagement/product-api/list-by-product?view=rest-apimanagement-2022-08-01&tabs=HTTP

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit dem Produkt-Extractor und dem CLI-Pfad, der Produkte verarbeitet, für die keine APIs aufgeführt sind, und vergleiche ihn anschließend mit dem im Issue erwähnten API Management List APIs by Product-Endpunkt. Die Änderung ist abgeschlossen, wenn eine reine Produkt-Extraktion ihre API-Zuordnungsdatei schreibt, ohne eine API-Extraktion zu erfordern oder die API-Namen des Produkts abzulehnen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, csharp
Bereich
api, backend
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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