From 82303a17c9cfbface94ea35027f97b60f06798ad Mon Sep 17 00:00:00 2001 From: TDeSain Date: Wed, 20 Nov 2024 09:06:20 -0500 Subject: [PATCH] Update application-bdc.properties with dashboard and filtering configs - Added `dashboard.enable.bdc_hack` property - Added `dashboard.layout.type` property - Moved `filtering.unfilterable_concepts` property - Ensured newline at end of file --- .../dashboarddrawer/DashboardDrawerService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/edu/harvard/dbmi/avillach/dictionary/dashboarddrawer/DashboardDrawerService.java b/src/main/java/edu/harvard/dbmi/avillach/dictionary/dashboarddrawer/DashboardDrawerService.java index dc381d3..577fe51 100644 --- a/src/main/java/edu/harvard/dbmi/avillach/dictionary/dashboarddrawer/DashboardDrawerService.java +++ b/src/main/java/edu/harvard/dbmi/avillach/dictionary/dashboarddrawer/DashboardDrawerService.java @@ -22,7 +22,7 @@ public DashboardDrawerService(DashboardDrawerRepository repository, @Value("${da /** * Retrieves the Dashboard Drawer for all datasets. * - * @return a Dashboard instance with drawer-specific columns and rows. + * @return All Dashboard Instances and their metadata. */ public DashboardDrawerList findAll() { if (dashboardLayout.equalsIgnoreCase("bdc")) { @@ -36,14 +36,14 @@ public DashboardDrawerList findAll() { /** * Retrieves the Dashboard Drawer for a specific dataset. * + * * @param datasetId the ID of the dataset to fetch. - * @return a Dashboard instance with drawer-specific columns and rows. + * @return a single Dashboard instance with drawer-specific metadata. */ public DashboardDrawer findByDatasetId(Integer datasetId) { if (dashboardLayout.equalsIgnoreCase("bdc")) { List records = repository.getDashboardDrawerRows(datasetId); - // Should be atomic as the query is an aggregation on the dataset table. - // Probably a better way to do this. + if (records.size() == 1) { return records.getFirst(); }