Skip to content

Commit

Permalink
indexing deleted links #1364
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrys committed Apr 19, 2018
1 parent cbbff51 commit d8e376c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public Dataset execute(CommandContext ctxt) throws CommandException {
Dataset merged = ctxt.em().merge(editedDs);
DatasetLinkingDataverse doomedAndMerged = ctxt.em().merge(doomed);
ctxt.em().remove(doomedAndMerged);

ctxt.index().indexDataset(editedDs, true);
ctxt.index().indexDataverse(doomed.getLinkingDataverse());
return merged;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public Dataverse execute(CommandContext ctxt) throws CommandException {
Dataverse merged = ctxt.em().merge(editedDv);
DataverseLinkingDataverse doomedAndMerged = ctxt.em().merge(doomed);
ctxt.em().remove(doomedAndMerged);

ctxt.index().indexDataverse(editedDv);
ctxt.index().indexDataverse(doomed.getLinkingDataverse());
return merged;
}
}

0 comments on commit d8e376c

Please sign in to comment.