Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule is not applied until the page get refreshed #1354

Closed
Tracked by #1368
Dinesh2019 opened this issue Mar 29, 2024 · 3 comments
Closed
Tracked by #1368

Rule is not applied until the page get refreshed #1354

Dinesh2019 opened this issue Mar 29, 2024 · 3 comments
Assignees

Comments

@Dinesh2019
Copy link

Dinesh2019 commented Mar 29, 2024

Issue:

Details: When a rule C depends on B, and rule B depends on A, form element for C doesn't get updated, when A is updated. Only form element corresponding to B rule gets updated.

env : prod
org : apfodishauat
user : dineshg@apfodishauat

Steps to reproduce :

1.Login to the app
2.Register the individual
3.Try to enrol in the pregnancy program
4. we have the logic if the birth order count is 1 then we will not display the question birth spacing

Expected result : it should not display the question

Reference video :
https://github.com/avniproject/avni-client/assets/127730126/8049294d-6db4-4e6d-9af3-e3554b8d6617

Analysis:

This is because we do only one refresh on going to a page. Here the form element rules are such that, the spacing value needs to be set based on value set on birth order which is set by refresh on going to the page

AC:

Add documentation (in writing rules doc) that transitive dependency of rules doesn't work and rules need to be written accordingly..

old:

AC:

Form element rules for lower form elements need to execute on values of form element at higher level set during the same rules execution

Old: ignore

Add documentation to how rules need to be written. No fix needed.

@adamsanadi6
Copy link
Contributor

When performing an action on the first page (default questions), the page (rules of other page elements) is not getting refreshed.

For reference:
Env: prod
Org: cini_uat
Form: School Teacher Registration

My.Movie.mp4

@mahalakshme mahalakshme moved this from Triaged to In Analysis in Avni Product May 10, 2024
@mahalakshme
Copy link
Contributor

mahalakshme commented May 10, 2024

@adamsanadi6 found your comment to be a different issue, so moved it to separate card: #1398

@mahalakshme mahalakshme moved this from In Analysis to In Analysis Review in Avni Product May 30, 2024
@mahalakshme mahalakshme moved this from In Analysis Review to In Analysis in Avni Product May 30, 2024
@mahalakshme mahalakshme moved this from In Analysis to In Analysis Review in Avni Product Aug 5, 2024
@mahalakshme mahalakshme removed the bug label Aug 8, 2024
@mahalakshme mahalakshme moved this from Analysis Complete to In Analysis Review in Avni Product Aug 23, 2024
@1t5j0y 1t5j0y self-assigned this Sep 3, 2024
@1t5j0y 1t5j0y moved this from Ready to In Progress in Avni Product Sep 3, 2024
@1t5j0y
Copy link
Contributor

1t5j0y commented Sep 3, 2024

@1t5j0y 1t5j0y moved this from In Progress to Code Review Ready in Avni Product Sep 3, 2024
@petmongrels petmongrels moved this from In Code Review to QA Ready in Avni Product Sep 4, 2024
@petmongrels petmongrels moved this from QA Ready to Done in Avni Product Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

5 participants