Closed s-marcq closed 1 month ago
During the execution of that test: https://github.com/CRISalid-esr/crisalid-ikg/blob/dc097ac3cd2bb7799d1b82a1a3149262fd5147a1/tests/test_services/test_source_records_and_concepts_services.py#L7-L57
The concept who should have its pref_label updated instead get another pref_label with the same language (None)
When following the debugger stack and checking neo4j graph. At that part of the code: https://github.com/CRISalid-esr/crisalid-ikg/blob/3e4a0e5726fc72441c61f34be8fc79da44bf69c9/app/graph/neo4j/concept_dao.py#L133-L141
The pref_label who should be deleted is not deleted
After some additional check: When the tested pref_label.language is set on another language, the error doesn't happen. The error is specific to pref_label.language = None
@jdp1ps
Scenario
Creation of two source records with a concept that has the same URI (http://www.idref.fr/02734004x/id) but different labels.
Data sent
People associated to the records
First record (A)
Second record (C)
Expected result
No warning or error, the labels associated with the URI from the first record are overwritten by those from the second.
Observed result
No warning or error reported, the labels associated with the URI (that is common to both publications) from the first record are overwritten by those from the second.