Skip to content

Improve ObjectRegistry delete method with better error handling and optional confirmation #144

@AumPatel1

Description

@AumPatel1

Is your feature request related to a problem? Please describe.

Firstly is will not be of much impact to end user ,
when trying to delete items from ObjectRegistry it might get unhelpful error message , when an item doesn't exist, the current error just says "Item not found" without showing what items similar are actually available as diff url might be made in _get_url. This makes debugging difficult because one have to guess what the correct item name might be.

Describe the solution you'd like

Delete method can provide better error messages that show available items of the same type when the requested item is not found. Optional confirmation feature that shows item details before deletion to prevent accidental deletions can be great.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions