Skip to content

[HOLD for payment 2023-08-17] [$1000] [HOLD for payment 2023-08-16] The total requested amount does not update until the IOU is clicked on or the page is refreshed #24267

Closed

Description

@mvtglobally

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. Click on the plus sign and select "request money."
  2. Enter the desired amount and recipient's email address, and click "request money."
  3. Repeat step 2 to make a second request with the same recipient.
  4. Delete the first request from the reply thread.
  5. Observe that the total requested amount does not update in real-time.

Expected Result:

The total requested amount should update in real-time after deleting the first request and making a second one.

Actual Result:

The total requested amount does not update until the IOU is clicked on or the page is refreshed.

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: 1.3.51-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
Notes/Photos/Videos: Any additional supporting documentation

screen-capture.-.2023-08-08T044732.549.webm
screen-capture.-.2023-08-08T043901.984.mp4

Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691494603760399
reported earlier in
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691444951222519

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0136af4481ecaa59a7
  • Upwork Job ID: 1689346748730482688
  • Last Price Increase: 2023-08-09
  • Automatic offers:
    • StevenKKC | Contributor | 26035056

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Aug 8, 2023
  2. melvin-bot commented on Aug 8, 2023

    @melvin-bot

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

  3. melvin-bot commented on Aug 8, 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. OSBotify commented on Aug 8, 2023

    @OSBotify
    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.
  5. melvin-bot commented on Aug 8, 2023

    @melvin-bot

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

  6. dukenv0307 commented on Aug 8, 2023

    @dukenv0307
    Contributor

    Proposal

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

    The total requested amount does not update until the IOU is clicked on or the page is refreshed

    What is the root cause of that problem?

    When we delete a request money, report.total is changed

    But in ReportActionItem we don't check the report.total to re-render MoneyReportView here

    memo(
    ReportActionItem,
    (prevProps, nextProps) =>
    prevProps.displayAsGroup === nextProps.displayAsGroup &&
    prevProps.draftMessage === nextProps.draftMessage &&
    prevProps.isMostRecentIOUReportAction === nextProps.isMostRecentIOUReportAction &&
    prevProps.hasOutstandingIOU === nextProps.hasOutstandingIOU &&
    prevProps.shouldDisplayNewMarker === nextProps.shouldDisplayNewMarker &&
    _.isEqual(prevProps.emojiReactions, nextProps.emojiReactions) &&
    _.isEqual(prevProps.action, nextProps.action) &&
    _.isEqual(prevProps.report.pendingFields, nextProps.report.pendingFields) &&
    _.isEqual(prevProps.report.errorFields, nextProps.report.errorFields) &&
    lodashGet(prevProps.report, 'statusNum') === lodashGet(nextProps.report, 'statusNum') &&
    lodashGet(prevProps.report, 'stateNum') === lodashGet(nextProps.report, 'stateNum') &&
    prevProps.translate === nextProps.translate &&
    // TaskReport's created actions render the TaskView, which updates depending on certain fields in the TaskReport
    ReportUtils.isTaskReport(prevProps.report) === ReportUtils.isTaskReport(nextProps.report) &&
    prevProps.action.actionName === nextProps.action.actionName &&
    prevProps.report.reportName === nextProps.report.reportName &&
    prevProps.report.description === nextProps.report.description &&

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

    We should add the check here to re-render MoneyReportView when the report.total is changed

    memo(
            ReportActionItem,
            (prevProps, nextProps) =>
            ...
            // Check to re-render MoneyReportView
            lodashGet(prevProps.report, 'total', 0) === lodashGet(nextProps.report, 'total', 0)
    

    memo(
    ReportActionItem,
    (prevProps, nextProps) =>
    prevProps.displayAsGroup === nextProps.displayAsGroup &&
    prevProps.draftMessage === nextProps.draftMessage &&
    prevProps.isMostRecentIOUReportAction === nextProps.isMostRecentIOUReportAction &&
    prevProps.hasOutstandingIOU === nextProps.hasOutstandingIOU &&
    prevProps.shouldDisplayNewMarker === nextProps.shouldDisplayNewMarker &&
    _.isEqual(prevProps.emojiReactions, nextProps.emojiReactions) &&
    _.isEqual(prevProps.action, nextProps.action) &&
    _.isEqual(prevProps.report.pendingFields, nextProps.report.pendingFields) &&
    _.isEqual(prevProps.report.errorFields, nextProps.report.errorFields) &&
    lodashGet(prevProps.report, 'statusNum') === lodashGet(nextProps.report, 'statusNum') &&
    lodashGet(prevProps.report, 'stateNum') === lodashGet(nextProps.report, 'stateNum') &&
    prevProps.translate === nextProps.translate &&
    // TaskReport's created actions render the TaskView, which updates depending on certain fields in the TaskReport
    ReportUtils.isTaskReport(prevProps.report) === ReportUtils.isTaskReport(nextProps.report) &&
    prevProps.action.actionName === nextProps.action.actionName &&
    prevProps.report.reportName === nextProps.report.reportName &&
    prevProps.report.description === nextProps.report.description &&

    What alternative solutions did you explore? (Optional)

  7. added
    Daily
    and removed
    Hourly
    on Aug 8, 2023
  8. 57 remaining items

  9. changed the title [-][$1000] [HOLD for payment 2023-08-16] The total requested amount does not update until the IOU is clicked on or the page is refreshed[/-] [+][HOLD for payment 2023-08-17] [$1000] [HOLD for payment 2023-08-16] The total requested amount does not update until the IOU is clicked on or the page is refreshed[/+] on Aug 10, 2023
  10. melvin-bot commented on Aug 10, 2023

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.52-5 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-08-17. 🎊

    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:

    As a reminder, here are the bonuses/penalties that should be applied for any External issue:

    • Merged PR within 3 business days of assignment - 50% bonus
    • Merged PR more than 9 business days after assignment - 50% penalty
  11. melvin-bot commented on Aug 10, 2023

    @melvin-bot

    BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

    • [@srikarparsi] The PR that introduced the bug has been identified. Link to the PR:
    • [@srikarparsi] 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:
    • [@srikarparsi] 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:
    • [@StevenKKC] Determine if we should create a regression test for this bug.
    • [@StevenKKC] 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.
    • [@isabelastisser] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  12. StevenKKC commented on Aug 15, 2023

    @StevenKKC
    Contributor
    • Determine if we should create a regression test for this bug.
    • 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.

    Regression Test Proposal

    1. Open a chat with a user have chatted together before
    2. Click + in compose and create 2 requests money
    3. Click request money view
    4. Delete one of requests
    5. Verify that total amount is updated after being deleted
      Do we agree 👍 or 👎
  13. tewodrosGirmaA commented on Aug 15, 2023

    @tewodrosGirmaA

    Hey @srikarparsi, could you please update my name? I discovered that my issue has been identified as a duplicate in Slack. You can find more details about this issue in the following Slack conversation: Slack Conversation Link (https://expensify.slack.com/archives/C049HHMV9SM/p1691168685718989)

  14. namhihi237 commented on Aug 15, 2023

    @namhihi237
    Contributor

    @tewodrosGirmaA As @srikarparsi check above, this issue is not relative to your issue, I read a comment on Slack I think your issue is the same with here.

  15. jasperhuangg commented on Aug 15, 2023

    @jasperhuangg
    Contributor

    The PR that introduced the bug has been identified. Link to the PR: #20841

    This didn't introduce the bug, that PR implements tasks–this was a bug that was introduced when we implemented IOUs. Please read for context before blaming certain PRs.

    cc @StevenKKC

  16. StevenKKC commented on Aug 16, 2023

    @StevenKKC
    Contributor

    @jasperhuangg I apologize for my mistake and thank you for pointing it out.

  17. tewodrosGirmaA commented on Aug 16, 2023

    @tewodrosGirmaA

    @tewodrosGirmaA As @srikarparsi check above, this issue is not relative to your issue, I read a comment on Slack I think your issue is the same with here.

    Thank you @namhihi237 , now my name is updated ,in the github link, you suggested me.

  18. isabelastisser commented on Aug 18, 2023

    @isabelastisser
    Contributor

    @srikarparsi @StevenKKC, can you please confirm my summary below is correct? Do you know if the urgency bonus applies to this issue? Thanks!

    Issue reported by: @namhihi237 $250
    Approved proposal: @StevenKKC $1000, $500 urgency bonus

  19. StevenKKC commented on Aug 22, 2023

    @StevenKKC
    Contributor

    @srikarparsi Can you please confirm the urgency bonus applies to this issue?

  20. srikarparsi commented on Aug 23, 2023

    @srikarparsi
    Contributor

    Hi @isabelastisser! Yes, the summary looks correct! @StevenKKC should receive the urgency bonus.

  21. isabelastisser commented on Aug 23, 2023

    @isabelastisser
    Contributor

    Thanks @srikarparsi!

    @namhihi237 and @StevenKKC ! The payments should be set in Upwork, please review your accounts. Thanks!

    [@isabelastisser] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
    ]
    (https://github.com/Expensify/Expensify/issues/310599)

  22. namhihi237 commented on Aug 23, 2023

    @namhihi237
    Contributor

    @isabelastisser accepted thanks.

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

Metadata

Metadata

Labels

Awaiting PaymentBugEngineeringExternalWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions