avniproject / avni-server

Backend APIs for Avni
https://avniproject.org
GNU Affero General Public License v3.0
7 stars 25 forks source link

Null Value in `individual.encounters` #731

Open BEULAHEVANJALIN opened 5 months ago

BEULAHEVANJALIN commented 5 months ago

Describe the bug There is a variation between the web app and the mobile app on the retrieval of individual.encounters and individual.enrolments in form element rule. Mobile shows these objects correctly when they exist, but the web app doesn't even though the objects exist.


To Reproduce Steps to reproduce the behavior:

  1. Try logging the individual object.
  2. Check theindividual.encounters and individual.enrolments fields in the logged result.

Screenshots

image image

Additional context There is a requirement from Ashwini to autopopulate the value from one encounter to another. For that, I need a list of encounters. Even the prototype is resulting in an empty array, so there is no way to retrieve the data currently.


Desktop (please complete the following information):

Smartphone (please complete the following information):

Developer Checklist Developer fixing the bug should fill this checklist.

mahalakshme commented 5 months ago

@BEULAHEVANJALIN the above was in form element rule right? Can you add that as well in the description, because different rules are executed in different context - will help in fixing