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

Distance - App redirects to expense report when returning online after editing distance offline #33622

Closed
3 of 6 tasks
lanitochka17 opened this issue Dec 26, 2023 · 21 comments
Closed
3 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Dec 26, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.17-1
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 #33266

Action Performed:

Precondition: There are three addresses saved in Recent destinations

  1. Create a distance request with address A and B as Start and Finish points respectively
  2. Navigate to the details page of the distance request
  3. Go offline
  4. Click Distance > Add stop > Add address C > Save it
  5. Click Distance > Address C (Finish point) > Edit it so that Finish point becomes address A too
  6. Save the edit
  7. Go online

Expected Result:

App will stay in distance request details page

Actual Result:

App redirects to expense report automatically

Workaround:

Unknown

Platforms:

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

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6326377_1703618482455.bandicam_2023-12-26_23-57-29-307.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @bfitzexpensify
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Dec 26, 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 26, 2023

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

@tgolen
Copy link
Contributor

tgolen commented Dec 26, 2023

I'll start investigating. It's possible it was caused by #33266 but I want to verify that.

@mountiny
Copy link
Contributor

@neil-marcellini @allroundexperts @dukenv0307 This is linked to PR you have been involved in, it does seem though that this is already in production if I am not mistaken and given its edge case I would vote this is not a blocker. @tgolen let me know what you think?

@tgolen
Copy link
Contributor

tgolen commented Dec 26, 2023

I reverted the changes from #33266 locally, and I had trouble reproducing the issue because there is a bug that the PR fixes where you can't save the request in offline mode (clicking the save button does nothing). So, I'm not so sure that PR caused the redirect issue.

I do agree with @mountiny that the redirect issue reported here is not bad enough to be a deploy blocker. Everything works, it's just you end up in a slightly different place and it's easy to go back to the details.

I'm removing the deploy blocker label and I think we should consider opening this bug up to contributors to find the cause of it.

@tgolen tgolen added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Dec 26, 2023
Copy link

melvin-bot bot commented Dec 26, 2023

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

Copy link

melvin-bot bot commented Dec 26, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@paultsimura
Copy link
Contributor

I believe this is the same issue as with the scan receipts flow: the transactionThreadReportID in the API response (in our case – CreateDistanceRequest) comes different from the one created optimistically. So when we come back online, and the CreateDistanceRequest API Response arrives, the opened expense details report no longer exists.

It should be fixed with #31411 (we are holding #32552 for the same reason).

@bfitzexpensify bfitzexpensify changed the title Distance - App redirects to expense report when returning online after editing distance offline [HOLD #31411 ] Distance - App redirects to expense report when returning online after editing distance offline Dec 27, 2023
@bfitzexpensify
Copy link
Contributor

Thanks @paultsimura. Subscribed to #31411, will re-test this once that's done.

@bfitzexpensify bfitzexpensify added Weekly KSv2 and removed Daily KSv2 labels Dec 27, 2023
@melvin-bot melvin-bot bot added the Overdue label Jan 5, 2024
@tgolen
Copy link
Contributor

tgolen commented Jan 8, 2024

This is still on hold since #31411 is not done.

@melvin-bot melvin-bot bot removed the Overdue label Jan 8, 2024
@melvin-bot melvin-bot bot added the Overdue label Jan 16, 2024
@tgolen
Copy link
Contributor

tgolen commented Jan 17, 2024

Still on hold

@melvin-bot melvin-bot bot removed the Overdue label Jan 17, 2024
@melvin-bot melvin-bot bot added the Overdue label Jan 29, 2024
@tgolen
Copy link
Contributor

tgolen commented Jan 29, 2024

Still on hold

@melvin-bot melvin-bot bot removed the Overdue label Jan 29, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 6, 2024
@bfitzexpensify
Copy link
Contributor

Still on hold for #31411 - looks like the PR is in the final review stretch

@melvin-bot melvin-bot bot removed the Overdue label Feb 7, 2024
@bfitzexpensify
Copy link
Contributor

Same status - the PR we're waiting on has had all comments resolved in the last 24 hours, so we're close to being able to retest here.

@bfitzexpensify
Copy link
Contributor

Still waiting on #31411

@melvin-bot melvin-bot bot added the Overdue label Feb 29, 2024
@bfitzexpensify bfitzexpensify added the retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause label Mar 5, 2024
@bfitzexpensify
Copy link
Contributor

bfitzexpensify commented Mar 5, 2024

Asked in Slack for this to be retested now that the held issue is complete

@melvin-bot melvin-bot bot removed the Overdue label Mar 5, 2024
@paultsimura
Copy link
Contributor

@bfitzexpensify we might want to hold for #33114 as well — it fills the gaps the first PR missed

@bfitzexpensify bfitzexpensify changed the title [HOLD #31411 ] Distance - App redirects to expense report when returning online after editing distance offline [HOLD #33114] Distance - App redirects to expense report when returning online after editing distance offline Mar 5, 2024
@bfitzexpensify
Copy link
Contributor

Thanks for the heads-up @paultsimura, I'll get QA to pause on the retesting for the moment then.

@bfitzexpensify bfitzexpensify removed the retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause label Mar 5, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 13, 2024
@bfitzexpensify bfitzexpensify changed the title [HOLD #33114] Distance - App redirects to expense report when returning online after editing distance offline Distance - App redirects to expense report when returning online after editing distance offline Mar 15, 2024
@bfitzexpensify
Copy link
Contributor

#33114 is live - getting QA to retest this.

@melvin-bot melvin-bot bot removed the Overdue label Mar 15, 2024
@bfitzexpensify bfitzexpensify added Overdue retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause labels Mar 15, 2024
@kavimuru
Copy link

@bfitzexpensify Issue is not reproducible by the tester.

20240315_221608.mp4

@bfitzexpensify
Copy link
Contributor

Great! Let's close this one out then.

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. Engineering retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants