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-02-26] Cancel payment - Inconsistency in amount update in system messages when amount is updated #34650

Closed
6 tasks done
lanitochka17 opened this issue Jan 17, 2024 · 20 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Jan 17, 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.26-1
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to workspace chat
  2. Create a manual expense
  3. Go to expense report
  4. Pay elsewhere the report
  5. Click 3-dot menu > Cancel payment
  6. Edit the requested amount
  7. Return to expense report

Expected Result:

The amount in owe message updates to the latest amount, while the amount in cancellation message should remain as the original amount since user cancels the payment for the initial amount

Actual Result:

The amount in owe message does not update, but the amount in cancellation message updates to the latest amount, when it should be the other way around

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

Add any screenshot/video evidence

Bug6345383_1705504650466.bandicam_2024-01-17_21-21-44-483__1_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d75fd8b772fee381
  • Upwork Job ID: 1747650076861669376
  • Last Price Increase: 2024-01-17
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Jan 17, 2024
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.

Copy link

melvin-bot bot commented Jan 17, 2024

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

@mountiny
Copy link
Contributor

cc @Gonals Seems like the cancelled report action is connected to the transaction but it should keep the cancelled request amount/ currency in its message field so it represents the historical datapoint correctly

@dukenv0307
Copy link
Contributor

Proposal

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

The amount in owe message does not update, but the amount in cancellation message updates to the latest amount, when it should be the other way around

What is the root cause of that problem?

Actually, we are getting the amount and currency from report so it's updated when we change the amount and currency.

const amount = CurrencyUtils.convertToDisplayString(Math.abs(report?.total ?? 0), report?.currency);

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

We should get amount and currency from reportAction it self to keep the correct history action data.

const amount = CurrencyUtils.convertToDisplayString(Math.abs(report?.total ?? 0), report?.currency);

What alternative solutions did you explore? (Optional)

NA

@dukenv0307
Copy link
Contributor

@mountiny Actually, cancel request action doesn't have any information about the total and the currency. So we should update the BE as well.

Screenshot 2024-01-17 at 22 42 23

@mountiny
Copy link
Contributor

I know, discussing in Slack

@mountiny mountiny added Daily KSv2 Internal Requires API changes or must be handled by Expensify staff and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jan 17, 2024
Copy link

melvin-bot bot commented Jan 17, 2024

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

Copy link

melvin-bot bot commented Jan 17, 2024

Triggered auto assignment to Contributor Plus for review of internal employee PR - @mananjadhav (Internal)

@melvin-bot melvin-bot bot added the Overdue label Jan 19, 2024
@mananjadhav
Copy link
Collaborator

@mountiny @Gonals Are we tracking the BE fix here? or elsewhere?

@melvin-bot melvin-bot bot removed the Overdue label Jan 20, 2024
@Gonals Gonals added Reviewing Has a PR in review and removed Reviewing Has a PR in review labels Jan 23, 2024
@Gonals
Copy link
Contributor

Gonals commented Jan 23, 2024

We can track it here, but it'll still take me a couple of days before I get to it

@melvin-bot melvin-bot bot added the Overdue label Jan 29, 2024
@Gonals
Copy link
Contributor

Gonals commented Jan 29, 2024

This will be fixed with the new Cancel Payment development

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 29, 2024
@Gonals Gonals added Weekly KSv2 and removed Daily KSv2 labels Jan 31, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jan 31, 2024
@Gonals
Copy link
Contributor

Gonals commented Jan 31, 2024

Moving to weekly until then

@Gonals Gonals added the Reviewing Has a PR in review label Jan 31, 2024
@mananjadhav
Copy link
Collaborator

@Gonals Is the PR ready for review? Also I saw that another C+ is assigned for the PR related to this issue where I am assigned.

@Gonals
Copy link
Contributor

Gonals commented Feb 7, 2024

@Gonals Is the PR ready for review? Also I saw that another C+ is assigned for the PR related to this issue where I am assigned.

We reverted the original cancel payment PR, so this issue basically stopped existing. I'm keeping it around for tracking purposes (so I don't forget to implement this in the new Cancel Payments PR).

I think we can actually go ahead and close this one new tht the backend changes merged.

@Gonals Gonals closed this as completed Feb 7, 2024
Copy link

melvin-bot bot commented Feb 15, 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.

Copy link

melvin-bot bot commented Feb 16, 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.

Copy link

melvin-bot bot commented Feb 16, 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.

Copy link

melvin-bot bot commented Feb 16, 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.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 19, 2024
@melvin-bot melvin-bot bot changed the title Cancel payment - Inconsistency in amount update in system messages when amount is updated [HOLD for payment 2024-02-26] Cancel payment - Inconsistency in amount update in system messages when amount is updated Feb 19, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 19, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

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

Copy link

melvin-bot bot commented Feb 19, 2024

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

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

  • @mananjadhav requires payment through NewDot Manual Requests

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Feb 21, 2024
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 Engineering Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants