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

Rules and corner secnario is not behave as expected #1286

Closed
Dinesh2019 opened this issue Jul 17, 2024 · 2 comments
Closed

Rules and corner secnario is not behave as expected #1286

Dinesh2019 opened this issue Jul 17, 2024 · 2 comments

Comments

@Dinesh2019
Copy link

Dinesh2019 commented Jul 17, 2024

The rule applied in the web app, date functionality, and corner cases does not behave as expected

env: prod
org: adjnpctuat
user: dinesh@adjnpctuat

Note: the customer is doing the backfilling data and they have asked if we should not schedule any visit if the scheduled date .register and enrollment date > 31/Aug/2024

  1. Steps to reproduce: (scenario if the age is 10 )

  2. Login to the app

  3. Register the individual with the age of 10

  4. once we have saved the individual the enroll option should be displayed

expected result: The enrollment option should be displayed
Actual result: enrollment option is hidden

Reference video :

My.Movie.mp4
  1. Steps to reproduce: (edit enrollment )

  2. Login to the app

  3. Register the individual with the date as 31 /Aug/2024

  4. enroll on 01/Sep/2024 and the visit will be scheduled on the same date

  5. edit the enrollment to 31/Aug/2024

Expected result: visit should be scheduled
Actual result: The visit is getting scheduled with the backfilling date

Reference video :

My.Movie.mp4

Analysis:

  • Seems similar to this issue fixed in client.
@github-project-automation github-project-automation bot moved this to New Issues in Avni Product Jul 17, 2024
@mahalakshme mahalakshme moved this from New Issues to In Analysis Review in Avni Product Jul 17, 2024
@mahalakshme mahalakshme moved this from In Analysis Review to In Analysis in Avni Product Jul 17, 2024
@mahalakshme
Copy link
Contributor

mahalakshme commented Jul 18, 2024

@Dinesh2019

1st issue:

The issue is because sync attributes in form elements currently not supported in DEA. @nupoorkhandelwal mentioned we can disable this validation for DEA since it is not relevant here. So no need fix from product side. The rule can be changed by the implementation team. So moving it to the comments section:

  1. Steps to reproduce :
    1. Login to the app
    2. Register the individual
    3. if the gender is selected as per the sync on the first page of the registration
    4. On the second page the gender should be automatically selected

Expected result: Auto-pick the gender
Actual: gender is not picked

Refrences video :

My.Movie.mp4

2nd issue:

Not reproducible. Someone might have changed the rule, which could have fixed the issue. Not a product bug.

3rd issue:

Doing moment('2024-08-31').startOf('day'); in visit schedule rule of the program enrolment may fix the issue. The same is happening in mobile app also. So not a product bug.

@mahalakshme mahalakshme moved this from In Analysis to Done in Avni Product Jul 18, 2024
@mahalakshme
Copy link
Contributor

mahalakshme commented Jul 18, 2024

Just commenting here for later reference: Another issue raised: 'Child Followup' again getting scheduled on editing enrolment.

  • Root cause: encounters of enrolment not accessible in DEA
  • Solution: Issue might not occur when entering backdated entries(for the needed usecase) since the enrolment date will anyways be before the upload date. So encounter will never be scheduled. Dinesh will confirm the same with Anjali.

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

3 participants