Skip to content

Commit

Permalink
Merge pull request #2536 from opencb/TASK-7225
Browse files Browse the repository at this point in the history
TASK-7225 - Warning events messages still take up a large part of the screen in Variant Browser
  • Loading branch information
j-coll authored Dec 20, 2024
2 parents bdccb74 + 3f8ee12 commit 3acb910
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 3acb910

Please sign in to comment.