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 #31411 - $500] Can't edit distance request right after creating it #35280

Closed
1 of 6 tasks
kavimuru opened this issue Jan 27, 2024 · 18 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. 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 Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Jan 27, 2024

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.32-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @aldo-expensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1706234965300829

Action Performed:

  1. Create free workspace
  2. Create distance request in expense chat
  3. Click the report preview to go to the expense report's chat
  4. Click the transaction preview to get to the transaction's chat
  5. Click the field Distance to edit it
  6. Try to change the first waypoint

Expected Result:

Able to edit the waypoint

Actual Result:

Modal with Hmm... it's not here error shows up

Workaround:

Refresh the page so the report data reloads before trying to edit the distance request fields.

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

Recording.1720.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01018916e036504443
  • Upwork Job ID: 1751147227689152512
  • Last Price Increase: 2024-01-27
@kavimuru kavimuru added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 27, 2024
@melvin-bot melvin-bot bot changed the title Can't edit distance request right after creating it [$500] Can't edit distance request right after creating it Jan 27, 2024
Copy link

melvin-bot bot commented Jan 27, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01018916e036504443

Copy link

melvin-bot bot commented Jan 27, 2024

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

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

melvin-bot bot commented Jan 27, 2024

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

@dukenv0307
Copy link
Contributor

dukenv0307 commented Jan 27, 2024

Proposal

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

Modal with Hmm... it's not here error shows up

What is the root cause of that problem?

When we request money, we don't generate the transactionThreadReportID optimistically and send to back-end. So when we access the money request before the back-end API returns, it will access an invalid report (we can also see that the composer disappears in the money request after a moment). When we access the distance edit page of that invalid report, it will show not found page due to these lines.

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

When requesting money (all types like manual, scan, distance, ...), generate the transactionThreadReportID (aka the childReportID of the created report action) optimistically and send to back-end. And the back-end should use that as the final transactionThreadReportID, just like how we optimistically generate other things like transactionID, reportActionID, ...)

And we should use that optimistically generated transactionThreadReportID (aka the childReportID of the created report action) in relevant operations like when opening the money request.

What alternative solutions did you explore? (Optional)

NA

@paultsimura
Copy link
Contributor

This should be fixed after #31411, where we will send the transactionThreadReportID in the money-related API requests.

@s77rt
Copy link
Contributor

s77rt commented Jan 28, 2024

@peterdbarkerUK Let's hold on #31411

Copy link

melvin-bot bot commented Jan 29, 2024

⚠️ 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.

@melvin-bot melvin-bot bot added the Overdue label Jan 30, 2024
@peterdbarkerUK peterdbarkerUK changed the title [$500] Can't edit distance request right after creating it [HOLD for #31411 - $500] Can't edit distance request right after creating it Jan 31, 2024
@peterdbarkerUK
Copy link
Contributor

On hold for #31411

@melvin-bot melvin-bot bot removed the Overdue label Jan 31, 2024
@kadiealexander kadiealexander added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Feb 1, 2024
Copy link

melvin-bot bot commented Feb 1, 2024

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

@s77rt
Copy link
Contributor

s77rt commented Feb 5, 2024

Still on hold

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 5, 2024
@s77rt
Copy link
Contributor

s77rt commented Feb 7, 2024

Same ^

@melvin-bot melvin-bot bot removed the Overdue label Feb 7, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 12, 2024
@s77rt
Copy link
Contributor

s77rt commented Feb 12, 2024

Still on hold

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 12, 2024
@strepanier03
Copy link
Contributor

Still on hold.

@melvin-bot melvin-bot bot removed the Overdue label Feb 16, 2024
@strepanier03 strepanier03 added Weekly KSv2 and removed Daily KSv2 labels Feb 16, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 26, 2024
@s77rt
Copy link
Contributor

s77rt commented Feb 26, 2024

Same ^

@melvin-bot melvin-bot bot removed the Overdue label Feb 26, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 5, 2024
@strepanier03
Copy link
Contributor

Hold GH is still open.

@melvin-bot melvin-bot bot removed the Overdue label Mar 6, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 14, 2024
@s77rt
Copy link
Contributor

s77rt commented Mar 14, 2024

#31411 is resolved. Just tested and the issue seems fixed. This can be closed.

@melvin-bot melvin-bot bot removed the Overdue label Mar 14, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 25, 2024
@s77rt
Copy link
Contributor

s77rt commented Mar 25, 2024

@strepanier03 We can close this one

@melvin-bot melvin-bot bot removed the Overdue label Mar 25, 2024
@strepanier03
Copy link
Contributor

Got it, thanks @s77rt - closing now.

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. 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 Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants