geonetwork / geonetwork/core-geonetwork

Groups owning metadata can be deleted

Open
#4,091 0 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
Java
Stars
521
Forks
514
Avg merge
6d 13h
Merged PRs (30d)
19

Description

Tested in `3.8.x`

1) Create some records and assign to the default `Sample group`

2) Edit the `Sample group` and delete it --> No error is displayed, the group is removed

3) Go to the editor dahsboard --> The metadata group owner has the id (2) of `Sample group`, but as the group no longer exists the id is displayed instead of the group name.

![group-facet](https://user-images.githubusercontent.com/1695003/66563142-6f1a6f00-eb5d-11e9-9297-7ec78322d4e2.png)

Probably no FK between metadata and groups, but this should be prevented. If the group has metadata should not be possible to be deleted.

In these cases, the metadata should be transfer to other group first and the can be deleted.

Also to consider if the group has users assigned, maybe to warn the user before deleting the group. For now just get unlinked.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the deletion of the default Sample group after assigning records and metadata to it, then trace the group-deletion and metadata-owner handling paths. Done means a group with metadata cannot be deleted, and the issue's requested ownership transfer occurs before deletion; handling assigned users remains a separate consideration.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.