Hello!
When creating new entities and/or relationships, is it necessary to manually add the new relationships in the
relation schema?
For example, we added a new relationship between
Publication and
Person, creating the
isAdvisorOfPublication and
isPublicationOfAdvisor relationships.
We also configured discovery.xml, and in the front-end added it to the related entities search in our custom person component.
However, no related publications were being displayed..
Inspecting the logs I've found some errors regarding the missing metadata relation.isPublicationOfAdvisor and relation.isPublicationOfAdvisor.latestForDsicovery.
After adding them to the relation schema, removing and re-adding the relationships, the related publications started to show.
Is this the correct approach or there is there some way to automatically update the relation schema when adding new entities and/or relationships?
<ds-tabbed-related-entities-search
[item]="object"
[relationTypes]="[
{
label: 'isAuthorOfPublication',
filter: 'isAuthorOfPublication',
configuration: 'default-relationships'
},
{
label: 'isAdvisorOfPublication',
filter: 'isAdvisorOfPublication',
configuration: 'default-relationships'
},
]"
>