Skip to content

[Due for payment 2025-04-07] [$250] Reports - Select all checkbox is not marked when it is selected #59142

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

Closed
8 tasks done
mitarachim opened this issue Mar 26, 2025 · 30 comments
Closed
8 tasks done
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

@mitarachim
Copy link

mitarachim commented Mar 26, 2025

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: 9.1.19-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Search

Action Performed:

Precondition:

  • Have at least one expense.
  1. Go to staging.new.expensify.com
  2. Go to Reports.
  3. Go to Expense Reports.
  4. Click Select all checkbox.

Expected Result:

Select all checkbox will be marked.

Actual Result:

Select all checkbox is not marked when it is selected.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6782562_1742982426153.20250326_174537.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021904839520100678307
  • Upwork Job ID: 1904839520100678307
  • Last Price Increase: 2025-03-26
  • Automatic offers:
    • nkdengineer | Contributor | 106675998
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @VictoriaExpensify
@mitarachim mitarachim added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 DeployBlocker Indicates it should block deploying the API DeployBlockerCash This issue or pull request should block deployment labels Mar 26, 2025
Copy link

melvin-bot bot commented Mar 26, 2025

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

Copy link

melvin-bot bot commented Mar 26, 2025

Triggered auto assignment to @VictoriaExpensify (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

melvin-bot bot commented Mar 26, 2025

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 26, 2025
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.

@Gonals Gonals removed the DeployBlocker Indicates it should block deploying the API label Mar 26, 2025
@Gonals
Copy link
Contributor

Gonals commented Mar 26, 2025

Not a backend blocker

@inimaga
Copy link
Contributor

inimaga commented Mar 26, 2025

Frontend issue so adding an external label.

@inimaga inimaga added the External Added to denote the issue can be worked on by a contributor label Mar 26, 2025
@melvin-bot melvin-bot bot changed the title Reports - Select all checkbox is not marked when it is selected [$250] Reports - Select all checkbox is not marked when it is selected Mar 26, 2025
Copy link

melvin-bot bot commented Mar 26, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 26, 2025
Copy link

melvin-bot bot commented Mar 26, 2025

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

@inimaga inimaga added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels Mar 26, 2025
Copy link

melvin-bot bot commented Mar 26, 2025

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

@nkdengineer
Copy link
Contributor

nkdengineer commented Mar 26, 2025

🚨 Edited by proposal-police: This proposal was edited at 2025-03-26 10:40:45 UTC.

Proposal

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

Select all checkbox is not marked when it is selected.

What is the root cause of that problem?

We detected the checkbox is checked if selectedItemsLength === data.length but in this case, it's not. The data.length contains a policyExpenseChat report with no transaction.

isChecked={selectedItemsLength === data.length}

We can't see it in the UI because we return early here if reportItem.transactions.length === 0

if (reportItem.transactions.length === 0) {
return;
}

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

We should filter out the report that doesn't have any transaction here

return Object.values(reportIDToTransactions).filter((report) => report.transactions.length);

return Object.values(reportIDToTransactions);

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

NA

What alternative solutions did you explore? (Optional)

Or we can update the way to detect the isChecked by filtering out the data that doesn't have any transaction if the type is expense

isChecked={selectedItemsLength === data.length}

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

Copy link
Contributor

⚠️ @nkdengineer Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).

@hoangzinh
Copy link
Contributor

@nkdengineer can you find the offending PR of this DB?

@nkdengineer
Copy link
Contributor

@hoangzinh It comes from #57549.

Copy link

melvin-bot bot commented Mar 26, 2025

📣 @nkdengineer 🎉 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 📖

@inimaga
Copy link
Contributor

inimaga commented Mar 26, 2025

Proposal looks good to me too. So assigned now.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Mar 26, 2025
@cristipaval cristipaval removed the DeployBlockerCash This issue or pull request should block deployment label Mar 26, 2025
Copy link

melvin-bot bot commented Mar 26, 2025

⚠️ 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 Mar 27, 2025
@melvin-bot melvin-bot bot changed the title [$250] Reports - Select all checkbox is not marked when it is selected [Due for payment 2025-04-03] [$250] Reports - Select all checkbox is not marked when it is selected Mar 27, 2025
Copy link

melvin-bot bot commented Mar 27, 2025

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 27, 2025
Copy link

melvin-bot bot commented Mar 27, 2025

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

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

Copy link

melvin-bot bot commented Mar 27, 2025

@hoangzinh @VictoriaExpensify @hoangzinh The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Mar 31, 2025
@melvin-bot melvin-bot bot changed the title [Due for payment 2025-04-03] [$250] Reports - Select all checkbox is not marked when it is selected [Due for payment 2025-04-07] [Due for payment 2025-04-03] [$250] Reports - Select all checkbox is not marked when it is selected Mar 31, 2025
Copy link

melvin-bot bot commented Mar 31, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.20-2 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 2025-04-07. 🎊

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

Copy link

melvin-bot bot commented Mar 31, 2025

@hoangzinh @VictoriaExpensify @hoangzinh The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 3, 2025
@VictoriaExpensify VictoriaExpensify changed the title [Due for payment 2025-04-07] [Due for payment 2025-04-03] [$250] Reports - Select all checkbox is not marked when it is selected [Due for payment 2025-04-07] [$250] Reports - Select all checkbox is not marked when it is selected Apr 4, 2025
@melvin-bot melvin-bot bot added the Overdue label Apr 7, 2025
@VictoriaExpensify
Copy link
Contributor

Payment summary:
Contributor: @nkdengineer owed $250 via NewDot
C+: @hoangzinh paid $250 via Upwork

@hoangzinh
Copy link
Contributor

Requested payment in ND

@garrettmknight
Copy link
Contributor

$250 approved for @hoangzinh

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

8 participants