finos / waltz

Enterprise Information Service
https://waltz.finos.org
Apache License 2.0
182 stars 129 forks source link

Understanding report grids and extended use-cases #7148

Open mcleo-d opened 1 month ago

mcleo-d commented 1 month ago

The following question was raised by @nitin-bhagwat from NatWest Group below ... https://github.com/finos/waltz/issues/7098#issuecomment-2337339305

Question

Hi Team We would like to have better understanding on report grids and its extended use-cases. Few queries are listed below:

davidwatkins73 commented 1 month ago

The report grid can render cells based on a fixed set of relationships it understands. For example, it can render any assessment rating value as the link from an app to an assessment is fairly simple to traverse (Assessment Def, Application, Assessment Rating, Rating Scheme Item). Similarly it supports all the base relationships seen in this screenshot:

image

To increase the coverage of these types would require changes to the report grid implementation code: org.finos.waltz.data.report_grid.ReportGridDao. This code basically looks at all the column definitions and groups them by their type (survey questions, involvement, assessments etc) and then constructs makes some bulk queries to fetch the data and rejoin tem (see the methods prefixed with fetch).