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

Open
#863 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
azure, csharp
Domain
api, tooling

Research direction

Start by running the extractor with configuration.extractor.yaml on version 7.0.2, using a product with multiple APIs attached, then inspect the generated artifacts and compare them with the configured API and product names. Done means the artifacts include only the specified API and the subscriptions related to the configured product, rather than every attached API and subscription.

Written by the indexing model from the issue text.

Description

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`
  1. Run the extractor and observe the artifacts.

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

Dominant language
C#
Stars
448
Forks
247
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/apiops

All issues in Azure/apiops

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.