Skip to content

[HOLD for payment 2025-02-05] [HOLD for payment 2025-02-04] Self DM - User can submit track expense to self (You) again and send invoice to self #55661

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

Closed
8 tasks done
IuliiaHerets opened this issue Jan 23, 2025 · 18 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Jan 23, 2025

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.89-0
Reproducible in staging?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.0 / Chrome
App Component: Money Requests

Action Performed:

Bug 1:

  1. Go to staging.new.expensify.com
  2. Go to self DM.
  3. Submit an expense to the self DM.
  4. Click Submit it to someone.
  5. Select yourself under "Personal".
  6. Submit the expense from yourself to yourself.

Bug 2:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Send invoice.
  3. Enter amount > Next.
  4. Select the contact under "Personal", which is yourself.
  5. Send the invoice.

Expected Result:

"Personal" section should not appear when submitting track expense to someone and sending invoice.

Actual Result:

"Personal" section appears when submitting track expense to someone and sending invoice, so user can submitting track expense to self and sending invoice to self.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

https://github.com/user-attachments/assets/40cf9055-b8b0-4ef9-b20f-b4ad4b7cef44
https://github.com/user-attachments/assets/6f3e04f0-fbf2-4ef2-a5c3-d15499863706

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @trjExpensify
@IuliiaHerets IuliiaHerets added Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment labels Jan 23, 2025
Copy link

melvin-bot bot commented Jan 23, 2025

Triggered auto assignment to @mallenexpensify (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 Jan 23, 2025

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Jan 23, 2025
Copy link

melvin-bot bot commented Jan 23, 2025

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jan 23, 2025
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.

@mananjadhav
Copy link
Collaborator

Unsure if this is a bug. We build a functionality to submit expense to yourself by adding a separate section Personal in the search list.

cc - @grgia @trjExpensify @JKobrynski

@nkdengineer
Copy link
Contributor

Proposal

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

"Personal" section appears when submitting track expense to someone and sending invoice, so user can submitting track expense to self and sending invoice to self.

What is the root cause of that problem?

We are always getting the selfDM option here

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

We should only get the selfDM option if we're not moving the transaction from track expense and not sending invoice

const shouldIncludeSelfDM = !isMovingTransactionFromTrackExpense(action) && iouType !== CONST.IOU.TYPE.INVOICE;
includeSelfDM: shouldIncludeSelfDM,

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

None

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@JKobrynski
Copy link
Contributor

Hi, I'm Julian from Callstack - expert agency - and I'd like to work on this issue

@trjExpensify
Copy link
Contributor

Treating this as a follow-up to #55016

To confirm the expectation:

  • The selfDM isn't an option on the choose receipt page in the Send invoice flow
  • The selfDM isn't an option on the choose receipt page in the Submit it to someone flow.

@JKobrynski
Copy link
Contributor

Update:

The PR is ready for review!

@grgia
Copy link
Contributor

grgia commented Jan 24, 2025

PR was merged

@grgia grgia added Daily KSv2 and removed Weekly KSv2 labels Jan 24, 2025
@mountiny
Copy link
Contributor

Asked QA for a test of the CP

@mountiny mountiny removed the DeployBlockerCash This issue or pull request should block deployment label Jan 27, 2025
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jan 28, 2025
@melvin-bot melvin-bot bot changed the title Self DM - User can submit track expense to self (You) again and send invoice to self [HOLD for payment 2025-02-04] Self DM - User can submit track expense to self (You) again and send invoice to self Jan 28, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 28, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

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

Copy link

melvin-bot bot commented Jan 28, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.89-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 2025-02-04. 🎊

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

Copy link

melvin-bot bot commented Jan 28, 2025

@mananjadhav @trjExpensify @mananjadhav The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jan 29, 2025
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2025-02-04] Self DM - User can submit track expense to self (You) again and send invoice to self [HOLD for payment 2025-02-05] [HOLD for payment 2025-02-04] Self DM - User can submit track expense to self (You) again and send invoice to self Jan 29, 2025
Copy link

melvin-bot bot commented Jan 29, 2025

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

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

Copy link

melvin-bot bot commented Jan 29, 2025

@mananjadhav @trjExpensify @mananjadhav The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@mananjadhav
Copy link
Collaborator

mananjadhav commented Jan 31, 2025

While this is a follow up to the PR I don't think this should treated as a regression or have any payout for the linked PR. It should be included in the scope of the original PR.

cc - @trjExpensify @grgia

@trjExpensify
Copy link
Contributor

Yep, makes sense to me. I'll just close this.

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. Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

9 participants