Skip to content

[HOLD for payment 2023-10-02] [$500] Web/Desktop - Request skeleton is shown grayed out instead the IOU details. #26939

Closed

Description

@izarutskaya

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


Action Performed:

  1. Navigate to a conversation with a request money.
  2. Open the IOU details
  3. Disable the internet connection on the device
  4. Click Delete the request

Expected Result:

Verify the request has been deleted and the IOU preview in conversation has been updated (the message should be still grayed out)

Actual Result:

Request skeleton is shown grayed out instead the IOU details.

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: v1.3.65-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

Notes/Photos/Videos: Any additional supporting documentation

Bug6190968_offline_delete

Bug6190968_offline_delete.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause-Internal Team

Slack conversation: @

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01bdce495f39748b20
  • Upwork Job ID: 1700202090575839232
  • Last Price Increase: 2023-09-08
  • Automatic offers:
    • 0xmiroslav | Reviewer | 26737448
    • ginsuma | Contributor | 26737449

Activity

  1. added
    Daily
    Bug
    on Sep 7, 2023
  2. melvin-bot commented on Sep 7, 2023

    @melvin-bot

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

  3. melvin-bot commented on Sep 7, 2023

    @melvin-bot

    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
  4. ginsuma commented on Sep 7, 2023

    @ginsuma
    Contributor

    Proposal

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

    Request skeleton is shown grayed out instead the IOU details.

    What is the root cause of that problem?

    When we delete a money request, its transaction becomes empty, and then MoneyRequestSkeletonView shows.

    {_.isEmpty(props.transaction) ? (
    <MoneyRequestSkeletonView />
    ) : (

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

    We should add pendingAction={props.action.pendingAction} to OfflineWithFeedback here, and change the condition above to _.isEmpty(props.transaction) && !props.action.pendingAction.

    The result is as below:
    Screen Shot 2023-09-07 at 6 49 37 PM
    The amount becomes "$0.00", and the receipt image is lost because they need transaction data. I don't know if this is intentional.
    If not, we can add previousTransaction to the optimistic data like we add previousMessage when deleting a report action.

  5. added
    External
    on Sep 8, 2023
  6. changed the title [-]Web/Desktop - Request skeleton is shown grayed out instead the IOU details.[/-] [+][$500] Web/Desktop - Request skeleton is shown grayed out instead the IOU details.[/+] on Sep 8, 2023
  7. melvin-bot commented on Sep 8, 2023

    @melvin-bot
  8. added
    Help Wanted
    on Sep 8, 2023
  9. melvin-bot commented on Sep 8, 2023

    @melvin-bot

    Current assignee @maddylewis is eligible for the External assigner, not assigning anyone new.

  10. melvin-bot commented on Sep 8, 2023

    @melvin-bot

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

  11. added
    Weekly
    and removed
    Daily
    on Sep 8, 2023
  12. 50 remaining items

  13. maddylewis commented on Oct 4, 2023

    @maddylewis
    Contributor

    kk paid both contributors!

    @0xmiroslav im kind of confused about what's going on with your payment but lmk if you need me to do anything with the offer that was sent.

    also bump on reviewing this checklist - ty! #26939 (comment)

  14. 0xmiroslav commented on Oct 9, 2023

    @0xmiroslav
    Contributor
    • The PR that introduced the bug has been identified. Link to the PR: feat(26270): Add Skeleton UI for Money Requests #26613
    • 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/26613/files#r1350228795
    • A discussion in #expensify-bugs 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
    • Determine if we should create a regression test for this bug. QA team found this so no more regression test
    • If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again. N/A
  15. maddylewis commented on Oct 12, 2023

    @maddylewis
    Contributor

    i will wrap this one up today

  16. maddylewis commented on Oct 13, 2023

    @maddylewis
    Contributor

    okay @0xmiroslav i sent your Upwork profile an offer for this one. once it's accepted, I'll pay it out + the bonus and close this out.

  17. maddylewis commented on Oct 16, 2023

    @maddylewis
    Contributor

    paid!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions