Azure / Azure/apiops

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

Abierto
#863 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
C#
Estrellas
448
Forks
247
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Empieza ejecutando el extractor con configuration.extractor.yaml en la versión 7.0.2, usando un producto al que estén asociadas varias APIs. Después, inspecciona los artefactos generados y compáralos con los nombres de API y de producto configurados. Se considera terminado cuando los artefactos incluyen únicamente la API especificada y las suscripciones relacionadas con el producto configurado, en lugar de todas las APIs y suscripciones asociadas.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
azure, csharp
Área
api, tooling
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
52/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.