geonetwork / geonetwork/core-geonetwork
Groups owning metadata can be deleted
- 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.

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
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