Skip to content

Delete for parent entities should be handled properly. #44

@ravivj-db

Description

@ravivj-db

Describe the bug

When deleting a parent entity like catalog or schema, we should first check if there are child entities of the one being deleted. If present, the delete should error out. If force flag is set to true, the entire hierarchy subtree should be deleted.

To Reproduce

Steps to reproduce the behavior:

  1. Create a schema underneath a catalog
  2. Try and delete the catalog
  3. It will succeed

Expected behavior

The api request should error saying child Schema entities are present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions