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

[HOLD for payment 2023-12-28] [HOLD for payment 2023-12-26] [$500] Web - IOU – Unable to create IOU with non-existing user via 1:1 conversation #33151

Closed
1 of 6 tasks
izarutskaya opened this issue Dec 15, 2023 · 44 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

@izarutskaya
Copy link

izarutskaya commented Dec 15, 2023

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.13-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
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @

Action Performed:

  1. Open staging.new.expensify.com
  2. Navigate to FAB> Start Chat
  3. Enter email address of non-existing user
  4. Click on "+" button from created chat
  5. Select Request money> Add amount and click Next

Expected Result:

Request button should be active and Money request should be created successfully with non-existing user just like creating IOU with non-existing user from FAB button

Actual Result:

Unable to create IOU with non-existing user via 1:1 conversation. Request button is inactive

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

Bug6314381_1702638196788.Recording__1568.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010d40f7ed4256dace
  • Upwork Job ID: 1735619257477193728
  • Last Price Increase: 2023-12-15
  • Automatic offers:
    • paultsimura | Contributor | 28062298
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 15, 2023
@melvin-bot melvin-bot bot changed the title Web - IOU – Unable to create IOU with non-existing user via 1:1 conversation [$500] Web - IOU – Unable to create IOU with non-existing user via 1:1 conversation Dec 15, 2023
Copy link

melvin-bot bot commented Dec 15, 2023

Job added to Upwork: https://www.upwork.com/jobs/~010d40f7ed4256dace

Copy link

melvin-bot bot commented Dec 15, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 15, 2023
Copy link

melvin-bot bot commented Dec 15, 2023

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

Copy link

melvin-bot bot commented Dec 15, 2023

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Dec 15, 2023
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.

Copy link

melvin-bot bot commented Dec 15, 2023

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

@Julesssss
Copy link
Contributor

Likely caused by fixes for the big refactor PR...

@paultsimura
Copy link
Contributor

paultsimura commented Dec 15, 2023

Proposal

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

Unable to create an IOU with a hidden user.

What is the root cause of that problem?

We are filtering out the hidden participants (who have no login but have an accountID) when building a list of participants of the IOR Request:

const participants = useMemo(
() =>
_.chain(transaction.participants)
.map((participant) => {
const isPolicyExpenseChat = lodashGet(participant, 'isPolicyExpenseChat', false);
return isPolicyExpenseChat ? OptionsListUtils.getPolicyExpenseReportOption(participant) : OptionsListUtils.getParticipantsOption(participant, personalDetails);
})
.filter((participant) => !!participant.login || !!participant.text)
.value(),
[transaction.participants, personalDetails],
);

And this is what the participants list of the transaction looks like for a hidden participant:

[
    {
        "accountID": 3680713,
        "selected": true
    }
]

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

We should not filter out accounts that have an accountID set here:

.filter((participant) => !!participant.login || !!participant.accountID || !!participant.text)

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 15, 2023
@Julesssss
Copy link
Contributor

Replacing C+ as this is urgent

@allroundexperts
Copy link
Contributor

@paultsimura's proposal looks good to me. Simple fix.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Dec 15, 2023

Current assignee @Julesssss is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@Julesssss
Copy link
Contributor

Thank you.

Copy link

melvin-bot bot commented Dec 15, 2023

📣 @paultsimura 🎉 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 removed the Reviewing Has a PR in review label Dec 19, 2023
Copy link

melvin-bot bot commented Dec 19, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.13-8 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-12-26. 🎊

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:

Copy link

melvin-bot bot commented Dec 19, 2023

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

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Dec 21, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-12-26] [$500] Web - IOU – Unable to create IOU with non-existing user via 1:1 conversation [HOLD for payment 2023-12-28] [HOLD for payment 2023-12-26] [$500] Web - IOU – Unable to create IOU with non-existing user via 1:1 conversation Dec 21, 2023
Copy link

melvin-bot bot commented Dec 21, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.14-6 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-12-28. 🎊

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:

Copy link

melvin-bot bot commented Dec 21, 2023

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:

@joekaufmanexpensify
Copy link
Contributor

Per this, payment may be delayed a few days here because of the holidays. @allroundexperts if you have time over the next week to handle the BZ checklist too, that'd be great!

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Dec 25, 2023
Copy link

melvin-bot bot commented Dec 28, 2023

@Julesssss, @paultsimura, @allroundexperts, @joekaufmanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Jan 1, 2024

@Julesssss, @paultsimura, @allroundexperts, @joekaufmanexpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@joekaufmanexpensify
Copy link
Contributor

@allroundexperts could you please complete the checklist so we can issue payment?

@melvin-bot melvin-bot bot removed the Overdue label Jan 1, 2024
Copy link

melvin-bot bot commented Jan 1, 2024

@Julesssss, @paultsimura, @allroundexperts, @joekaufmanexpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@joekaufmanexpensify
Copy link
Contributor

Bumped in Slack

@joekaufmanexpensify
Copy link
Contributor

Still discussing in Slack

@paultsimura
Copy link
Contributor

Does the BZ usually affect the Contributor payout as well?

@joekaufmanexpensify
Copy link
Contributor

Yep! As soon as the BZ checklist is complete, we'll issue payment to everyone.

@allroundexperts
Copy link
Contributor

Checklist

  1. Refactor the money request creation flow #28618
  2. https://github.com/Expensify/App/pull/28618/files#r1440647938
  3. N/A
  4. A regression test would be helpful.

Regression test

  1. Open the app and navigate to FAB -> Start Chat
  2. Enter email address of non-existing user
  3. Click on "+" button from created chat
  4. Select Request money -> Add amount and click Next
  5. Verify that request button should be active and money request should be created successfully with non-existing user just like creating IOU with non-existing user from FAB button.

Do we 👍 or 👎 ?

@joekaufmanexpensify
Copy link
Contributor

Added regression test above. Checklist is complete. All set to issue payment.

@joekaufmanexpensify
Copy link
Contributor

We need to make the following payments:

@joekaufmanexpensify
Copy link
Contributor

@paultsimura $500 sent and contract ended!

@joekaufmanexpensify
Copy link
Contributor

@allroundexperts could you please request $500 and confirm here once you've done that?

@joekaufmanexpensify
Copy link
Contributor

Chatted with @allroundexperts and confirmed good to close.

@JmillsExpensify
Copy link

$500 payment to @allroundexperts based on this comment.

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