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

Sync issue #1542

Open
mahalakshme opened this issue Nov 4, 2024 · 2 comments
Open

Sync issue #1542

mahalakshme opened this issue Nov 4, 2024 · 2 comments

Comments

@mahalakshme
Copy link
Contributor

mahalakshme commented Nov 4, 2024

https://avni.freshdesk.com/a/tickets/4878

app: 10.0.3, 9.4.0
username: mubarak@hd_utthaan
env: prod

Image

Bugsnag link: https://app.bugsnag.com/samanvay-research-and-development-foundation/avni-client/errors/671f19e3b73b2f0a14a61927?i=em&m=fq&pivot_tab=user.id

@mahalakshme mahalakshme converted this from a draft issue Nov 4, 2024
@petmongrels petmongrels moved this from Ready to In Progress in Avni Product Nov 4, 2024
@petmongrels petmongrels self-assigned this Nov 4, 2024
@petmongrels
Copy link
Contributor

petmongrels commented Nov 4, 2024

dump kept in user media. it starts with Kept...

other details

  • catchment id = 22631
  • address level missing in user's device - 824343a0-0daf-47a1-98c2-95ea2b6a6c90 (modified - 10-07-2024)
  • address is present in user's catchment right now
  • issue also present in 9.4
  • fast sync dump created about 15 days ago
  • reset sync entity applicable to the user - 6c9c3f14-b99e-4385-a347-c70518d79a28 (/resetSyncs?lastModifiedDateTime=2024-10-18T14:17:42.859Z&now=2024-11-04T09:10:34.331Z&size=100&page=0)
  • individual with the said address - da100126-c9e7-46fb-ab2c-a496b0533e54

Analysis

  • fast sync dump doesn't have address
  • a reset sync is created after the dump create date
  • when the user syncs one should be asked whether to do reset sync right after dump download/restore but it is not happening

@petmongrels petmongrels removed their assignment Nov 4, 2024
@petmongrels petmongrels moved this from In Progress to Ready in Avni Product Nov 4, 2024
@petmongrels
Copy link
Contributor

Individual.initLowestAddressLevel should be changed to following otherwise it returns false instead of returning null.

static initLowestAddressLevel(lowestAddressLevel, subjectType, entityService) {
const isUserSubjectType = subjectType && subjectType.isUser();
const noAddress = _.isNil(lowestAddressLevel);
if (noAddress) {
return isUserSubjectType ? this.getPlaceholderAddressLevel(entityService) : null;
}
return lowestAddressLevel;
}

@mahalakshme mahalakshme moved this from Ready to In Analysis in Avni Product Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Analysis
Development

No branches or pull requests

2 participants