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-03-14] [Collect approvers] [$500] Offline Pay of an expense will apply even if the submitter edits an expense amount #36440

Closed
2 of 6 tasks
m-natarajan opened this issue Feb 13, 2024 · 21 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 Internal Requires API changes or must be handled by Expensify staff

Comments

@m-natarajan
Copy link

m-natarajan commented Feb 13, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.41-1
Reproducible in staging?: y
Reproducible in production?: y
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: @garrettmknight
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1707832645778869

Action Performed:

  1. User A invites User B to Free workspace
  2. User B submits an expense
  3. User A goes offline
  4. User A taps ‘Pay’ on the original expense
  5. User B edits the expense amount OR adds an additional expense while User A is offline
  6. User A comes back online

Expected Result:

Payment/Approval is stopped and the admin/approver is notified of the updated amount

Actual Result:

The updated expense amount is paid.

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01678bf0efdcb7e4a2
  • Upwork Job ID: 1757514507892195328
  • Last Price Increase: 2024-02-13
@m-natarajan m-natarajan added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 13, 2024
@melvin-bot melvin-bot bot changed the title Offline Pay of an expense will apply even if the submitter edits an expense amount [$500] Offline Pay of an expense will apply even if the submitter edits an expense amount Feb 13, 2024
Copy link

melvin-bot bot commented Feb 13, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01678bf0efdcb7e4a2

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

melvin-bot bot commented Feb 13, 2024

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

Copy link

melvin-bot bot commented Feb 13, 2024

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

@puneetlath
Copy link
Contributor

@Gonals Gonals added Internal Requires API changes or must be handled by Expensify staff and removed External Added to denote the issue can be worked on by a contributor labels Feb 15, 2024
Copy link

melvin-bot bot commented Feb 15, 2024

Current assignee @mananjadhav is eligible for the Internal assigner, not assigning anyone new.

@jjcoffee
Copy link
Contributor

Is it likely that #36983 will be fixed here too? Sounds like a similar issue.

@puneetlath
Copy link
Contributor

@Gonals do you know the answer to that ^?

@Gonals
Copy link
Contributor

Gonals commented Mar 4, 2024

#36983

Yep. this should fix both. In fact, I'm going to close that one as a duplicate

@trjExpensify trjExpensify changed the title [$500] Offline Pay of an expense will apply even if the submitter edits an expense amount [Collect approvers] [$500] Offline Pay of an expense will apply even if the submitter edits an expense amount Mar 5, 2024
@trjExpensify
Copy link
Contributor

What's the next steps here?

@mananjadhav
Copy link
Collaborator

I've done the C+ review and testing, looking for the internal engineer feedback/merge.

@trjExpensify
Copy link
Contributor

Cool, @Gonals looks like we're ready to rock here!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 7, 2024
@melvin-bot melvin-bot bot changed the title [Collect approvers] [$500] Offline Pay of an expense will apply even if the submitter edits an expense amount [HOLD for payment 2024-03-14] [Collect approvers] [$500] Offline Pay of an expense will apply even if the submitter edits an expense amount Mar 7, 2024
Copy link

melvin-bot bot commented Mar 7, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 7, 2024
Copy link

melvin-bot bot commented Mar 7, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.48-0 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-03-14. 🎊

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

  • @mananjadhav requires payment through NewDot Manual Requests

Copy link

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

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

@puneetlath
Copy link
Contributor

@mananjadhav friendly reminder about the checklist so that we can pay tomorrow.

@puneetlath
Copy link
Contributor

@mananjadhav bump!

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Mar 14, 2024
Copy link

melvin-bot bot commented Mar 14, 2024

Payment Summary

Upwork Job

BugZero Checklist (@puneetlath)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1757514507892195328/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@mananjadhav
Copy link
Collaborator

I'll work on the checklist today.

@mananjadhav
Copy link
Collaborator

I tried finding the offending PR but couldn't find one. We added another property in the optimistic data, and I am not sure at what point we should've included this along with Math.abs.

But I do think we should add a regression test for this one.

Regression test for this one:

  1. User A invites User B to Free workspace
  2. User B submits an expense
  3. User A goes offline
  4. User A taps ‘Pay’ on the original expense
  5. User B edits the expense amount OR adds an additional expense while User A is offline
  6. User A comes back online
  7. Confirm the money request is not paid and User A sees an error message: The requested amount has changed.

This will serve the linked duplicate issue as well.

@puneetlath Can you confirm the payout summary posted by the bot?

@puneetlath
Copy link
Contributor

Issue for regression test: https://github.com/Expensify/Expensify/issues/379640

I am confirming that the payment summary here is accurate. @mananjadhav please request on NewDot.

@JmillsExpensify
Copy link

$500 approved for @mananjadhav based on summary.

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 Internal Requires API changes or must be handled by Expensify staff
Projects
No open projects
Archived in project
Development

No branches or pull requests

7 participants