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

[$250] Address is cleared after updating legal name or date of birth #45339

Closed
6 tasks done
arosiclair opened this issue Jul 12, 2024 · 6 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@arosiclair
Copy link
Contributor

arosiclair commented Jul 12, 2024

Version Number: v9.0.6-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): N/A
Logs: N/A
Expensify/Expensify Issue URL: N/A
Issue reported by: @arosiclair
Slack conversation: N/A

Action Performed:

  1. Log into NewDot
  2. Avatar > Profile > Private
  3. Set legal name, date of birth and address
  4. Change date of birth

Expected Result:

Date of birth updates and other details are preserved

Actual Result:

Date of birth updates and the address is cleared

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Screen.Recording.2024-07-12.at.9.43.32.AM.mov

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c8064b2f7c784d15
  • Upwork Job ID: 1811761243030749173
  • Last Price Increase: 2024-07-12
Issue OwnerCurrent Issue Owner: @shubham1206agra
@arosiclair arosiclair added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 12, 2024
@arosiclair arosiclair self-assigned this Jul 12, 2024
Copy link

melvin-bot bot commented Jul 12, 2024

Triggered auto assignment to @garrettmknight (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@arosiclair
Copy link
Contributor Author

I introduced this with performance optimizations from https://github.com/Expensify/Expensify/issues/279201.

The root problem is that NewDot is expecting the address to be saved as an address object in private_personalDetails. This does not match the format in the db where we save a history of addresses in the addresses array. The most recent address is the last object in the array.

We need to update NewDot to use addresses and remove uses of address since it does not exist in the DB. So far I saw these need to be updated:

@arosiclair arosiclair added the External Added to denote the issue can be worked on by a contributor label Jul 12, 2024
@melvin-bot melvin-bot bot changed the title Address is cleared after updating legal name or date of birth [$250] Address is cleared after updating legal name or date of birth Jul 12, 2024
Copy link

melvin-bot bot commented Jul 12, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01c8064b2f7c784d15

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 12, 2024
Copy link

melvin-bot bot commented Jul 12, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (External)

@Tony-MK
Copy link
Contributor

Tony-MK commented Jul 12, 2024

@arosiclair, I believe this issue is related this #45197.

@arosiclair
Copy link
Contributor Author

Thanks I'll add a note to it. Closing this as a dupe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

4 participants