Azure / Azure/apiops

[BUG] Running publisher after revision deletion remove whole API

Open
#709 3 comments 1 reaction 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.3

### Describe the bug

When I commit changes to an API with multiple revisions and remove one of the revisions, the publisher removes the entire API.

### Expected behavior

I expect that only the revision removed in the commit will be deleted from the APIM instance.

### Actual behavior

In reality, the entire API is removed from the APIM instance.

### Reproduction Steps

I have an API with three revisions:
```
apis/
├── azerty-service/
├── azerty-service;rev=2/
└── azerty-service;rev=3/
```

I delete the folder apis/azerty-service;rev=2, commit the changes, and run the publisher for these updates.

As a result, the entire API azerty-service, including all its revisions, is removed from the APIM instance.

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.