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-01-04] [$500] IOS - A blank spot appears after deleting a money request #30726

Closed
1 of 6 tasks
lanitochka17 opened this issue Nov 1, 2023 · 35 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 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Nov 1, 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.2.94.0
**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: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Request money manually form Fab menu
  2. Select user
  3. Add receipt
  4. Select from Gallery
  5. Complete request
  6. Open Request
  7. Select tree dot and select Delete Request

Expected Result:

NO blank spot appears after deleting a money request

Actual Result:

A blank spot appears after deleting a money request

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

Bug6259710_1698859295882.RPReplay_Final1698856245__1_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013eb8adb4d15a7d21
  • Upwork Job ID: 1719769628619288576
  • Last Price Increase: 2023-11-15
  • Automatic offers:
    • shubham1206agra | Reviewer | 27753278
    • tienifr | Contributor | 27753279
@lanitochka17 lanitochka17 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 Nov 1, 2023
@melvin-bot melvin-bot bot changed the title IOS - A blank spot appears after deleting a money request [$500] IOS - A blank spot appears after deleting a money request Nov 1, 2023
Copy link

melvin-bot bot commented Nov 1, 2023

Job added to Upwork: https://www.upwork.com/jobs/~013eb8adb4d15a7d21

Copy link

melvin-bot bot commented Nov 1, 2023

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

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

melvin-bot bot commented Nov 1, 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

Copy link

melvin-bot bot commented Nov 1, 2023

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

@tienifr
Copy link
Contributor

tienifr commented Nov 2, 2023

Proposal

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

IOS - A blank spot appears after deleting a money request

What is the root cause of that problem?

We already have the logic to scroll to bottom when the last item change height here. But we just use listItemHeightNormal: 64 and it's not enough. For the money request with receipt, the height will be 278 > 64 so the FlatList does not scroll to bottom

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

We should add the logic to scroll to bottom if the last action get changed

In order to do that, we can store the previous last reportActionID and compare it with current last reportActionID

In ReportActionsList

    const previousLastIndex = usePrevious(sortedReportActions[0].reportActionID) // we can use useRef here

    useEffect(()=>{
        if(previousLastIndex !== sortedReportActions[0].reportActionID && reportActionSize.current > sortedReportActions.length){
            reportScrollManager.scrollToBottom()
        }
    }, [previousLastIndex, sortedReportActions[0].reportActionID])

Result

Screen.Recording.2023-11-02.at.15.06.19.mov

@melvin-bot melvin-bot bot added the Overdue label Nov 6, 2023
@NicMendonca
Copy link
Contributor

@shubham1206agra proposal for you ^

@melvin-bot melvin-bot bot removed the Overdue label Nov 6, 2023
@shubham1206agra
Copy link
Contributor

@tienifr Thanks for the proposal.
The RCA looks right. I have some follow-up questions.
Why won't increasing the height work?
And can you try to come up with an alternative solution? Cause this solution might introduce regressions.

@tienifr
Copy link
Contributor

tienifr commented Nov 7, 2023

Why won't increasing the height work?

@shubham1206agra I thought about this solution but the height is dynamic (we can write the long message), that why we can't just increase the height

Copy link

melvin-bot bot commented Nov 8, 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 melvin-bot bot added the Overdue label Nov 9, 2023
Copy link

melvin-bot bot commented Nov 10, 2023

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

Copy link

melvin-bot bot commented Nov 10, 2023

@NicMendonca, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!

@NicMendonca
Copy link
Contributor

@shubham1206agra bump on this comment!

@melvin-bot melvin-bot bot removed the Overdue label Nov 13, 2023
@shubham1206agra
Copy link
Contributor

@tienifr proposal looks good to me. I just need to confirm all scenerios that might break using this logic.

@shubham1206agra
Copy link
Contributor

Can someone confirm if its still reproducible in DEV?

@shubham1206agra
Copy link
Contributor

shubham1206agra commented Nov 14, 2023

I think #26498 changed the value of autoscrollToTopThreshold to 128.
See #26498 (review).

@tienifr A similar solution to you was marked as a workaround. #26498 (comment)

cc @roryabraham @mountiny as you have more context to this issue.

@tienifr
Copy link
Contributor

tienifr commented Nov 15, 2023

Increasing autoscrollToTopThreshold is not a good idea IMO, let's write the super long message (the height would > 128px) then delete it, the blank space will appear

@mountiny
Copy link
Contributor

I think Rory mentioned we could dynamically set the autoscrollToTopThreshold to the screen height, right? that would work then for most cases.

Copy link

melvin-bot bot commented Nov 15, 2023

@NicMendonca @shubham1206agra 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!

Copy link

melvin-bot bot commented Nov 15, 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 melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 20, 2023
Copy link

melvin-bot bot commented Nov 20, 2023

📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Nov 20, 2023

📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

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

melvin-bot bot commented Dec 15, 2023

This issue has not been updated in over 15 days. @rlinoz, @NicMendonca, @shubham1206agra, @tienifr eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@shubham1206agra
Copy link
Contributor

I will finish the review this weekend

@NicMendonca
Copy link
Contributor

@shubham1206agra did you get a chance to review?

@shubham1206agra
Copy link
Contributor

@NicMendonca Yes, I just needed some minor adjustments, which I requested before approving the PR

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Monthly KSv2 labels Dec 28, 2023
@melvin-bot melvin-bot bot changed the title [$500] IOS - A blank spot appears after deleting a money request [HOLD for payment 2024-01-04] [$500] IOS - A blank spot appears after deleting a money request Dec 28, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 28, 2023
Copy link

melvin-bot bot commented Dec 28, 2023

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

Copy link

melvin-bot bot commented Dec 28, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.18-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 2024-01-04. 🎊

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 Dec 28, 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:

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

@shubham1206agra
Copy link
Contributor

shubham1206agra commented Jan 3, 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:

  1. Request money manually form Fab menu with receipt.
  2. Open Request created in previous step.
  3. Select three dot and select Delete Request, and delete the request.
  • [@NicMendonca] 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 labels Jan 4, 2024
@NicMendonca
Copy link
Contributor

@shubham1206agra @tienifr You've both been paid via Upwork 👍

@NicMendonca
Copy link
Contributor

all set here!

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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants