Skip to content

Commit

Permalink
Update application-bdc.properties with dashboard and filtering configs
Browse files Browse the repository at this point in the history
- Added `dashboard.enable.bdc_hack` property
- Added `dashboard.layout.type` property
- Moved `filtering.unfilterable_concepts` property
- Ensured newline at end of file
  • Loading branch information
TDeSain committed Nov 20, 2024
1 parent f89fa61 commit 82303a1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand All @@ -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<DashboardDrawer> 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();
}
Expand Down

0 comments on commit 82303a1

Please sign in to comment.