Skip to content

Group - All recents users selected when clicking on "Add to group" #35701

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
6 tasks done
kbecciv opened this issue Feb 2, 2024 · 23 comments
Closed
6 tasks done

Group - All recents users selected when clicking on "Add to group" #35701

kbecciv opened this issue Feb 2, 2024 · 23 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Feb 2, 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: v1.4.36-0
Reproducible in staging?: y
Reproducible in production?: yn
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. Click on "+"
  2. Go to the "Start chat"
  3. Click on "Add to group" of recents users

Expected Result:

Only one user should be selected when clicking on "Add to group"

Actual Result:

All recents users selected when clicking on "Add to group"

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

Bug6365181_1706899051810.2024-02-02_21-31-14.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016be032c785f4143f
  • Upwork Job ID: 1754458637091528704
  • Last Price Increase: 2024-02-05
@kbecciv kbecciv added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 and removed Daily KSv2 labels Feb 2, 2024
Copy link
Contributor

github-actions bot commented Feb 2, 2024

👋 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.

Copy link

melvin-bot bot commented Feb 2, 2024

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

@kbecciv
Copy link
Author

kbecciv commented Feb 2, 2024

We think that this bug might be related to #vip-vsb
CC @quinthar

@shubham1206agra
Copy link
Contributor

Offending PR: #34847
cc @Krishna2323

@Krishna2323
Copy link
Contributor

@shubham1206agra, I don't think it's coming from that PR, still looking at it.

@marcaaron
Copy link
Contributor

I believe it is caused by this very large PR

Debugging locally and there seems to be some issue with this commit

@s77rt
Copy link
Contributor

s77rt commented Feb 3, 2024

The option selector isSelected logic compares multiple fields and some of these fields are not unique depending on the supplied list, e.g.:

  • List of policies, we should compare policy id
  • List of reports, we should compare report id
  • List of accounts, we should compare account id

The problem is that the option selector does not know the type of list so even if we are supplying a list of account it still compares the policy id field (which is not unique among accounts).

I think the best to do here is to compare keyForList as it's the only field that's guaranteed to be unique.

@rojiphil

This comment was marked as outdated.

@hayata-suenaga
Copy link
Contributor

@s77rt I feel like your solution works the best. Since you review the PR, could you raise a PR to fix this please?

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Feb 4, 2024
@s77rt
Copy link
Contributor

s77rt commented Feb 4, 2024

@hayata-suenaga #35770

@mountiny mountiny added Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor labels Feb 5, 2024
Copy link

melvin-bot bot commented Feb 5, 2024

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

@melvin-bot melvin-bot bot changed the title Group - All recents users selected when clicking on "Add to group" [$500] Group - All recents users selected when clicking on "Add to group" Feb 5, 2024
Copy link

melvin-bot bot commented Feb 5, 2024

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

@melvin-bot melvin-bot bot added Help Wanted Apply this label when an issue is open to proposals by contributors Daily KSv2 and removed Weekly KSv2 labels Feb 5, 2024
Copy link

melvin-bot bot commented Feb 5, 2024

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

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

melvin-bot bot commented Feb 5, 2024

❌ There was an error making the offer to @s77rt for the Contributor role. The BZ member will need to manually hire the contributor.

@s77rt
Copy link
Contributor

s77rt commented Feb 5, 2024

This can be closed. No payment is due here since it's part of the ideal nav.

@luacmartins
Copy link
Contributor

Closing as per the comment above

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Feb 5, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Feb 7, 2024
@melvin-bot melvin-bot bot changed the title [$500] Group - All recents users selected when clicking on "Add to group" [HOLD for payment 2024-02-14] [$500] Group - All recents users selected when clicking on "Add to group" Feb 7, 2024
Copy link

melvin-bot bot commented Feb 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 Feb 7, 2024
Copy link

melvin-bot bot commented Feb 7, 2024

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

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

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

Copy link

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

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

@s77rt
Copy link
Contributor

s77rt commented Feb 8, 2024

  • The PR that introduced the bug has been identified: [Wave 8] Ideal nav  #33280
  • The offending PR has been commented on: Not needed
  • A discussion in #expensify-bugs has been started: n/a
  • Determine if we should create a regression test for this bug: No

@MitchExpensify
Copy link
Contributor

Payment summary:

$500 - @s77rt (NewDot)

@s77rt
Copy link
Contributor

s77rt commented Feb 9, 2024

@MitchExpensify No payment is required here.

@hayata-suenaga hayata-suenaga changed the title [HOLD for payment 2024-02-14] [$500] Group - All recents users selected when clicking on "Add to group" Group - All recents users selected when clicking on "Add to group" Feb 9, 2024
@hayata-suenaga
Copy link
Contributor

yep this is an issue for a regression stemmed from the Ideal Nav PR

sorry about that I should have specified that

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

No branches or pull requests