opensrp / opensrp-client-reveal

OpenSRP Client Reveal App
Other
7 stars 8 forks source link

Residential structures, have Zero tasks and are grey in color on Production instance #1536

Closed madrinekariuki closed 3 years ago

madrinekariuki commented 3 years ago

There are existing residential structures that are grey and can be clicked But the tasks part is ZERO. But if you add a family member their task for Record screening is generated and if you record the structure changes from grey to purple.

see example below: let us use Kwale Jubba

image image

madrinekariuki commented 3 years ago

This has been retested on this new plana01ee0b8-57a2-5304-9d0f-2284171d471c and the structures are now purple and with tasks generated.

see screenshot below image image

madrinekariuki commented 3 years ago

@Rkareko cc @samkanga

issue has been tested again on this plan a01ee0b8-57a2-5304-9d0f-2284171d471c (plan created today)

location Nonthaburi - training district- training village -site 3

Observations: -The structure in the plan it was created still has tasks for the family member who was Not archived.

see screenshots below. on the new plan image

on an old plan image

location of the structure image

madrinekariuki commented 3 years ago

Task generation happens at the point of plan activation and considers the structures that exist at that point in time. In the case above, if you try to access a newer structure from an old plan, there wont be any tasks because that structure did not exist when the plan was activated. This seems to be the Entity persistence use case that is yet to be implemented

cc @samkanga @Rkareko