Azure / Azure/apiops

[BUG] APINames are not extracted

Open
#739 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
448
Forks
247
PR merge metrics
No merged PRs in 30d

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.