apiops
apiops copied to clipboard
[BUG] API's are not getting deleted
Release version
v6.0.1.4
Describe the bug
I am trying to delete API's from repository by
- Deleting entire API folder.
- Commit to branch
- Create PR
- Merge to main branch.
- On merge triggers publisher pipeline
- Publisher pipeline is executing with success but API's are not deleted from APIM in Azure
Expected behavior
API's deleted from repository should get deleted when published using publisher pipeline
Actual behavior
API's are not deleted from APIM in Azure
Reproduction Steps
- Delete entire API folder from repository. e.g. if the repo structure is like this -> apis/test-api then delete entire test-api folder
- Commit changes to a branch
- Create PR
- Merge to main branch.
- On merge trigger publisher pipeline
- Publisher pipeline is executes with success but test-api is not deleted from APIM in Azure
Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.
Just a update on this issue. If I use "COMMIT_ID" configuration parameter with Publisher then the artifacts are getting deleted if the delete artifact push is in the last commit id. I didn't get a chance to debug this but my guess is there is some issue when comparing artifacts in artifactFiles.Contains(informationFile.ToFileInfo()). could be local cache issue. will update when I get a chance to debug.