vorburger commented on a change in pull request #1368:
URL: https://github.com/apache/fineract/pull/1368#discussion_r528199080



##########
File path: 
fineract-provider/src/main/java/org/apache/fineract/infrastructure/dataqueries/api/RunreportsApiResource.java
##########
@@ -124,12 +125,13 @@ public Response runReport(@PathParam("reportName") 
@Parameter(description = "rep
             parameterTypeValue = "report";
             String reportType = 
this.readExtraDataAndReportingService.getReportType(reportName, 
isSelfServiceUserReport);
             ReportingProcessService reportingProcessService = 
this.reportingProcessServiceProvider.findReportingProcessService(reportType);
-            if (reportingProcessService != null) {
-                return reportingProcessService.processRequest(reportName, 
queryParams);
+            if (reportingProcessService == null) {
+                throw new 
PlatformServiceUnavailableException("err.msg.report.service.implementation.missing",
+                        ReportingProcessServiceProvider.SERVICE_MISSING + 
reportType, reportType);

Review comment:
       Actually I guess that one would then more appropriately be our 
`DatatableReportingProcessService` (in `infrastructure.dataqueries.service`) 
instead of a `DefaultReportingProcessService` in  
`infrastructure.report.service.ReportingProcessService`.... watch for an update 
on this PR! :smile_cat: 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to