Skip to content

[$1000] Money request is shown from the other account instead of current user. #22862

Closed

Description

@kavimuru

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Create a new chat.
  2. Click on '+' and request money.

Expected Result:

The IOU should be from the current user.

Actual Result:

The IOU is shown to be from the user we are chatting with.

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.40-5
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
Notes/Photos/Videos: Any additional supporting documentation

Screen.Recording.2023-07-13.at.8.38.25.PM.mov
Recording.1271.mp4

Expensify/Expensify Issue URL:
Issue reported by: @esh-g
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689261117044569

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019b2ea0a8e06090db
  • Upwork Job ID: 1684323672353202176
  • Last Price Increase: 2023-07-26

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Jul 14, 2023
  2. melvin-bot commented on Jul 14, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jul 14, 2023

    @melvin-bot

    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
  4. OSBotify commented on Jul 14, 2023

    @OSBotify
    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.
  5. melvin-bot commented on Jul 14, 2023

    @melvin-bot

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

  6. francoisl commented on Jul 14, 2023

    @francoisl
    Contributor

    Is this actually a bug? The same behavior is happening on production for me. Besides, it says " owes",
    showing that the money request was sent to them

    Production Staging
    image image
  7. jeet-dhandha commented on Jul 14, 2023

    @jeet-dhandha
    Contributor

    The message should have gone from the requester's account instead of the payer's account.

  8. francoisl commented on Jul 14, 2023

    @francoisl
    Contributor

    I think that's how it's supposed be rendered, the preview clearly says who owes money to who. I can see how it can be confusing though – let's see of someone who's more familiar with this can chime in.

    Anyway, even if it were a bug, the same also happens on production, so I'm going to remove the deploy blocker label for now.

  9. 21 remaining items

  10. changed the title [-]Money request is shown from the other account instead of current user.[/-] [+][$1000] Money request is shown from the other account instead of current user.[/+] on Jul 26, 2023
  11. melvin-bot commented on Jul 26, 2023

    @melvin-bot
  12. added
    Help Wanted
    on Jul 26, 2023
  13. melvin-bot commented on Jul 26, 2023

    @melvin-bot

    Current assignee @michaelhaxhiu is eligible for the External assigner, not assigning anyone new.

  14. melvin-bot commented on Jul 26, 2023

    @melvin-bot

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

  15. rojiphil commented on Jul 27, 2023

    @rojiphil
    Contributor

    Proposal

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

    The problem is that the chat initiator's avatar and name are not displayed in the chat. If you look at my video here - #22862 (comment), chat is sent from T5 to T6. However, the chat is attributed to be sent by T6 even though it was initiated by T5. This is the problem we are trying to solve.

    What is the root cause of that problem?

    The root cause of this issue is at this line where we are building an optimistic report preview. Here, the actorAccountID is set with report's managerID which could be payer/payee depending on the context.

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

    Setting actorAccountID with currentUserAccountID would ensure that the chat initiator's details will be set to the current user who initiated it.
    The change has to be made at this line here like this:

    actorAccountID: currentUserAccountID,

    Further, when API with command RequestMoney is sent, the BE should ensure that reportAction with actionName: REPORTPREVIEW has the actorAccountID set to the first time initiator's account id. I think, subsequent RequestMoney requests from either actors (T5 or T6) shouldn't update the actorAccountID. wdyt?

    What alternative solutions did you explore? (Optional)

  16. melvin-bot commented on Jul 28, 2023

    @melvin-bot

    @robertjchen @michaelhaxhiu @Santhosh-Sellavel 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!

  17. Santhosh-Sellavel commented on Jul 28, 2023

    @Santhosh-Sellavel
    Collaborator

    This looks like expected behavior to me @michaelhaxhiu please check with the product & design team.

  18. michaelhaxhiu commented on Jul 31, 2023

    @michaelhaxhiu
    Contributor

    Thansk for your input @Santhosh-Sellavel. I spent time to look into this a little further and have changed my stance, we do this intentionally. Closing this GH.

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

Metadata

Metadata

Labels

BugDailyEngineeringExternalHelp Wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions