Description
What/Where is the issue ?
Force deleting a collection source that is used in some reports is not working
Environment: C7/ C8SaaS/ C8SM
Optimize version : 3.10 / 3.11 (potentially 3.9 as well)
ES version : 7.17
OS + Browser version : MacOS + chrome
Steps to reproduce:
When doing delete with "force = true" on a data source like this
DELETE api/collection/<collectionId>/scope/{scopeEntryId}?force=true
Considering that the data source is used in some reports.
Observed behavior:
The request fails with 409 conflict response even with the force option. Neither the data source nor the assosiated reports gets deleted.
{ "errorCode" : "collectionConflict", "errorMessage" : "Could not apply the collection changes due to conflicts.", "detailedMessage" : "Operation cannot be executed as other entities would be affected.", "conflictedItems" : [ { "id" : "976ae975-7aa8-4521-ae2a-6655e519310d", "type" : "report", "name" : "Locate bottlenecks on a Heatmap" } ] }
Expected behavior:
The data source and the associated reports should get deleted successfully.