Skip to content

Commit

Permalink
Merge pull request #6853 from ORCID/8807-tech-support-investigate-the…
Browse files Browse the repository at this point in the history
…-grouping-of-ror-https-rororg-01hwamj44

Fixed the bug when the  grouping is undone for an existing Fundref that  has been updated in Fundref registry
  • Loading branch information
amontenegro authored Aug 15, 2023
2 parents 9a8ebd0 + 7466f68 commit 23787b1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ private boolean importData() {
existingEntity.setSourceType(OrgDisambiguatedSourceType.FUNDREF.name());
existingEntity.setSourceUrl(rdfOrganization.doi);
existingEntity.setIndexingStatus(IndexingStatus.PENDING);
existingEntity.setStatus(rdfOrganization.status);
if(!StringUtils.equals(existingEntity.getStatus(),OrganizationStatus.PART_OF_GROUP.name())){
existingEntity.setStatus(rdfOrganization.status);
}
try {
// mark group for indexing
new OrgGrouping(existingEntity, orgDisambiguatedManager).markGroupForIndexing(orgDisambiguatedDao);
Expand Down

0 comments on commit 23787b1

Please sign in to comment.