klesh opened a new issue, #5532:
URL: https://github.com/apache/incubator-devlake/issues/5532

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   Deleting a scope referenced by a bp, the API returned 409 error, but related 
records get deleted.
   
   
![image](https://github.com/apache/incubator-devlake/assets/61080/53444185-c9ab-445e-99ee-ceb325770bed)
   
   
   
![image](https://github.com/apache/incubator-devlake/assets/61080/545116d9-b745-4768-b428-3d22e2ca2083)
   
   
   
![image](https://github.com/apache/incubator-devlake/assets/61080/25a03119-bc57-4439-bbf1-b58274325087)
   
   
   ### What do you expect to happen
   
   All data of the scope should not be touched when deletion failed
   
   ### How to reproduce
   
   1. add scope to a project
   2. collect data for the project
   3. delete scope on connection page
   4. check database
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   b40efa574abbe0530d3cf623cbddb5a3e34bcc7f
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to