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

BugSnag Error (Avni Client) while loading report cards on CustomDashboard with address filter #1248

Closed
himeshr opened this issue Dec 25, 2023 · 3 comments
Assignees

Comments

@himeshr
Copy link
Contributor

himeshr commented Dec 25, 2023

BugSnag Error
BugSnag Error (Avni Client) while loading report cards on CustomDashboard with address filter

https://links.bugsnag.com/ls/click?upn=BIY5nkUQr0HlxeaZ2i147ec0ZxpJpJ2lmwvEwdDBCQaYWw6ymiiUA9sSthx6wK257Urw8y16QPsC-2B4EDQVqFYsRpfTYxx2b-2B54xNxld-2BJ93cc5KMcKwCPdOKzAC-2BKfdqxmOU3ybHEwOEEKLbVY7H5ZVdUGxEgRbPPALXc8bpbsnNISWD1O-2FQgYrqyHunMnBkeGOKASZAgzCClnt-2BUp6H1B09j05rKSHu20WTQ6knDN8-3Do8vI_9kmRYq0p82NqR5-2FDmsc4L62tARcgDCO3iqpRUBaxJ8DFS1fGdlF-2B3XbRYIJewdNJYo74xcddHXXH3wQGFimWY2fJHAYGfidEA0YT1QQtfT205iiiaqgDRB5XbCKm3TUEiWJbFBdPEpyBRu7z-2Bvc9w1tnQmBv2yvSDpOzc-2BPoPOv-2Ff4txopvBsKrBYZ3lsIcV3Vcel6vXNbV0X5vKeK21NnA49AgznslOC8EmFou6tEA-3D

Management of BugSnag error and BugSnag
https://avni.readme.io/docs/how-to-use-bugsnag

Stacktrace

TypeError Fatal error: Cannot read property 'map' of undefined 
    /home/circleci/avni-client/packages/openchs-android/src/service/query/RealmQueryService.js:19:45 filterBasedOnAddress
    /home/circleci/avni-client/packages/openchs-android/src/service/IndividualService.js:202:94 allScheduledVisitsIn
    /home/circleci/avni-client/packages/openchs-android/src/service/customDashboard/ReportCardService.js:84:126 getResultForDefaultCardsType
    /home/circleci/avni-client/packages/openchs-android/src/service/customDashboard/ReportCardService.js:91:59 getCountForDefaultCardsType
    /home/circleci/avni-client/packages/openchs-android/src/service/customDashboard/ReportCardService.js:120:78 getReportCardCount
    /home/circleci/avni-client/packages/openchs-android/src/action/customDashboard/CustomDashboardActions.js:114:137 anonymous
    /home/circleci/avni-client/packages/openchs-android/node_modules/openchs-models/dist/framework/RealmResultsProxy.js:75:21 anonymous
    native forEach
    native apply
    /home/circleci/avni-client/packages/openchs-android/node_modules/realm/lib/collection-methods.js:59:38 methodName
    /home/circleci/avni-client/packages/openchs-android/node_modules/openchs-models/dist/framework/RealmResultsProxy.js:74:39 forEach
    /home/circleci/avni-client/packages/openchs-android/src/action/customDashboard/CustomDashboardActions.js:112:42 refreshCount
    /home/circleci/avni-client/packages/openchs-android/src/reducer/Reducer.js:22:59 anonymous
    /home/circleci/avni-client/packages/openchs-android/node_modules/redux/lib/redux.js:567:37 combination
    /home/circleci/avni-client/packages/openchs-android/node_modules/redux/lib/redux.js:296:36 dispatch
    /home/circleci/avni-client/packages/openchs-android/src/framework/view/AbstractComponent.js:56:63 dispatchAction
    /home/circleci/avni-client/packages/openchs-android/src/views/customDashboard/CustomDashboardView.js:85:52 anonymous
    native apply
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:213:22 anonymous
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:111:14 _callTimer
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:359:16 callTimers
    native apply
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:428:31 __callFunction
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:113:25 anonymous
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:368:10 __guard
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:112:16 callFunctionReturnFlushedQueue

Second stack trace

TypeError Fatal error: Cannot read property 'map' of undefined 
    /home/circleci/avni-client/packages/openchs-android/src/service/query/RealmQueryService.js:19:45 filterBasedOnAddress
    /home/circleci/avni-client/packages/openchs-android/src/service/IndividualService.js:202:94 allScheduledVisitsIn
    /home/circleci/avni-client/packages/openchs-android/src/service/customDashboard/ReportCardService.js:84:126 getResultForDefaultCardsType
    /home/circleci/avni-client/packages/openchs-android/src/service/customDashboard/ReportCardService.js:91:59 getCountForDefaultCardsType
    /home/circleci/avni-client/packages/openchs-android/src/service/customDashboard/ReportCardService.js:120:78 getReportCardCount
    /home/circleci/avni-client/packages/openchs-android/src/action/customDashboard/CustomDashboardActions.js:114:137 anonymous
    /home/circleci/avni-client/packages/openchs-android/node_modules/openchs-models/dist/framework/RealmResultsProxy.js:75:21 anonymous
    native forEach
    native apply
    /home/circleci/avni-client/packages/openchs-android/node_modules/realm/lib/collection-methods.js:59:38 methodName
    /home/circleci/avni-client/packages/openchs-android/node_modules/openchs-models/dist/framework/RealmResultsProxy.js:74:39 forEach
    /home/circleci/avni-client/packages/openchs-android/src/action/customDashboard/CustomDashboardActions.js:112:42 refreshCount
    /home/circleci/avni-client/packages/openchs-android/src/reducer/Reducer.js:22:59 anonymous
    /home/circleci/avni-client/packages/openchs-android/node_modules/redux/lib/redux.js:567:37 combination
    /home/circleci/avni-client/packages/openchs-android/node_modules/redux/lib/redux.js:296:36 dispatch
    /home/circleci/avni-client/packages/openchs-android/src/framework/view/AbstractComponent.js:56:63 dispatchAction
    /home/circleci/avni-client/packages/openchs-android/src/views/customDashboard/CustomDashboardView.js:85:52 anonymous
    native apply
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:213:22 anonymous
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:111:14 _callTimer
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:359:16 callTimers
    native apply
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:428:31 __callFunction
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:113:25 anonymous
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:368:10 __guard
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:112:16 callFunctionReturnFlushedQueue
@himeshr himeshr moved this to New Issues in Avni Product Dec 25, 2023
@himeshr himeshr added the bug label Dec 25, 2023
@mahalakshme mahalakshme moved this from New Issues to Ready in Avni Product Dec 25, 2023
@petmongrels petmongrels moved this from Ready to In Progress in Avni Product Dec 25, 2023
@petmongrels petmongrels self-assigned this Dec 25, 2023
@petmongrels
Copy link
Contributor

Could not reproduce this exact stack trace, but a similar scenario.
Choose location, apply filter.
Unselect above location and apply filter again.

@petmongrels petmongrels moved this from In Progress to Code Review Ready in Avni Product Dec 25, 2023
@AchalaBelokar
Copy link

AchalaBelokar commented Dec 25, 2023

  • filter with parent location and all its child location
  • I select location and deselecting the location still there is showing the blue indicator for location is showing..
az_recorder_20231225_141454.mp4
  • select only parent location

@himeshr himeshr moved this from Code Review Ready to In Code Review in Avni Product Dec 25, 2023
@himeshr himeshr moved this from In Code Review to QA Ready in Avni Product Dec 25, 2023
@petmongrels
Copy link
Contributor

@AchalaBelokar I have created a separate card for point 2

@AchalaBelokar AchalaBelokar moved this from QA Ready to In QA in Avni Product Dec 25, 2023
@AchalaBelokar AchalaBelokar moved this from In QA to Done in Avni Product Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

5 participants