Skip to content

Commit

Permalink
IQSS#11044 fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed Dec 3, 2024
1 parent 1af22b5 commit ca95ad8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public DataverseFacet create(int displayOrder, DatasetFieldType fieldType, Datav
dataverseFacet.setDisplayOrder(displayOrder);
dataverseFacet.setDatasetFieldType(fieldType);
dataverseFacet.setDataverse(ownerDv);

em.persist(dataverseFacet);
ownerDv.getDataverseFacets().add(dataverseFacet);
em.persist(dataverseFacet);

cache.invalidate(ownerDv.getId());
return dataverseFacet;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ private void processInputLevels(CommandContext ctxt) {
dataverse.addInputLevelsMetadataBlocksIfNotPresent(inputLevels);
}
ctxt.fieldTypeInputLevels().deleteFacetsFor(dataverse);
dataverse.setDataverseFieldTypeInputLevels(new ArrayList<>());
inputLevels.forEach(inputLevel -> {
inputLevel.setDataverse(dataverse);
ctxt.fieldTypeInputLevels().create(inputLevel);
Expand Down

0 comments on commit ca95ad8

Please sign in to comment.