core-geonetwork icon indicating copy to clipboard operation
core-geonetwork copied to clipboard

Group name edit and group info indexing in Lucene

Open josegar74 opened this issue 4 years ago • 0 comments

The lucene field _groupPublished stores the group name instead of the group identifier (as it's done for _groupOwner), this is problematic if the group name is changed as the Lucene index is not updated.

This field is used for the facet filters and in:

https://github.com/geonetwork/core-geonetwork/blob/c0855205156ec0f8a6cb062071e9ac2afbd9a157/web/src/main/webapp/xslt/ui-search/search-nojs.xsl#L77

https://github.com/geonetwork/core-geonetwork/blob/c0855205156ec0f8a6cb062071e9ac2afbd9a157/web-ui/src/main/resources/catalog/templates/admin/settings/csw-virtual.html#L122

To check:

  1. Store the group identifier and review/update the code using this field

  2. Update the metadata indexing when saving a group, if a name change is identified (similar as it's done when a group is deleted:

https://github.com/geonetwork/core-geonetwork/blob/c0855205156ec0f8a6cb062071e9ac2afbd9a157/services/src/main/java/org/fao/geonet/api/groups/GroupsApi.java#L536-L549

Option 1) sounds a better approach to me.

josegar74 avatar Feb 28 '20 10:02 josegar74