You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ProjectXlsExporter, t should be added to the commonProjectHeadersWithoutSites after the Service Provider column.
So that the ProjectXlsExporter doesn't introduce a GORM dependency and run the same query over and over again to lookup the management unit name, I suggest a similar approach to how the GmsMapper in MERIT works.
Pass a map of management unit id to name, with dynamic initialisation of the contents using Groovy's "withDefault":
In ProjectXlsExporter, t should be added to the commonProjectHeadersWithoutSites after the Service Provider column.
So that the ProjectXlsExporter doesn't introduce a GORM dependency and run the same query over and over again to lookup the management unit name, I suggest a similar approach to how the GmsMapper in MERIT works.
Pass a map of management unit id to name, with dynamic initialisation of the contents using Groovy's "withDefault":
Map managementUnits = [:].withDefault{name ->
Map mu = managementUnitService.getByName(name)
mu?.managementUnitId
}
def mapper = new GmsMapper(metadataService.activitiesModel(), metadataService.programsModel(), metadataService.organisationList()?.list, abnLookupService, metadataService.getOutputTargetScores(), programs, managementUnits)
The text was updated successfully, but these errors were encountered: