[BUG] APINames are not extracted

Open
#739 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
api

Research direction

Start by reproducing the issue with the provided workspaceNames, apiNames, and related configuration, then compare the debug traces for the two configurations. Done means the API selected by apiNames is written to its expected artifact file rather than only appearing in the trace.

Written by the indexing model from the issue text.

Description

Release version

v6.0.1.4

Describe the bug

The API is displayed in the log (trace) but is not written to a file. Everything else is extracted correctly.

Strangely, it works with the following configuration, but i don't need extractAll.

JSON is displayed there.

Expected behavior

Extract API with apiNames: value

Actual behavior

Extract api with apiNames value not possible

Reproduction Steps
workspaceNames:
- ignore

apiNames:
- myAPIName

backendNames:
- myBackendName

diagnosticNames:
#- ignore

loggerNames:
#- ignore

namedValueNames:
#- ignore

productNames:
#- ignore

subscriptionNames:
- mySubscriptionName

tagNames:
#- ignore

policyFragmentNames:
#- ignore

versionSetNames:
#- ignore

Debug Trace ends like this:

info: extractor[0]
      Writing API operation policy file /home/vsts/work/1/artifacts-from-portal/sharedproducts/apim/apimArtifacts/apis/myAPIName/operations/post-action/policy.xml...
dbug: Microsoft.FeatureManagement.FeatureManager[0]

This configuration doesn't extract apiNames:

workspaceNames:
- ignore

apiNames:
- myAPIName

backendNames:
- myBackendName

diagnosticNames:
- ignore

loggerNames:
- ignore

namedValueNames:
- myNamedValues

productNames:
- rfmint

subscriptionNames:
- mySubscriptionName

tagNames:
- ignore

policyFragmentNames:
- ignore

versionSetNames:
- ignore

Debug Trace ends like this:

dbug: Microsoft.FeatureManagement.FeatureManager[0]
      The feature definition for the feature 'Workspaces' was not found.
info: extractor[0]

The write is simply missing here, although the API or the content for the

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.