Unresolved
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Szymon Radziszewski
Szymon Radziszewski(Deactivated)Reporter
Seweryn Niedzielski
Seweryn NiedzielskiLabels
Original estimate
1d 4h
Time tracking
Components
Fix versions
Priority
Time Assistant
Time Assistant
Created February 13, 2023 at 3:48 PM
Updated March 21, 2023 at 7:40 PM
While working on fixing particular report on Malawi implementation it is realized that some of the data coming from GET /api/facilities is missing therefore there are problems with processing some reports.
On NiFI level there is special group of jobs responsible for fetching ReferenceData. One of the most important endpoint is GET /api/facilities. According to this schema https://github.com/OpenLMIS/openlmis-referencedata/blob/ea2d0516dd62cadbb6af3e8ac224d82e3bddd442/src/main/resources/schemas/facility.json#L59 there is possibility to have returned ‘supportedPrograms' but currently API GET api/facilities doesn’t show such data in the response body. Without this ‘supported programs' we cannot count properly some of the reports related to 'Reporting Rate and Timeliness’.
Acceptance criteria:
there should be an endpoint available to get a list of facilities and their supported programs
changes cannot affect existing solutions.
To do:
In the FacilityController class, create a new endpoint;
GET api/facilities/full
It should return a list of FacilityDto, which contain a list of the facility's supported programs