Skip to content

Commit

Permalink
catalog: add missing CLINICAL resource to archive collections,#TASK-6445
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurio committed Feb 21, 2025
1 parent 26e9a58 commit 51af8be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,9 @@ private MongoDBCollection getArchiveCollection(Enums.Resource resource) throws C
return dbAdaptorFactory.getCatalogFamilyDBAdaptor().getArchiveFamilyCollection();
case WORKFLOW:
return dbAdaptorFactory.getWorkflowDBAdaptor().getArchiveCollection();
case CLINICAL:
case CLINICAL_ANALYSIS:
return dbAdaptorFactory.getClinicalAnalysisDBAdaptor().getArchiveCollection();
default:
throw new CatalogDBException("Unexpected resource '" + resource + "' parameter received.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ protected MongoDBCollection getCollection() {
return clinicalCollection;
}

public MongoDBCollection getArchiveCollection() {
return archiveClinicalCollection;
}

static void fixCommentsForRemoval(ObjectMap parameters) {
if (parameters.get(COMMENTS.key()) == null) {
return;
Expand Down

0 comments on commit 51af8be

Please sign in to comment.