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] Requests are editable after being paid or deleted #24578

Closed
1 of 6 tasks
izarutskaya opened this issue Aug 15, 2023 · 42 comments
Closed
1 of 6 tasks
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 External Added to denote the issue can be worked on by a contributor

Comments

@izarutskaya
Copy link

izarutskaya commented Aug 15, 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 a chat.

  2. Navigate to the "Request Money" section.

  3. Input a specific amount and send the request.

  4. Open the IOU (I Owe You) details.

  5. Send a message

  6. Now delete the IOU

  7. After deleting click on "Amount" filed

  8. Log in to "UserA's" account.

  9. Open the chat with "UserB."

  10. Navigate to the "Request Money" section.

  11. Enter a specific amount and send the request.

  12. Click on the IOU to open its detail.

  13. Click on the amount field.

  14. Open another browser and log in to "UserB's" account.

  15. Open the chat with "UserA" and click "Pay elsewhere."

  16. Return to "UserA's" account and edit the IOU amount.

Expected Result:

When request is deleted the transaction header should disappear.

When request is paid the transaction header fields should be disabled

Actual Result:

App crashes when clicking on Amount filed after deleting IOU or user can click on edit field on paid requests.

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:

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

7095068594568908720screen-recording-2023-08-14-at-112613-pm_seikoqvj.MP4
Recording.1211.mp4

Expensify/Expensify Issue URL:

Issue reported by: @ayazhussain79

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692037499896279

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0152f0c75c34484d87
  • Upwork Job ID: 1691453667712995328
  • Last Price Increase: 2023-08-15
  • Automatic offers:
    • Ollyws | Reviewer | 26133365
    • dukenv0307 | Contributor | 26133367
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 15, 2023

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

@melvin-bot
Copy link

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

@izarutskaya izarutskaya added the DeployBlockerCash This issue or pull request should block deployment label Aug 15, 2023
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 15, 2023
@OSBotify
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.

@melvin-bot
Copy link

melvin-bot bot commented Aug 15, 2023

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

@mountiny
Copy link
Contributor

This is a deploy blocker, but I am surprised that the transaction details are there when the request is deleted, we should make the buttons disabled in such case.

@Julesssss
Copy link
Contributor

Personally I don't think this should block the deploy as delete is a new-ish feature and trying to edit the amount of a deleted IOU is not a common flow. But we need to fix it for sure.

@mountiny
Copy link
Contributor

Yeah I would also err on a side of not blocking but fixing with urgency

@dukenv0307
Copy link
Contributor

dukenv0307 commented Aug 15, 2023

Proposal

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

Deleted request money info still visible in IOU transaction report with comments

What is the root cause of that problem?

The information on the money request still keeps when we delete the money request and we don't check parentReportAction is deleted or not to display the styles accordingly and disable to go to edit page

const {amount: transactionAmount, currency: transactionCurrency, comment: transactionDescription} = ReportUtils.getMoneyRequestAction(parentReportAction);

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

We should check the parentReportAction is deleted or not to display the styles accordingly

const isDeleted = ReportActionsUtils.isDeletedAction(parentReportAction);

Some suggestions expected for this issue:

  1. We can apply a strike-through style for information on money requests and disable if it is deleted
titleStyle={[..., isDeleted && styles.offlineFeedback.deleted]}
disabled={isSettled || isDeleted}
  1. We can change all titles with an explanation that is deleted and also disable it
title={formattedTransactionAmount + (isDeleted ? ` ${translate(common.deleted)}`)}

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Aug 15, 2023
@mountiny mountiny assigned mountiny and unassigned Li357 Aug 15, 2023
@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 Aug 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 15, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0152f0c75c34484d87

@melvin-bot melvin-bot bot changed the title Web - IOU - App crashes when clicking on Amount filed after deleting IOU [$1000] Web - IOU - App crashes when clicking on Amount filed after deleting IOU Aug 15, 2023
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 15, 2023

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

@mountiny
Copy link
Contributor

I can take this one over as I have worked on the feature.

@melvin-bot
Copy link

melvin-bot bot commented Aug 15, 2023

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

@Ollyws
Copy link
Contributor

Ollyws commented Aug 15, 2023

Will review tomorrow morning (GMT)

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Aug 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 16, 2023

🎯 ⚡️ Woah @Ollyws / @dukenv0307, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @dukenv0307 got assigned: 2023-08-15 14:18:44 Z
  • when the PR got merged: 2023-08-16 14:52:41 UTC

On to the next one 🚀

@mountiny
Copy link
Contributor

Merged 🎉

@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] Requests are editable after being paid or deleted [HOLD for payment 2023-08-28] [$1000] Requests are editable after being paid or deleted 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:

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:

  • [@Ollyws] The PR that introduced the bug has been identified. Link to the PR:
  • [@Ollyws] 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:
  • [@Ollyws] 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:
  • [@Ollyws] Determine if we should create a regression test for this bug.
  • [@Ollyws] 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.
  • [@maddylewis] 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 Overdue and removed Weekly KSv2 Daily KSv2 labels Aug 28, 2023
@maddylewis
Copy link
Contributor

maddylewis commented Aug 30, 2023

Payments


eligible for urgency bonus - #24578 (comment)

@maddylewis
Copy link
Contributor

offers sent to @ayazhussain79 / @Ollyws

@melvin-bot melvin-bot bot removed the Overdue label Aug 30, 2023
@ayazhussain79
Copy link
Contributor

@maddylewis offer accepted, Thank you

@maddylewis
Copy link
Contributor

everyone is paid! @Ollyws - will you confirm what needs to be actioned in this checklist? thank ya! #24578 (comment)

@Ollyws
Copy link
Contributor

Ollyws commented Sep 1, 2023

As this was a temporary fix for a new feature added shortly before in #23703 I don't think the checklist is helpful here. Let me know if you think otherwise.

@melvin-bot melvin-bot bot added the Overdue label Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

@Ollyws, @mountiny, @maddylewis, @dukenv0307 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2023

Everyone paid, closing thanks

@mountiny mountiny closed this as completed Sep 4, 2023
@melvin-bot melvin-bot bot removed the Overdue label Sep 4, 2023
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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants