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

[WAITING ON CHECKLIST] Send money - Amount sent is copied as NaN in send money report page #29441

Closed
5 of 6 tasks
lanitochka17 opened this issue Oct 12, 2023 · 38 comments
Closed
5 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 12, 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.3.83-1

Reproducible in staging?: Yes

Reproducible in production?: No

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. Go to staging.new.expensify.com
  2. Go to + > Send money
  3. Send money to any user
  4. Click on the IOU preview to open report page
  5. Click on the avatar on the header
  6. Right click on the IOU card and select Copy to clipboard
  7. Paste it in the composer

Expected Result:

The amount sent is copied correctly

Actual Result:

The amount sent is copied as NaN

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

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Bug6234471_1697117342855.20231012_194342.mp4
MacOS: Desktop

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b326fbae821e5272
  • Upwork Job ID: 1712524952357588992
  • Last Price Increase: 2023-10-12
  • Automatic offers:
    • cubuspl42 | Reviewer | 27446145
    • saranshbalyan-1234 | Contributor | 27446146
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 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

@mountiny mountiny added External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment labels Oct 12, 2023
@melvin-bot melvin-bot bot changed the title Send money - Amount sent is copied as NaN in send money report page [$500] Send money - Amount sent is copied as NaN in send money report page Oct 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01b326fbae821e5272

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

I dont think this has to be a deploy blocker

@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

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

@mountiny mountiny changed the title [$500] Send money - Amount sent is copied as NaN in send money report page [$125] Send money - Amount sent is copied as NaN in send money report page Oct 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

Upwork job price has been updated to $125

@saranshbalyan-1234
Copy link
Contributor

Proposal

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

Amount sent is copied as NaN in send money report page

What is the root cause of that problem?

We are trying to deconstruct amount from originalMessage directly in the reportAction and it doesnt exist in this object here

const {amount, currency, IOUReportID} = originalMessage;

but these details exist in IOUDetails object in orignalMessage object.
Screenshot 2023-10-12 at 11 42 58 PM

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

Just change the above code to this

     const {amount, currency, IOUReportID} = originalMessage.IOUDetails;

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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

@jliexpensify
Copy link
Contributor

Bump @cubuspl42 for reviews, cheers!

@melvin-bot melvin-bot bot removed the Overdue label Oct 17, 2023
@cubuspl42
Copy link
Contributor

We should go with @saranshbalyan-1234, I checked the code, and there's nothing much to discuss here

C+ reviewed 🎀 👀 🎀

@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

Triggered auto assignment to @jasperhuangg, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@saranshbalyan-1234
Copy link
Contributor

Hi, just wanted to know how the price changes for a job. It seems it was 500 previously.

@cubuspl42
Copy link
Contributor

@saranshbalyan-1234 It was changed before your proposal was posted:

#29441 (comment)

But prices can be adjusted at Expensify's discretion, in general.

@saranshbalyan-1234
Copy link
Contributor

Ohhh, thank you @cubuspl42 for respoding

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Oct 31, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Oct 31, 2023
Copy link

melvin-bot bot commented Nov 2, 2023

⚠️ 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.

@jliexpensify
Copy link
Contributor

@cubuspl42
Copy link
Contributor

@jliexpensify It looks like we do. I'm catching up.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 6, 2023
@melvin-bot melvin-bot bot changed the title [$125] Send money - Amount sent is copied as NaN in send money report page [HOLD for payment 2023-11-13] [$125] Send money - Amount sent is copied as NaN in send money report page Nov 6, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 6, 2023
Copy link

melvin-bot bot commented Nov 6, 2023

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

Copy link

melvin-bot bot commented Nov 6, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.95-9 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-11-13. 🎊

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 Nov 6, 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:

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 Daily KSv2 labels Nov 13, 2023
@greg-schroeder
Copy link
Contributor

fyi: #30796 (comment)

@jliexpensify
Copy link
Contributor

Thanks Greg - so to summarise: no penalty for regression here?

If so, Payment Summary:

Upworks job here

Will pay today

@jliexpensify
Copy link
Contributor

Paid and job closed. @cubuspl42 please complete the checklist!

@jliexpensify jliexpensify changed the title [HOLD for payment 2023-11-13] [$125] Send money - Amount sent is copied as NaN in send money report page [WAITING ON CHECKLIST] Send money - Amount sent is copied as NaN in send money report page Nov 13, 2023
@jliexpensify jliexpensify removed the Awaiting Payment Auto-added when associated PR is deployed to production label Nov 13, 2023
@cubuspl42
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR:
  • 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:
  • 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:
    • No need for additional discussion
  • Determine if we should create a regression test for this bug.
    • Up to the QA team
  • 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.
    • Press to the "+" button, then select "Send money"
    • Proceed to send money to any user
    • Click on the IOU preview to access the report page
    • Click on the avatar located in the header
    • Right-click on the IOU card and choose "Copy to clipboard"
    • Paste the copied content into the composer
    • Verify that the pasted text correctly displays the user's name and amount

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

No branches or pull requests

7 participants