OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

API fails to return assets and users belonging to team when the team is deleted

Open darth-coder00 opened this issue 4 years ago • 0 comments

Affected module Does it impact the UI, backend or Ingestion Framework? - Backend

Describe the bug Teams with Assets and Users in it, are allowed to get deleted. Deletion of a Team also deletes those Assets(Entities) and Users, that are part of the Team

To Reproduce

https://user-images.githubusercontent.com/86726556/158887353-8974d339-ecfd-4d9f-88d8-72e22d03214c.mov

Expected behavior If any Team has Assets or Users, API should throw error on attempt to delete

Version:

  • OS: [e.g. iOS]
  • Python version:
  • OpenMetadata version: [e.g. 0.8]
  • OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context None

darth-coder00 avatar Mar 17 '22 20:03 darth-coder00