Skip to content

[HOLD for payment 2024-03-20] [HOLD for payment 2024-03-19] [$500] Tag - Tag list shows old tag as selected when newer tag is selected in Split scan request #38042

Closed

Description

@kbecciv

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: 1.4.50-0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause - Internal Team

Action Performed:

Precondition:

  • User is an employee of Collect workspace.
  • The Collect workspace has tags.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Go to + > Split bill > Scan.
  4. Create a scan split with a tag.
  5. Click on the split preview.
  6. Click Tag.
  7. Select a different tag.
  8. Click Tag.

Expected Result:

The Tag list will show the newly-selected tag on the top

Actual Result:

The Tag list shows the original tag selected in Step 4 on the top.

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6409569_1710160072688.tag.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017e2d605b4f1b0cbe
  • Upwork Job ID: 1767210397356195840
  • Last Price Increase: 2024-03-11
  • Automatic offers:
    • DylanDylann | Reviewer | 0

Activity

  1. github-actions commented on Mar 11, 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.
  2. melvin-bot commented on Mar 11, 2024

    @melvin-bot

    Triggered auto assignment to @mountiny (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  3. kbecciv commented on Mar 11, 2024

    @kbecciv
    Author

    We think that this bug might be related to #wave6-collect-submitters
    cc @greg-schroeder

  4. mountiny commented on Mar 11, 2024

    @mountiny
    Contributor

    Seems like this might be related to @FitseTLT @puneetlath @neil-marcellini @ishpaul777 #37879

  5. ishpaul777 commented on Mar 11, 2024

    @ishpaul777
    Contributor

    looking into it...

  6. nkdengineer commented on Mar 11, 2024

    @nkdengineer
    Contributor

    Proposal

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

    The edited tag isn't applied in split bill request

    What is the root cause of that problem?

    In split bill requests, we save the draft data in splitDraftTransaction field instead of transaction field. But in here, we always get tag from transaction field

    const tag = TransactionUtils.getTag(transaction, tagIndex);

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

    We should use information from the splitDraftTransaction field if isEditingSplitBill is true like we did in IOURequestStepCategory

    const {category: transactionCategory} = ReportUtils.getTransactionDetails(isEditingSplitBill && !lodashIsEmpty(splitDraftTransaction) ? splitDraftTransaction : transaction);

       const isEditingSplitBill = isEditing && iouType === CONST.IOU.TYPE.SPLIT;
        // const tag = TransactionUtils.getTag(transaction, tagIndex);    // remove
        const tag = TransactionUtils.getTag(isEditingSplitBill && !lodashIsEmpty(splitDraftTransaction) ? splitDraftTransaction : transaction, tagIndex);
    
    

    What alternative solutions did you explore? (Optional)

  7. nkdengineer commented on Mar 11, 2024

    @nkdengineer
    Contributor

    @ishpaul777 This issue isn't caused by #37879

  8. nkdengineer commented on Mar 11, 2024

    @nkdengineer
    Contributor

    While migrating the logic to IOURequestStepPage in here, they missed this case

  9. ishpaul777 commented on Mar 11, 2024

    @ishpaul777
    Contributor

    @nkdengineer are you suggesting the issue is not a deploy blocker, means also repro on production ?

  10. DylanDylann commented on Mar 11, 2024

    @DylanDylann
    Contributor

    Agree with @nkdengineer. I noticed this bug and reported here. Could I take over this issue as a C+ role?

  11. ishpaul777 commented on Mar 11, 2024

    @ishpaul777
    Contributor

    Actually i can handle this one if @mountiny agrees..

  12. 38 remaining items

  13. changed the title [-][HOLD for payment 2024-03-19] [$500] Tag - Tag list shows old tag as selected when newer tag is selected in Split scan request[/-] [+][HOLD for payment 2024-03-20] [HOLD for payment 2024-03-19] [$500] Tag - Tag list shows old tag as selected when newer tag is selected in Split scan request[/+] on Mar 13, 2024
  14. melvin-bot commented on Mar 13, 2024

    @melvin-bot

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

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

  15. melvin-bot commented on Mar 13, 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:

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

    @sakluger
    Contributor

    Hey @nkdengineer, could you please apply to the Upwork job (https://www.upwork.com/jobs/~017e2d605b4f1b0cbe), or alternatively, link to your Upwork profile here so that I can send you an offer?

    @DylanDylann could you please complete the BZ checklist?

  17. DylanDylann commented on Mar 19, 2024

    @DylanDylann
    Contributor

    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:

    [@DylanDylann] The PR that introduced the bug has been identified. Link to the PR
    [@DylanDylann] 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
    [@DylanDylann] 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: NA
    [@DylanDylann] Determine if we should create a regression test for this bug. Yes
    [@DylanDylann] 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

    Precondition::

    User is an employee of Collect workspace.
    The Collect workspace has tags.

    1. Go to staging.new.expensify.com
    2. Go to workspace chat.
    3. Go to + > Split bill > Scan.
    4. Create a scan split with a tag.
    5. Click on the split preview.
    6. Click Tag.
    7. Select a different tag.
    8. Click Tag.
    9. The Tag list will show the newly-selected tag on the top

    Do we agree 👍 or 👎

  18. luacmartins commented on Mar 19, 2024

    @luacmartins
    Contributor

    We'll add test steps once the feature is fully implemented. No need to add them now.

  19. sakluger commented on Mar 20, 2024

    @sakluger
    Contributor

    Summarizing payment on this issue:

    Contributor: @nkdengineer $500, sent offer via Upwork (https://www.upwork.com/nx/wm/offer/101491657)
    Contributor+: @DylanDylann $500, paid via Upwork

    @nkdengineer please let me know once you've accepted the offer.

  20. nkdengineer commented on Mar 22, 2024

    @nkdengineer
    Contributor

    @sakluger I've accepted the offer, thanks.

  21. sakluger commented on Mar 22, 2024

    @sakluger
    Contributor

    Thank you! All contracts have been paid out.

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions