Skip to content

[HOLD for payment 2024-12-20] [$250] mWeb - Submit expense- "Hmm it's not here" message gets visible when deleting vague distance Expense #50022

Closed

Description

@IuliiaHerets

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: 9.0.41-10
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): testpayment935+222@gmail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go Offline
  2. Global Create > Submit expense
  3. Select Distance option
  4. Disable the internet connection
  5. Enter a vague start location, random characters
  6. Enter a vague finish location, random characters
  7. Finish the submit creation flow
  8. Enable the internet connection
  9. Click on the close icon of error message displayed

Expected Result:

Delete the vague distance expense without problem

Actual Result:

"Hmm it's not here" message gets visible for a second before deleting the expense

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6621450_1727809746483.Mweb_Hmm_page_before_deleting_vague_location_distance_expense.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021847129435512475314
  • Upwork Job ID: 1847129435512475314
  • Last Price Increase: 2024-10-25
  • Automatic offers:
    • rayane-djouah | Reviewer | 104681071
    • truph01 | Contributor | 104681072
Issue OwnerCurrent Issue Owner: @alexpensify

Activity

  1. added
    Daily
    Bug
    on Oct 1, 2024
  2. melvin-bot commented on Oct 1, 2024

    @melvin-bot

    Triggered auto assignment to @alexpensify (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.

  3. IuliiaHerets commented on Oct 1, 2024

    @IuliiaHerets
    Author

    @alexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

  4. truph01 commented on Oct 2, 2024

    @truph01
    Contributor

    Edited by proposal-police: This proposal was edited at 2024-10-18 04:23:47 UTC.

    Proposal

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

    "Hmm it's not here" message gets visible for a second before deleting the expense

    What is the root cause of that problem?

    • We clear the report data and go back in:

    const urlToNavigateBack = IOU.cleanUpMoneyRequest(transaction?.transactionID ?? linkedTransactionID, parentReportAction, true);
    Navigation.goBack(urlToNavigateBack);

    • When the go-back action is not finished, and the onyx data is updated successfully, the "Hmm its not here" screen is displayed for a while.

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

    • Remove the code:

    wasReportAccessibleRef.current = false;

    will fix the issue because if the report is visited before, there is no not here page is displayed anymore.

    What alternative solutions did you explore? (Optional)

    • We should go back successfully and then clear the report data.

    • We can do it by:

    const urlToNavigateBack = IOU.cleanUpMoneyRequest(transaction?.transactionID ?? linkedTransactionID, parentReportAction, true);
    Navigation.goBack(urlToNavigateBack);

                                const {urlToNavigateBack} = IOU.prepareToCleanUpMoneyRequest(transaction?.transactionID ?? linkedTransactionID, parentReportAction, true);
                                Navigation.goBack(urlToNavigateBack);
                                InteractionManager.runAfterInteractions(() => {
                                    IOU.cleanUpMoneyRequest(transaction?.transactionID ?? linkedTransactionID, parentReportAction, true);
                                });
    
  5. alexpensify commented on Oct 4, 2024

    @alexpensify
    Contributor

    Adding this one to my test list and will get to it later this week.

  6. alexpensify commented on Oct 7, 2024

    @alexpensify
    Contributor

    No update yet

  7. melvin-bot commented on Oct 11, 2024

    @melvin-bot

    @alexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

  8. alexpensify commented on Oct 11, 2024

    @alexpensify
    Contributor

    Still on my testing list

  9. 48 remaining items

  10. changed the title [-][$250] mWeb - Submit expense- "Hmm it's not here" message gets visible when deleting vague distance Expense[/-] [+][HOLD for payment 2024-12-20] [$250] mWeb - Submit expense- "Hmm it's not here" message gets visible when deleting vague distance Expense[/+] on Dec 13, 2024
  11. melvin-bot commented on Dec 13, 2024

    @melvin-bot

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

  12. removed
    Reviewing
    on Dec 13, 2024
  13. melvin-bot commented on Dec 13, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.75-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 2024-12-20. 🎊

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

  14. melvin-bot commented on Dec 13, 2024

    @melvin-bot

    @rayane-djouah @alexpensify @rayane-djouah The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  15. rayane-d commented on Dec 13, 2024

    @rayane-d
    Contributor

    BugZero Checklist:

    • Classify the bug:

      Bug classification

      Source of bug:

      • 1a. Result of the original design (eg. a case wasn't considered)
      • 1b. Mistake during implementation
      • 1c. Backend bug
      • 1z. Other:

      Where bug was reported:

      • 2a. Reported on production
      • 2b. Reported on staging (deploy blocker)
      • 2c. Reported on a PR
      • 2z. Other:

      Who reported the bug:

      • 3a. Expensify user
      • 3b. Expensify employee
      • 3c. Contributor
      • 3d. QA
      • 3z. Other:
    • The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment: https://github.com/Expensify/App/pull/44142/files#r1884443881

    • If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion: N/A

    • If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    • [@alexpensify] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue:

    Regression Test Proposal

    #### Precondition:
    
    - Account has a workspace
    
    #### Test:
    
    1. Click on Global Create > 'Submit Expense'.
    2. Select the 'Distance' option.
    3. Disable the internet connection.
    4. Enter a vague start location using random characters.
    5. Enter a vague end location using random characters.
    6. Complete the expense submission flow.
    7. Enable the internet connection.
    8. Open the distance expense report.
    9. Click on the close icon of the displayed error message.
    10. Verify that the app navigates back to the workspace IOU report without displaying any intermediate screens such as a loading screen or a "Hmm it's not here".
    11. Verify that the vague distance expense is deleted.
    
    

    Do we agree 👍 or 👎

  16. added
    Daily
    and removed
    Weekly
    on Dec 20, 2024
  17. alexpensify commented on Dec 20, 2024

    @alexpensify
    Contributor

    Contributor: @truph01 $250 via Upwork
    Contributor+: @rayane-djouah $250 via Upwork


    Everyone has been paid. I'll work on the test next week.

  18. added
    Reviewing
    Weekly
    and removed
    Daily
    on Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugExternalReviewingWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions