Skip to content

Commit a4de8f9

Browse files
Merge pull request #6692 from judofosu/waltz-6602-report-grid
Report Grid: person view should included non-direct apps
2 parents 766e593 + e878220 commit a4de8f9

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

waltz-service/src/main/java/org/finos/waltz/service/report_grid/ReportGridFilterViewService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ private ReportGridFilterInfo parseGridFilterInfo(Long appGroupId,
327327
private IdSelectionOptions mkSelectionOptionsFromGridInfoRow(List<String> gridInfo) {
328328
String vantagePointKind = gridInfo.get(2);
329329
String vantagePointId = gridInfo.get(3);
330-
return modifySelectionOptionsForGrid(mkOpts(mkRef(
330+
return mkOpts(mkRef(
331331
EntityKind.valueOf(vantagePointKind),
332-
Long.parseLong(vantagePointId))));
332+
Long.parseLong(vantagePointId)));
333333
}
334334

335335

waltz-service/src/main/java/org/finos/waltz/service/report_grid/ReportGridService.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
import static org.finos.waltz.common.Checks.checkTrue;
4949
import static org.finos.waltz.common.SetUtilities.map;
5050
import static org.finos.waltz.model.EntityReference.mkRef;
51-
import static org.finos.waltz.service.report_grid.ReportGridUtilities.modifySelectionOptionsForGrid;
5251

5352
@Service
5453
public class ReportGridService {
@@ -110,7 +109,6 @@ public Optional<ReportGrid> getByIdAndSelectionOptions(
110109
// WARNING: The grid computation is very slow if given a large person tree.
111110
// Therefore we restrict it to EXACT only behaviour.
112111
// If you are changing this please ensure you have tested with realistic test data.
113-
IdSelectionOptions opts = modifySelectionOptionsForGrid(idSelectionOptions);
114112

115113
LOG.info("ReportGrid - getting by ID={} SelectionOptions={}", id, idSelectionOptions);
116114
ReportGridDefinition definition = reportGridDao.getGridDefinitionById(id);
@@ -122,7 +120,7 @@ public Optional<ReportGrid> getByIdAndSelectionOptions(
122120

123121
EntityKind targetKind = definition.subjectKind();
124122

125-
ReportGridInstance instance = mkInstance(id, opts, targetKind);
123+
ReportGridInstance instance = mkInstance(id, idSelectionOptions, targetKind);
126124

127125
Set<ReportGridMember> members = reportGridMemberService.findByGridId(id);
128126

0 commit comments

Comments
 (0)