Skip to content

[HOLD for payment 2024-07-10] [HOLD for payment 2024-07-02] [$250] Android - Review duplicate - App crashes when tapping "Keep all" on modified chat link #44213

Closed

Description

@m-natarajan

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.1-0
Reproducible in staging?: y
Reproducible in production?: no new feature
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:

Action Performed:

  1. Go to staging.new.expensify.com
  2. On web, open DM with mobile user, copy the report link and add /duplicates/review to the end of the link. (Example - https://staging.new.expensify.com/r/4796612456700465/duplicates/review
    )
  3. Send it to mobile user.
  4. As mobile user (Android or iOS), open the DM.
  5. Tap on the link.
  6. Tap Keep all.

Expected Result:

App will not crash.

Actual Result:

App crashes on Android and iOS app.
On web, it shows console error.

Workaround:

unknown

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 - Console error
  • MacOS: Desktop

Screenshots/Videos

Bug6521589_1719068371303.Screen_Recording_20240622_225622_One_UI_Home.1.mp4

https://platform.utest.com/services/links/v1/internal/51927148?.log

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e59eefc454d9599a
  • Upwork Job ID: 1805181350791543526
  • Last Price Increase: 2024-06-24
  • Automatic offers:
    • bernhardoj | Contributor | 102859572
Issue OwnerCurrent Issue Owner: @OfstadC

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on Jun 22, 2024
  2. melvin-bot commented on Jun 22, 2024

    @melvin-bot

    Triggered auto assignment to @OfstadC (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. github-actions commented on Jun 22, 2024

    @github-actions
    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.
  4. melvin-bot commented on Jun 22, 2024

    @melvin-bot

    Triggered auto assignment to @neil-marcellini (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  5. c3024 commented on Jun 22, 2024

    @c3024
    Contributor

    Proposal

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

    App crashes when pressing Keep all when reviewing duplicates.

    What is the root cause of that problem?

    transactionIDs can be '-1' here

    const transactionID = ReportActionsUtils.getLinkedTransactionID(reportAction, report?.reportID ?? '-1') ?? '-1';

    and when they are mapped over here they are added as undefined in the mapped array here
    const currentTransactions = transactionIDs.map((id) => allTransactions?.[id]);
    const transactionsReportActions = currentTransactions.map((transaction) => ReportActionsUtils.getIOUActionForReportID(transaction.reportID ?? '', transaction.transactionID ?? ''));

    and accessing reportID on undefined crashes the app.

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

    Filter the undefined in the mapped array by modifying this

    const transactionsReportActions = currentTransactions.map((transaction) => ReportActionsUtils.getIOUActionForReportID(transaction.reportID ?? '', transaction.transactionID ?? ''));

    to

    const currentTransactions = transactionIDs.map((id) => allTransactions?.[id]).filter((transaction) => transaction);

    What alternative solutions did you explore? (Optional)

  6. 33 remaining items

  7. OfstadC commented on Jun 27, 2024

    @OfstadC
    Contributor

    @allroundexperts Could you provide an update on this checklist by EOD? Thank you!

  8. allroundexperts commented on Jun 30, 2024

    @allroundexperts
    Contributor

    Checklist

    1. Feat/ Dupe detection review page #41093
    2. https://github.com/Expensify/App/pull/41093/files#r1660187883
    3. N/A
    4. A regression test would be helpful. Steps given in the OP look good to me!
  9. added
    Daily
    and removed
    Weekly
    on Jul 2, 2024
  10. OfstadC commented on Jul 2, 2024

    @OfstadC
    Contributor

    @allroundexperts Could you please mark off each item completed on the checklist 😃 ? Thanks so much!

    Payment Summary:

    Contributor: @bernhardoj paid $250 via Upwork
    Contributor+: @allroundexperts due $250 via NewDot

  11. allroundexperts commented on Jul 2, 2024

    @allroundexperts
    Contributor

    @OfstadC I can't edit or mark as complete the checklist message (permission issues). Usually, the C+ just writes the checklist as I did here.

  12. added
    Weekly
    and removed
    Daily
    on Jul 3, 2024
  13. changed the title [-][HOLD for payment 2024-07-02] [$250] Android - Review duplicate - App crashes when tapping "Keep all" on modified chat link[/-] [+][HOLD for payment 2024-07-10] [HOLD for payment 2024-07-02] [$250] Android - Review duplicate - App crashes when tapping "Keep all" on modified chat link[/+] on Jul 3, 2024
  14. melvin-bot commented on Jul 3, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 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-07-10. 🎊

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

  15. melvin-bot commented on Jul 3, 2024

    @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:

    • [@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
    • [@allroundexperts] 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:
    • [@allroundexperts] 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:
    • [@allroundexperts] Determine if we should create a regression test for this bug.
    • [@allroundexperts] 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.
    • [@OfstadC] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  16. OfstadC commented on Jul 9, 2024

    @OfstadC
    Contributor

    This was already paid 🤔 - Asking about this here

  17. OfstadC commented on Jul 9, 2024

    @OfstadC
    Contributor

    Already paid - closing

  18. JmillsExpensify commented on Aug 21, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @allroundexperts

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