onaio / reveal-frontend

WebUI for the Reveal epidemiological surveillance platform
8 stars 4 forks source link

Show Team Assignment on Assign Endpoint Where Team Assignment End Date is Indefinite #1684

Closed samkanga closed 2 years ago

samkanga commented 2 years ago

We have run into occasional issues on OpenSRP side where team assignment is set to end on an indefinite date `. When this happens, one cannot see the team assignments from the/assign` end point. It has not been possible to tel the cause for this on the OpenSRP side but as a stop gap measure we would like to ensure that the use case is accounted for on the WebUI side.

ciremusyoka commented 2 years ago

Here is a sample of such assignment on Thailand Preview. Plan id: e49aced6-391d-4c6a-abd9-f7770826ba2a

Rkareko commented 2 years ago

@madrinekariuki How to test

  1. Create a new plan
  2. Activate it
  3. Use this API to assign a team to it. The team assignment in this case would not have an end date
  4. Assign the payload values according to your plan. remember organization in the payload refers to teamID
  5. Follow the 4 Assign Organizations to Locations and Plans section on this doc. Omit the toDate from the payload
madrinekariuki commented 2 years ago

@ciremusyoka @Rkareko This has been tested.

steps to test: Followed the steps here. This was tested with a normal plan.

Observation:

screenshots: payload image webUI team assignment image

madrinekariuki commented 2 years ago

This has also been tested on the Thai- local instance and the plan's team assignment showed up even with the toDate value missing on the plans payload. this was tested using both a routine plan and a case triggered plan

plan IDs used 200b17ed-6151-4e16-a126-0c68b138ac19 case triggered 8f82dd78-065f-5dca-bec5-165104bfe59f routine plan