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

Handle voided question group form elements when rendering the form #1413

Closed
Tracked by #1615
Dinesh2019 opened this issue May 28, 2024 · 3 comments
Closed
Tracked by #1615

Handle voided question group form elements when rendering the form #1413

Dinesh2019 opened this issue May 28, 2024 · 3 comments
Assignees

Comments

@Dinesh2019
Copy link

Dinesh2019 commented May 28, 2024

Describe the bug
The app crashes when I am trying to complete the encounter of ANC.

env : staging
org : APF
user : maha@APF
version : 8.1
Issue not happening on prerelease

Note : Uploaded the database

Steps to reproduce :
1.Login to the app
2.Register the individual as gender female
3.Enroll in the pregnancy
4.Try to complete the ANC

Expected result : it should save the encounter
Actual result : App is getting crashed

Image reference :
Screenshot 2024-05-28 at 3 49 32 PM

Video reference :

My.Movie.mp4

AC:

  • Issue was identified to be voided question group form elements not being ignored while running form element group rule. So ignore them to fix this.
  • Fix it on DEA as well if not handled
@Dinesh2019 Dinesh2019 added the bug label May 28, 2024
@github-project-automation github-project-automation bot moved this to New Issues in Avni Product May 28, 2024
@mahalakshme mahalakshme moved this from New Issues to Ready in Avni Product May 28, 2024
@mahalakshme mahalakshme moved this from Ready to In Analysis in Avni Product May 28, 2024
@mahalakshme mahalakshme moved this from In Analysis to In Analysis Review in Avni Product May 28, 2024
@mahalakshme mahalakshme removed the bug label May 28, 2024
@mahalakshme mahalakshme moved this from In Analysis Review to Ready in Avni Product May 28, 2024
@1t5j0y
Copy link
Contributor

1t5j0y commented May 28, 2024

Issue is due to voided question group form elements not being ignored while running form element group rule.

@mahalakshme mahalakshme moved this from Ready to In Analysis in Avni Product May 29, 2024
@mahalakshme mahalakshme moved this from In Analysis to Ready in Avni Product Jul 4, 2024
@mahalakshme mahalakshme changed the title ANC encounter is not working Handle voided question group form elements when rendering the form Jul 4, 2024
@petmongrels petmongrels moved this from Ready to In Progress in Avni Product Jul 4, 2024
@petmongrels petmongrels self-assigned this Jul 4, 2024
petmongrels added a commit to avniproject/avni-models that referenced this issue Jul 4, 2024
petmongrels added a commit that referenced this issue Jul 4, 2024
@petmongrels petmongrels moved this from In Progress to QA Ready in Avni Product Jul 4, 2024
@petmongrels petmongrels moved this from QA Ready to Code Review Ready in Avni Product Jul 4, 2024
@1t5j0y 1t5j0y moved this from Code Review Ready to In Code Review in Avni Product Jul 23, 2024
@1t5j0y 1t5j0y moved this from In Code Review to QA Ready in Avni Product Jul 23, 2024
@AchalaBelokar
Copy link

  • I login with maha@APF and try to sync it is giving me this error I just deleted only one element net from individual registration ..
    undefined is not a function
    at anonymous (address at index.android.bundle:1:874716)
    at anonymous (address at index.android.bundle:1:711159)
    at forEach (address at index.android.bundle:1:725997)
    at deleteOutOfSyncDrafts (address at index.android.bundle:1:874650)
    at fromResource (address at index.android.bundle:1:874493)
    at anonymous (address at index.android.bundle:1:1581639)
    at reduce ((native)::)
    at persistAll (address at index.android.bundle:1:1588411)
    at processResponse (address at index.android.bundle:1:1592321)
    at anonymous (address at index.android.bundle:1:1592580)
    at tryCallOne (/root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1h352kp3/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16)
    at anonymous (/root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1h352kp3/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27)
    at apply ((native)::)
    at anonymous (address at index.android.bundle:1:247177)
    at _callTimer (address at index.android.bundle:1:246171)
    at _callReactNativeMicrotasksPass (address at index.android.bundle:1:246336)
    at callReactNativeMicrotasks (address at index.android.bundle:1:248258)
    at __callReactNativeMicrotasks (address at index.android.bundle:1:98297)
    at anonymous (address at index.android.bundle:1:97436)
    at __guard (address at index.android.bundle:1:98174)
    at flushedQueue (address at index.android.bundle:1:97347)
    at invokeCallbackAndReturnFlushedQueue (address at index.android.bundle:1:97290)

@AchalaBelokar AchalaBelokar moved this from QA Ready to QA Failed in Avni Product Jul 31, 2024
@petmongrels petmongrels moved this from In Progress to QA Ready in Avni Product Aug 8, 2024
@Dinesh2019 Dinesh2019 self-assigned this Aug 13, 2024
@Dinesh2019
Copy link
Author

Tested with scenario : (Mobile app and Web app )

  • added the QG and tried to save the form.
  • Remove the QG and tried to save the form.
  • Added the QG with two different question and tried to save the form.
  • Removed one question and tried to save the form.

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

6 participants