Skip to content

Confirm delete for a dataset which has references #1808

Open
@ridoo

Description

@ridoo

Describe the bug

Currently, a user has to confirm before deleting a dataset. However, there is no notice on existing references (e.g. map). After deleting the layer and re-opening the map, the layer cannot be loaded anymore (thanks Captain Obvious :shipit:!) and the map indicates changes:

image

Expected Behavior

The user should be informed that the dataset to be deleted still has references or is referenced by other resources (like maps), respectively.

Steps to Reproduce the Problem

  1. Create a map and add resources (you are allowed to delete)
  2. Delete the added resources
  3. Confirmation message does not contain any notice of existing references
  4. Re-open the map

Specifications

Tested on https://stable.demo.geonode.org/catalogue/#/map/10409

  • GeoNode client version:
  • Browser:
  • Installation type (vanilla, geonode-project):
  • Additional details:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions