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

[HOLD for payment 2023-12-28] [HOLD for payment 2023-12-26] Expense - App crashes when saving expense date twice in offline mode #33098

Closed
6 tasks done
lanitochka17 opened this issue Dec 14, 2023 · 29 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented Dec 14, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.13.0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Issue found when executing PR #30737

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go offline
  3. Navigate to the created expense details page
  4. Click on the date
  5. Change it once
  6. Click on the date
  7. Change it for the second time

Expected Result:

App does not crash

Actual Result:

App crashes

Workaround:

Unknown

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

Add any screenshot/video evidence

Bug6313351_1702573939733.bandicam_2023-12-15_00-35-49-447.mp4

logs.txt

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @Christinadobrzyn
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Dec 14, 2023
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Dec 14, 2023

Triggered auto assignment to @bondydaa (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@abzokhattab
Copy link
Contributor

Please re-state the problem that we are trying to solve in this issue.

Fields are blank and when changing money request date

What is the root cause of that problem?

when changing the money request date we set onlyIncludeChangedFields param as true here That is why it only returns the changed
param as the money transaction

What changes do you think we should make in order to solve the problem?

we should set it to false in order not to affect other fields

@bondydaa
Copy link
Contributor

interesting, i guess i don't see how that is causing the crash only on the 2nd time it's called though.

cc @tgolen I see your name in that blame for updateMoneyRequestDate and getUpdateMoneyRequestParams any tips here for how to proceed?

Looks like this PR might be the root cause? #30737

@paultsimura
Copy link
Contributor

Here is an issue with the same RC, which was created earlier: #33103
We hope to have a more fundamental discussion with Tim there 🙂

Copy link

melvin-bot bot commented Dec 15, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@situchan
Copy link
Contributor

I think we should revert #31340 (SET > MERGE) and find proper solution to fix #30290. That can be handled in #32511.

@bondydaa
Copy link
Contributor

@situchan should we do anything for this GH then? Or should it be fixed by something on those PRs you've linked?

@situchan
Copy link
Contributor

We should fix "crash" here. App is useless once user faced crash by updating date 2 times in offline mode.
Do you agree with my suggestion?
This will generate #30290 but that should not block deploy. Better than crash

@bondydaa
Copy link
Contributor

It's very unclear to me what we should do.

Sounds like on #33103, #31340 is also discussed that added onyx.set

image

but not clear to me what the plan is there. Revert, CP fix to change .set to .merge 🤷

If we're going to revert #31340 then I think it would fix both this and #33103

@situchan
Copy link
Contributor

If we're going to revert #31340 then I think it would fix both this and #33103

yes, correct. but the only concern is that it re-generates this bug due to revert

@paultsimura
Copy link
Contributor

@situchan #31340 has just been waiting for your decision on causing a regression of #32511 as well🙂

As I described here and in the discussion of the selected proposal, using SET was a very risky decision.

If we are going to revert SET back to MERGE, I would like to ask for checking my proposal to the original issue first, and then continue in #32511.

@situchan
Copy link
Contributor

@situchan #31340 has just been waiting for your decision on causing a regression of #32511 as well🙂

As I described here and in the discussion of the selected proposal, using SET was a very risky decision.

If we are going to revert SET back to MERGE, I would like to ask for checking my proposal to the original issue first, and then continue in #32511.

Sure, it's in my next TODO. For now, focusing on this deploy blocker as requested by @trjExpensify (please assign me here as this is same as #33099 🙂)

@bondydaa
Copy link
Contributor

took this to slack to discuss https://expensify.slack.com/archives/C01GTK53T8Q/p1702656464396679

@bondydaa
Copy link
Contributor

okay assigning @paultsimura to spin up the revert PR of #31340.

@situchan throwing you on as the c+ then.

@jasperhuangg jasperhuangg removed the DeployBlockerCash This issue or pull request should block deployment label Dec 19, 2023
@jasperhuangg
Copy link
Contributor

Removing Deploy Blocker label since we CP'd a revert for this

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Dec 19, 2023
@melvin-bot melvin-bot bot changed the title Expense - App crashes when saving expense date twice in offline mode [HOLD for payment 2023-12-26] Expense - App crashes when saving expense date twice in offline mode Dec 19, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 19, 2023
Copy link

melvin-bot bot commented Dec 19, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Dec 19, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.13-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-12-26. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

  • @paultsimura requires payment (Needs manual offer from BZ)
  • @situchan requires payment (Needs manual offer from BZ)

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Dec 21, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-12-26] Expense - App crashes when saving expense date twice in offline mode [HOLD for payment 2023-12-28] [HOLD for payment 2023-12-26] Expense - App crashes when saving expense date twice in offline mode Dec 21, 2023
Copy link

melvin-bot bot commented Dec 21, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.14-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-12-28. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

  • @paultsimura requires payment (Needs manual offer from BZ)
  • @situchan requires payment (Needs manual offer from BZ)

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Dec 25, 2023
Copy link

melvin-bot bot commented Dec 28, 2023

@bondydaa, @paultsimura, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Jan 1, 2024

@bondydaa, @paultsimura, @situchan 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

Copy link

melvin-bot bot commented Jan 1, 2024

@bondydaa, @paultsimura, @situchan Still overdue 6 days?! Let's take care of this!

@bondydaa bondydaa added the Bug Something is broken. Auto assigns a BugZero manager. label Jan 3, 2024
Copy link

melvin-bot bot commented Jan 3, 2024

Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot removed the Overdue label Jan 3, 2024

This comment was marked as off-topic.

@bondydaa
Copy link
Contributor

bondydaa commented Jan 3, 2024

@Christinadobrzyn can you handle payment please?

@paultsimura wrote the PR #33174 and @situchan was c+.

Copy link

melvin-bot bot commented Jan 3, 2024

@bondydaa, @paultsimura, @situchan 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Jan 3, 2024

So sorry for the delay here!

Payouts due:

Issue Reporter: NA
Contributor: $500 @paultsimura (paid in Upwork)
Contributor+: $500 @situchan (paid in Upwork)

Eligible for 50% #urgency bonus? N

Upwork job is here. @paultsimura and @situchan can you accept the offer so I can pay you?

Do we need a regression test for this?

@situchan
Copy link
Contributor

situchan commented Jan 3, 2024

We already have regression test as bug was caught during staging QA

@Christinadobrzyn
Copy link
Contributor

Awesome! I've paid out this job based on this payment summary - #33098 (comment)

I think we can close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

7 participants