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-08-28] [$1000] IOU - LAK currency is not displayed correctly inside the badge #23235

Closed
1 of 6 tasks
lanitochka17 opened this issue Jul 20, 2023 · 37 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 Internal Requires API changes or must be handled by Expensify staff

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 20, 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!


Action Performed:

  1. Open Expensify stg app
  2. Click the FAB button
  3. Click on "Split bill"
  4. Click on the currency
  5. Select "LAK-LAK" from the list of currencies
  6. Enter any 8 digit number
  7. Click on the "Next" button
  8. Selects any 2 contacts
  9. Press the "Next" button
  10. Click on the "Split {Currency}{Amount}" button

Expected Result:

The amount in LAK currency on the badge is displayed correctly and is equal to the amount owed by the participant

Actual Result:

The amount in LAK currency on the badge is displayed incorrectly, the last two digits of the amount owed are missing

Workaround:

Unknown

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.43.0

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

Notes/Photos/Videos: Any additional supporting documentation

Bug6134627_Recording_LAK.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0110273979413679a9
  • Upwork Job ID: 1683641607558184960
  • Last Price Increase: 2023-08-01
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 20, 2023

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

@melvin-bot
Copy link

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

@BhuvaneshPatil
Copy link
Contributor

The problem needs to be solved from backend.
This problem is with another currencies as well.
Ex - LBP.

The property coming from backend, ie. lastMessageText and lastMessageHTML is calculated wrong

@melvin-bot melvin-bot bot added the Overdue label Jul 24, 2023
@sophiepintoraetz sophiepintoraetz added the External Added to denote the issue can be worked on by a contributor label Jul 25, 2023
@melvin-bot melvin-bot bot changed the title IOU - LAK currency is not displayed correctly inside the badge [$1000] IOU - LAK currency is not displayed correctly inside the badge Jul 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 25, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0110273979413679a9

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

melvin-bot bot commented Jul 25, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 25, 2023

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

@sophiepintoraetz
Copy link
Contributor

image

Assigning @sobitneupane to confirm that this is a backend issue!

@melvin-bot melvin-bot bot removed the Overdue label Jul 25, 2023
@sobitneupane
Copy link
Contributor

@sophiepintoraetz It looks like a backend issue to me as well. It works fine in offline mode but as soon as connected to internet it changes to the wrong value. I believe it is due to some response from the backend.

Screen.Recording.2023-07-26.at.15.40.35.mov

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

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

@melvin-bot melvin-bot bot added the Overdue label Jul 28, 2023
@aldo-expensify
Copy link
Contributor

I didn't have time to investigate this today, I'll try early next week.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 29, 2023
@sophiepintoraetz
Copy link
Contributor

@aldo-expensify - hopefully this week?

@melvin-bot melvin-bot bot removed the Overdue label Jul 31, 2023
@aldo-expensify
Copy link
Contributor

This is possibly because of:

Some code was added here changing the formatting used for IOU in the backend, but we didn't do anything in the App code to be consistent. This also makes more spread the code handling decimals in the backend. In the past this lived only in PHP-Libs https://github.com/Expensify/PHP-Libs/blob/main/src/CurrencyInfo.php.

I have already an issue for this: https://github.com/Expensify/Expensify/issues/300539

I'll try to give it time later during the week so we can get it done. Meanwhile, I think we can remove the help wanted and make it a weekly?

@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 3, 2023

@sobitneupane @sophiepintoraetz @aldo-expensify 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!

@melvin-bot melvin-bot bot added the Overdue label Aug 3, 2023
@aldo-expensify
Copy link
Contributor

I wasn't able to finish, my PR is causing a regression described here: #24175 (comment)

I'll continue on Tuesday 👋

@aldo-expensify
Copy link
Contributor

Didn't continue on Tuesday, but I finished the code for #24175 today. I just have to complete the testing steps and provide more screenshots, then I'll make it ready for review.

@aldo-expensify
Copy link
Contributor

I made the PR ready for review today.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 21, 2023
@melvin-bot melvin-bot bot changed the title [$1000] IOU - LAK currency is not displayed correctly inside the badge [HOLD for payment 2023-08-28] [$1000] IOU - LAK currency is not displayed correctly inside the badge Aug 21, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 21, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 21, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.55-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-08-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:

  • @sobitneupane does not require payment (Eligible for Manual Requests)

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Aug 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:

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

@sophiepintoraetz
Copy link
Contributor

@sobitneupane - can you put in a request for $1000 once you have completed the checklist above?

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 Daily KSv2 labels Aug 28, 2023
@sophiepintoraetz
Copy link
Contributor

Bump @sobitneupane

@sobitneupane
Copy link
Contributor

Sorry for the delay. I will try to get to it by tomorrow EOD.

@melvin-bot melvin-bot bot added the Overdue label Sep 1, 2023
@aldo-expensify
Copy link
Contributor

Bump @sobitneupane

@melvin-bot melvin-bot bot removed the Overdue label Sep 1, 2023
@sophiepintoraetz
Copy link
Contributor

Closing in the meantime - seeing as the action is with @sobitneupane and the request summary is here.

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

I think this issue was caused by some backend change as suggested here

@sobitneupane
Copy link
Contributor

Regression Test Proposal:

  1. Create money requests in currencies that have decimals and currencies without decimals, for example:

    • BHD: 3 decimals, the third decimal will be truncated because we can't store it in the database, but it still should display with 3 decimal places after the . (the third decimal will always be a 0)
    • JPY: 0 decimals
    • VND: 0 decimals
    • USD: 2 decimals
    • RSD: 2 decimals (special case, should be tested)
  2. Verify that preview looks correctly formatted in chat report and in LHN.

Do we agree 👍 or 👎

@sobitneupane
Copy link
Contributor

Requested payment on newDot.

#23235 (comment)

@JmillsExpensify
Copy link

$1,000 approved for payment in NewDot based on this BZ 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 Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

6 participants