geonetwork / geonetwork/core-geonetwork

Harvester "Override" option updates the metadata source, but not the harvested flag

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

Description

Override option in harvesters allow to override a metadata that is already in the catalogue, but managed by locally or by other harvester.

The code is similar to all the harvesters that support this option:

https://github.com/geonetwork/core-geonetwork/blob/20693c711a6404d49208364adc2a63202d1ec6ad/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/csw/Aligner.java#L439-L445

It is assigned the source, but not the harvested flag (for example, if the metadata was created in the catalogue, not imported from other harvester). This causes that the metadata is listed in the Editor Dashboard when filtering by `PROVIDED BY` selecting the harvester source, but not when filtering by `HARVESTED`, with value `Yes`.

Contributor guide

Open the contributing guide

Research direction

Start in harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/csw/Aligner.java around lines 439-445, then compare the corresponding override handling in the other harvesters. Verify how the metadata source and harvested flag are assigned, and use the Editor Dashboard filters to confirm that overridden records appear under both the harvester source and HARVESTED = Yes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.