Docs example says products are auto-included transitively, but they aren't extracted with `products: []`

Offen Anfängerfreundlich
#277 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
76/100
Issue-Typ
Dokumentation
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
azure
Bereich
cli, documentation

Rechercherichtung

Lies docs/guides/filtering-resources.md, insbesondere die Abschnitte „Transitive Dependency Behavior“ und „How To: Extract Just One API“. Reproduziere das Problem mit apiops extract, Version 1.0.1, und dem gezeigten Filter; als erledigt gilt die Aufgabe, wenn die Dokumentation genau beschreibt, ob Produkte eingeschlossen werden, wenn products: [] gesetzt ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

type:question
Question

Thefiltering guide has this example under "Transitive Dependency Behavior":

apis:
  - petstore-api

And petstore-api is assigned to:

  • Product starter → auto-included
  • Tag production → auto-included

The extract output includes all of these, even though only apiNames was specified in the filter.

I set up a filter based on the "How To: Extract Just One API" section on the same page, which lists only version sets, backends, named values, policy fragments, and tags as auto-included when their keys are set to [], and does not mention products:

apis:
  - my-api-1
  - my-api-2
backends: []
namedValues: []
products: []
tags: []
versionSets: []
loggers: []
diagnostics: []
groups: []
policyFragments: []
gateways: []
schemas: []
subscriptions: []
policies: []
policyRestrictions: []
documentations: []
workspaces: []

After running apiops extract with this filter, the products folder is empty. I confirmed directly against the APIM instance that both APIs are still assigned to their respective products, so the association exists and just isn't showing up in the extract output.

Did I misunderstand something about how the filter or --filter/transitive resolution is supposed to work here, or is the "Products containing the API" line in the Transitive Dependency Behavior example not accurate for the current release?

Context

@azure-tools/apiops-cli version 1.0.1. Filter file only sets apis: with two explicit API names and products: [], no --no-transitive flag passed to apiops extract.

Vorherrschende Sprache
TypeScript
Sterne
29
Forks
10
Ø Merge
1 T. 14 Std.
Gemergte PRs (30 T.)
22

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Azure/apiops-cli

Alle Issues in Azure/apiops-cli

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

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