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-06-20] [Search v1] - Skeleton appears under expenses when sorting expenses when there is no more expenses #43476

Closed
2 of 6 tasks
izarutskaya opened this issue Jun 11, 2024 · 24 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

Comments

@izarutskaya
Copy link

izarutskaya commented Jun 11, 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: v1.4.81-8
Reproducible in staging?: Y
Reproducible in production?: New feature
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Precondition:

  • User has a few expenses (two expenses would be enough).
  1. Go to staging.new.expensify.com
  2. Go to Search.
  3. Click on the header to sort.

Expected Result:

Skeleton will not appear under the expenses since there is no hidden expenses.

Actual Result:

Skeleton appears under the expenses when sorting expenses, even when there is no expense to load.

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

Bug6509214_1718101208792.20240611_181606.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @JmillsExpensify
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Jun 11, 2024
Copy link

melvin-bot bot commented Jun 11, 2024

Triggered auto assignment to @puneetlath (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Jun 11, 2024

Triggered auto assignment to @JmillsExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

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.

@izarutskaya
Copy link
Author

@JmillsExpensify I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@izarutskaya
Copy link
Author

We think this issue might be related to the #vip-vsb

@tsa321
Copy link
Contributor

tsa321 commented Jun 11, 2024

Proposal

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

Search - Skeleton appears under expenses when sorting expenses when there is no more expenses

What is the root cause of that problem?

In here:

const isLoadingMoreItems = !isLoadingItems && searchResults?.search?.isLoading;

IsLoadingMoreItems value doesn't check on offset of the search result. It is intended to display skeleton when loading more items (so offset must be more than 0)

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

We should add more check on the IsLoadingMoreItems by adding && searchResults?.search?.offset > 0

@luacmartins luacmartins removed the DeployBlocker Indicates it should block deploying the API label Jun 11, 2024
@luacmartins luacmartins changed the title Search - Skeleton appears under expenses when sorting expenses when there is no more expenses [Search v1] - Skeleton appears under expenses when sorting expenses when there is no more expenses Jun 11, 2024
@luacmartins luacmartins self-assigned this Jun 11, 2024
@luacmartins
Copy link
Contributor

I don't think this is a blocker since the feature is not broken. I agree that we can check for the offset. @tsa321 are you available to work on the PR?

@luacmartins luacmartins added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jun 11, 2024
@tsa321
Copy link
Contributor

tsa321 commented Jun 11, 2024

Yes @luacmartins

@tsa321
Copy link
Contributor

tsa321 commented Jun 11, 2024

@luacmartins The PR is ready

@puneetlath puneetlath removed their assignment Jun 11, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 13, 2024
@melvin-bot melvin-bot bot changed the title [Search v1] - Skeleton appears under expenses when sorting expenses when there is no more expenses [HOLD for payment 2024-06-20] [Search v1] - Skeleton appears under expenses when sorting expenses when there is no more expenses Jun 13, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 13, 2024
Copy link

melvin-bot bot commented Jun 13, 2024

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

Copy link

melvin-bot bot commented Jun 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 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-06-20. 🎊

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

  • @tsa321 requires payment (Needs manual offer from BZ)

Copy link

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

  • [@luacmartins] The PR that introduced the bug has been identified. Link to the PR:
  • [@luacmartins] 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:
  • [@luacmartins] 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:
  • [@tsa321] Determine if we should create a regression test for this bug.
  • [@tsa321] 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.
  • [@JmillsExpensify] 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 Jun 19, 2024
Copy link

melvin-bot bot commented Jun 20, 2024

Payment Summary

Upwork Job

  • Contributor: @tsa321 paid $250 via Upwork
  • Contributor+: @mollfpr paid $250 via NewDot

BugZero Checklist (@JmillsExpensify)

  • 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//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@melvin-bot melvin-bot bot added the Overdue label Jun 21, 2024
@JmillsExpensify
Copy link

I've filled out the payment summary above for @tsa321 for $250. It doesn't look like an Upwork job was created, so I created one. @tsa321 what's your Upwork profile so I can invite you?

@melvin-bot melvin-bot bot removed the Overdue label Jun 22, 2024
@mollfpr
Copy link
Contributor

mollfpr commented Jun 22, 2024

Sorry forgot to comment here that I reviewed the PR.

@JmillsExpensify
Copy link

Thanks, I've confirmed that's correct. Payment summary is updated above.

@tsa321
Copy link
Contributor

tsa321 commented Jun 22, 2024

@melvin-bot melvin-bot bot added the Overdue label Jun 24, 2024
@JmillsExpensify
Copy link

Offer sent

@melvin-bot melvin-bot bot removed the Overdue label Jun 25, 2024
@tsa321
Copy link
Contributor

tsa321 commented Jun 25, 2024

@JmillsExpensify I have accepted the offer

@JmillsExpensify
Copy link

All paid out! @mollfpr please complete the checklist and request payment in NewDot!

@mollfpr
Copy link
Contributor

mollfpr commented Jun 25, 2024

The PR that introduced the bug has been identified. Link to the PR:
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:

I couldn't trace the original offending PR.

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:

The regression step should be good.

Determine if we should create a regression test for this bug.
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.

  1. Create 3 iou requests to any user
  2. Open the transaction search page
  3. Reorder the transaction list search result by clicking on the list header
  4. Verify skeleton transaction items don't appear
  5. 👍 or 👎

@mallenexpensify
Copy link
Contributor

Contributor: @tsa321 paid $250 via Upwork
Contributor+: @mollfpr due $250 via NewDot

@JmillsExpensify
Copy link

$250 approved for @mollfpr

@JmillsExpensify
Copy link

Regression test created!

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
Projects
No open projects
Archived in project
Development

No branches or pull requests

7 participants