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 2024-07-10] [HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$250] Pay someone flow doesn’t include a reportAction to distinguish the payment method used (Expensify or elsewhere) #41645

Closed
1 of 6 tasks
m-natarajan opened this issue May 4, 2024 · 77 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented May 4, 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.70-2
Reproducible in staging?: Yes
Reproducible in production?: Yes
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: @trjExpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1714729020479179

Action Performed:

Prerequisite: Pay someone with either Expensify or elsewhere option

  1. Login as a user who got paid
  2. Open the DM and observe the preview for money received
  3. Click to open the payment details and observe

Expected Result:

Method of payment displayed in both DM and details page (Expensify or elsewhere)

Actual Result:

Only xyz paid displayed and method of payment not displayed

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

image (1)
Snip - (2) New Expensify

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014f39f2dacd55f2a4
  • Upwork Job ID: 1787959016608243712
  • Last Price Increase: 2024-05-21
  • Automatic offers:
    • ahmedGaber93 | Reviewer | 102528931
    • nkdengineer | Contributor | 102528935
Issue OwnerCurrent Issue Owner: @johncschuster
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 4, 2024
Copy link

melvin-bot bot commented May 4, 2024

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

@jainilparikh
Copy link

Proposal

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

Payment type is not mentioned in the details page.

What is the root cause of that problem?

We do not have a field for payment type. We only have fields for 'amount', 'comment', 'merchant', 'date', 'category' and 'tag'.

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

Add a new field similar to the one below for 'PaymentType' info:

{canUseViolations && <ViolationMessages violations={getViolationsForField('receipt')} />}
<OfflineWithFeedback pendingAction={getPendingFieldAction('amount')}>
<MenuItemWithTopDescription
title={formattedTransactionAmount ? formattedTransactionAmount.toString() : ''}
shouldShowTitleIcon={isSettled}
titleIcon={Expensicons.Checkmark}
description={amountDescription}
titleStyle={styles.textHeadlineH2}
interactive={canEditAmount}
shouldShowRightIcon={canEditAmount}
onPress={() => Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_AMOUNT.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction?.transactionID ?? '', report.reportID))}
brickRoadIndicator={getErrorForField('amount') ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined}
error={getErrorForField('amount')}
/>

PaymentType info is available in ParentReportAction array that's passed to this component.

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Overdue label May 6, 2024
Copy link

melvin-bot bot commented May 7, 2024

@sakluger Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@sakluger sakluger added the External Added to denote the issue can be worked on by a contributor label May 7, 2024
@melvin-bot melvin-bot bot changed the title Pay someone flow doesn’t include a reportAction to distinguish the payment method used (Expensify or elsewhere) [$250] Pay someone flow doesn’t include a reportAction to distinguish the payment method used (Expensify or elsewhere) May 7, 2024
Copy link

melvin-bot bot commented May 7, 2024

Job added to Upwork: https://www.upwork.com/jobs/~014f39f2dacd55f2a4

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 7, 2024
Copy link

melvin-bot bot commented May 7, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label May 7, 2024
@ahmedGaber93

This comment was marked as outdated.

@jainilparikh
Copy link

@ahmedGaber93 , the reportAction does not have any information about how payment is done (Via Expensify or via Elsewhere). This is what we get:


avatarUrl: undefined
chatReportID: "8115357106458061"
chatType: ""
currency: "INR"
description: ""
errorFields: []
fieldList:  undefined
invoiceReceiver:  undefined
iouReportID: undefined
isDeletedParentAction: undefined
isOptimisticReport: undefined
isOwnPolicyExpenseChat: false
isPinned: false
isPolicyExpenseChat: undefined
isWaitingOnBankAccount: false
lastMentionedTime: undefined
lastReadTime: "2024-05-12 05:03:17.881"
lastVisibleActionCreated: "2024-05-12 05:03:17.881"
managerID: 16778387
nonReimbursableTotal: 0
notificationPreference: "always"
oldPolicyName: ""
ownerAccountID: 17102600
parentReportActionID: "189825184571791248"
parentReportID: "8115357106458061"
participantAccountIDs: (2) [16778387, 17102600]
pendingFields: undefined
permissions: (2) ['read', 'write']
policyID: "E1269E8555168358"
policyName: undefined
reportID: "7799079344254003"
reportName: "IOU"
stateNum: 2

Do we first need the BE to send this info in the parentReportActions ?

@melvin-bot melvin-bot bot added the Overdue label May 12, 2024
@sakluger
Copy link
Contributor

Not overdue, we're still discussing the expected behavior.

Copy link

melvin-bot bot commented May 14, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented May 14, 2024

@sakluger, @ahmedGaber93 Huh... This is 4 days overdue. Who can take care of this?

@ahmedGaber93
Copy link
Contributor

I checked it today, we already have the paymentType in FE but not with this reportAction, I will complete checking tomorrow to know if we can catch it from FE, or it requires BE changes

@melvin-bot melvin-bot bot removed the Overdue label May 14, 2024
@sakluger sakluger removed the Bug Something is broken. Auto assigns a BugZero manager. label May 16, 2024
@sakluger sakluger removed their assignment May 16, 2024
@sakluger sakluger added the Bug Something is broken. Auto assigns a BugZero manager. label May 16, 2024
Copy link

melvin-bot bot commented May 16, 2024

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

@sakluger sakluger removed their assignment May 16, 2024
@sakluger sakluger removed the Bug Something is broken. Auto assigns a BugZero manager. label May 16, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Jun 14, 2024
@nkdengineer
Copy link
Contributor

@ahmedGaber93 The PR is here.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 18, 2024
@johncschuster
Copy link
Contributor

We're waiting on the linked PR above to be merged

@johncschuster
Copy link
Contributor

Still waiting on the linked PR to cross the regression threshold 👍

@johncschuster
Copy link
Contributor

Same as above

1 similar comment
@johncschuster
Copy link
Contributor

Same as above

@johncschuster johncschuster added Weekly KSv2 and removed Daily KSv2 labels Jun 27, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@johncschuster
Copy link
Contributor

Looks like there was a regression on this one. @stitesExpensify can you see if the linked PR caused the regression?

@stitesExpensify
Copy link
Contributor

Based on the discussion in that issue, tt looks like this PR is the cause, but it might have just needed more as opposed to needing to be reverted etc. @nkdengineer @ahmedGaber93 can you both make sure to keep an eye on that discussion since this did technically cause a regression?

@ahmedGaber93
Copy link
Contributor

The regression case currently in discussion if it should fix or not. And I am 👀 on it.

@nkdengineer
Copy link
Contributor

I checked this issue and I think it's not regression from our PR, because the transaction thread report was hidden in the past.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 3, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$250] Pay someone flow doesn’t include a reportAction to distinguish the payment method used (Expensify or elsewhere) [HOLD for payment 2024-07-10] [HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$250] Pay someone flow doesn’t include a reportAction to distinguish the payment method used (Expensify or elsewhere) Jul 3, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 3, 2024
Copy link

melvin-bot bot commented Jul 3, 2024

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

Copy link

melvin-bot bot commented Jul 3, 2024

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:

Copy link

melvin-bot bot commented Jul 3, 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:

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

@johncschuster
Copy link
Contributor

Acknowledged! I'll issue payment after the regression window.

@johncschuster
Copy link
Contributor

@ahmedGaber93 can you please complete the BZ Checklist?

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

  • [@ahmedGaber93] The PR that introduced the bug has been identified. Link to the PR: N/A. Pay action in send money is not implemented before, so this seems a new requirement
  • [@ahmedGaber93] 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: N/A.
  • [@ahmedGaber93] 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: N/A.
  • [@ahmedGaber93] Determine if we should create a regression test for this bug. Yes
  • [@ahmedGaber93] 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 DM and create a send money request
  2. Click on report preview to open iou report
  3. Verify that a paid system message appears
  4. Reply in thread this system message
  5. Verify that the thread is displayed as a normal thread

Do we agree 👍 or 👎

@ahmedGaber93
Copy link
Contributor

@johncschuster completed

@johncschuster
Copy link
Contributor

Payment has been issued! Thanks for your contributions!

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. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

9 participants