Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C+ Checklist Needs Completion] [$250] Quick action - Split expense is created in a new group chat when splitting a second time from the same group from global creation #40745

Closed
6 tasks done
kavimuru opened this issue Apr 23, 2024 · 33 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Apr 23, 2024

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.64-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: N/A
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. Go to FAB > Split expense > Manual.
  3. Create manual split expense with two users.
  4. Go to FAB
  5. Click Split expense under Quick action.
  6. Create another split expense.

Expected Result:

The new split expense will be created in the same group chat (production behavior).

Actual Result:

The new split expense is created in a new group chat.

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

Bug6457976_1713819353025.20240423_045119.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012731ac59083f0155
  • Upwork Job ID: 1782697338779648000
  • Last Price Increase: 2024-04-23
  • Automatic offers:
    • DylanDylann | Reviewer | 0
    • nkdengineer | Contributor | 0
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

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

Copy link

melvin-bot bot commented Apr 23, 2024

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

Copy link
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.

@kavimuru
Copy link
Author

@MonilBhavsar 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.

@kavimuru
Copy link
Author

We think this bug might be related to #vip-split

@c3024
Copy link
Contributor

c3024 commented Apr 23, 2024

Is this working correctly on production?

@kavimuru
Copy link
Author

On prod, the split is added to the same group chat. On staging, it is added to a new group chat.

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

Job added to Upwork: https://www.upwork.com/jobs/~012731ac59083f0155

@melvin-bot melvin-bot bot changed the title Quick action - Split expense is created in a new group chat when splitting from Quick action [$250] Quick action - Split expense is created in a new group chat when splitting from Quick action Apr 23, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

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

@mountiny
Copy link
Contributor

@Gonals can you please have a look? Seems like we might not be saving the correct reportID to the NVP in this case

@MonilBhavsar
Copy link
Contributor

This does seem like a server side issue to me

@MonilBhavsar
Copy link
Contributor

I was wrong. QuickAction NVP seems correct, so client side issue

@nkdengineer
Copy link
Contributor

Proposal

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

The new split expense is created in a new group chat.

What is the root cause of that problem?

When we create split bill via QAB, we're calling splitBillAndOpenReport which will always create a new optimistic report because in this function, we call createSplitsAndOnyxData with existingSplitChatReportID param as empty

const {splitData, splits, onyxData} = createSplitsAndOnyxData(

IOU.splitBillAndOpenReport({

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

In the case we create a split bill via QAB that means the report already exists we should call splitBill function as the same here which already handle this case and also navigate to the correctly report after creating.

IOU.splitBillAndOpenReport({

We should fix the same for IOURequestStepScan and IOURequestStepDistance page

What alternative solutions did you explore? (Optional)

NA

@Gonals
Copy link
Contributor

Gonals commented Apr 23, 2024

@Gonals can you please have a look? Seems like we might not be saving the correct reportID to the NVP in this case

I noticed this bug, but it didn't have anything to do with the QAB (when I tested). It happened for non-QAB flows too 🤷

I'll test again in a bit

@Gonals
Copy link
Contributor

Gonals commented Apr 23, 2024

Yep. This happens whenever you try to split again between the same group from global creation, QAB flow or not. Not a blocker

@Gonals Gonals removed the DeployBlockerCash This issue or pull request should block deployment label Apr 23, 2024
@Gonals Gonals changed the title [$250] Quick action - Split expense is created in a new group chat when splitting from Quick action [$250] Quick action - Split expense is created in a new group chat when splitting a second time from the same group from global creation Apr 23, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 24, 2024
Copy link

melvin-bot bot commented Apr 24, 2024

📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Apr 24, 2024

📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Apr 25, 2024
@nkdengineer
Copy link
Contributor

@DylanDylann The PR is here.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 26, 2024
@melvin-bot melvin-bot bot changed the title [$250] Quick action - Split expense is created in a new group chat when splitting a second time from the same group from global creation [HOLD for payment 2024-05-03] [$250] Quick action - Split expense is created in a new group chat when splitting a second time from the same group from global creation Apr 26, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 26, 2024
Copy link

melvin-bot bot commented Apr 26, 2024

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

Copy link

melvin-bot bot commented Apr 26, 2024

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

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

Copy link

melvin-bot bot commented Apr 26, 2024

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.
  • [@greg-schroeder] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@greg-schroeder greg-schroeder changed the title [HOLD for payment 2024-05-03] [$250] Quick action - Split expense is created in a new group chat when splitting a second time from the same group from global creation [C+ Checklist Needs Completion] [$250] Quick action - Split expense is created in a new group chat when splitting a second time from the same group from global creation May 3, 2024
@greg-schroeder
Copy link
Contributor

Payments made and job closed. @DylanDylann can you take care of the checklist? Thanks!

@DylanDylann
Copy link
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: #39413
[@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: #39413 (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

  1. Go to a group chat
  2. Create a split bill in this group
  3. Go FAB and click on quick action button
  4. Create the split bill again
  5. Verify that the split bill is created in the group chat above

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels May 3, 2024
@MonilBhavsar
Copy link
Contributor

Looks good, but we might have a regression here #40961 (comment)

@melvin-bot melvin-bot bot removed the Overdue label May 6, 2024
@nkdengineer
Copy link
Contributor

@MonilBhavsar I tested and it still works for me on the latest main.

Copy link

melvin-bot bot commented May 7, 2024

@greg-schroeder @MonilBhavsar @DylanDylann @nkdengineer this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

1 similar comment
Copy link

melvin-bot bot commented May 7, 2024

@greg-schroeder @MonilBhavsar @DylanDylann @nkdengineer this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@MonilBhavsar
Copy link
Contributor

tested and it still works for me on the latest main.

👍 We can close this after creating regression test

@greg-schroeder
Copy link
Contributor

Filing thing, thanks all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants