Skip to content

Commit

Permalink
storage: Tune outdated cohort stats warning event. #TASK-7225
Browse files Browse the repository at this point in the history
  • Loading branch information
j-coll committed Dec 12, 2024
1 parent b4b431c commit 3f8ee12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public VariantQueryProjection parseVariantQueryProjection(Query query, QueryOpti
message += " The statistics have been calculated with " + invalidStatsNumSamples + " samples, "
+ "while the total number of samples in the cohort is " + numSampmles + ".";
}
message += " To display updated statistics, please execute variant-stats-index.";
message += " To display updated statistics, please contact your Organization / Study Administrator.";
events.add(new Event(Event.Type.WARNING, message));
} else if (status == TaskMetadata.Status.RUNNING) {
String message = "Please note that the Cohort Stats for "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void queryInvalidStats() throws Exception {
assertEquals(1, result.getEvents().size());
assertEquals("Please note that the Cohort Stats for '1000g:cohort2' are currently outdated." +
" The statistics have been calculated with 2 samples, while the total number of samples in the cohort is 4." +
" To display updated statistics, please execute variant-stats-index.", result.getEvents().get(0).getMessage());
" To display updated statistics, please contact your Organization / Study Administrator.", result.getEvents().get(0).getMessage());

VariantStorageEngine engineMock = Mockito.spy(variantStorageEngine);
VariantStatisticsManager statsManagerMock = Mockito.spy(variantStorageEngine.newVariantStatisticsManager());
Expand Down

0 comments on commit 3f8ee12

Please sign in to comment.