Release version
v6.0.2
Describe the bug
When a Policy Fragment is deleted from the APIM instance and the extractor pipeline is run, the extractor does not remove the corresponding Policy Fragment folder from the output artifacts. The PR created by the extractor shows no changes related to the deleted fragment. The stale artifact remains in the repository
Expected behavior
When a Policy Fragment exists in the repository but no longer exists in the source APIM instance, the extractor pipeline should:
Remove the corresponding artifact folder/files from the output so the PR reflects the deletion
Actual behavior
The extractor only writes artifacts for resources it finds in APIM. It does not compare the output against the existing repository contents. As a result:
- Deleted Policy Fragments remain in the repo as stale files
- The extractor PR shows zero changes related to the deletion
Reproduction Steps
- Create a Policy Fragment in the APIM portal
- Run the extractor pipeline - verify the policy fragment folder appears in the PR
- Merge the PR
- Delete the policy fragment from the APIM portal
- Run the extractor pipeline again
- Observe the PR - the policy fragment folder is not removed; no deletion is reflected in the diff
Release version
v6.0.2
Describe the bug
When a Policy Fragment is deleted from the APIM instance and the extractor pipeline is run, the extractor does not remove the corresponding Policy Fragment folder from the output artifacts. The PR created by the extractor shows no changes related to the deleted fragment. The stale artifact remains in the repository
Expected behavior
When a Policy Fragment exists in the repository but no longer exists in the source APIM instance, the extractor pipeline should:
Remove the corresponding artifact folder/files from the output so the PR reflects the deletion
Actual behavior
The extractor only writes artifacts for resources it finds in APIM. It does not compare the output against the existing repository contents. As a result:
Reproduction Steps