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-06-29] Selecting/removing one user selects/removes all the user on split bill group page #21075

Closed
1 of 6 tasks
kbecciv opened this issue Jun 19, 2023 · 25 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

@kbecciv
Copy link

kbecciv commented Jun 19, 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. Go to staging dot on web chrome
  2. Create a new group with multiple new users that you have not chatted before
  3. Click on + in the group and select split bill
  4. Enter amount and click on save/continue
  5. On the split money page, notice there are multiple users in green checkmark selected.
  6. Select the first user and notice all the other users are removed
  7. Again, select any user and notice all the users are selected

Expected Result:

Selecting/removing one user should not selects/remove all the user on split bill group page

Actual Result:

Selecting/removing one user selects/removes all the user on split bill group page

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: 1.3.29-0

Reproducible in staging?: yes

Reproducible in production?: no

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

Recording.3140.mp4
green-2023-06-17_14.32.08.mp4

Expensify/Expensify Issue URL:

Issue reported by: @priya-zha

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

View all open jobs on GitHub

@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Jun 19, 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 Jun 19, 2023

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

@aldo-expensify
Copy link
Contributor

Reproduced:
image

@aldo-expensify
Copy link
Contributor

The selectedParticipants here:

const formattedSelectedParticipants = getParticipantsWithAmount(selectedParticipants);

are missing the login:

image

@Beamanator do you know if that is expected? I see that the text contains the email. These accounts did not exist when I created the group with them.

@aldo-expensify
Copy link
Contributor

it seems like in Onyx personalDetails we have two entries for the accounts created with the group, for example:

image

The account appears under a real ID (11033541), missing the login key, and under a front end generated ID (4331464817836459) which does have the login information.

Debugging, I see that the participant is passed around with the real ID 11033541, so when we look in personalDetails for the login information, it is just not there.

@melvin-bot

This comment was marked as off-topic.

@Beamanator
Copy link
Contributor

Beamanator commented Jun 20, 2023

When I created a group w/ a user that didn't exist yet, I saw __fake__ in the LHN (mentioned in linked issue ^). I also noticed I see this in Onyx:

  • Note: I didn't see literally any of this in main, only in Staging
Screenshot 2023-06-20 at 2 43 03 PM

@Beamanator
Copy link
Contributor

Beamanator commented Jun 20, 2023

And this too, due to optimistic accountIDs:

  • Note: I DID see this in main and in Staging
Screenshot 2023-06-20 at 2 44 42 PM

@Beamanator
Copy link
Contributor

Beamanator commented Jun 20, 2023

Which also leads to Hidden showing in the report participants page (I know this has been reported elsewhere, i just want to add for complete investigation):

  • Note: this DID happen in main and in Staging
Screenshot 2023-06-20 at 2 45 22 PM

@Beamanator Beamanator self-assigned this Jun 20, 2023
@Beamanator
Copy link
Contributor

Beamanator commented Jun 20, 2023

On the "Split Bill" -> Confirm page (in main), I also saw:

  • Console error: Warning: Encountered two children with the same key, .$1=2undefined (probably because we're keying off logins and the users don't have login in their personalDetails, but they do have displayName and accountID

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Jun 20, 2023
@Beamanator
Copy link
Contributor

PR up for this: #21113

@Beamanator
Copy link
Contributor

Assigning @s77rt since they're reviewing the PR 👍 🙏

@luacmartins
Copy link
Contributor

Removing the blocker label since we merged the PR and are CPing it.

@luacmartins luacmartins added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jun 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 20, 2023

⚠️ 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 Daily KSv2 labels Jun 21, 2023
@melvin-bot melvin-bot bot changed the title Selecting/removing one user selects/removes all the user on split bill group page [HOLD for payment 2023-06-28] Selecting/removing one user selects/removes all the user on split bill group page Jun 21, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 21, 2023

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

@melvin-bot

This comment was marked as duplicate.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 22, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-06-28] Selecting/removing one user selects/removes all the user on split bill group page [HOLD for payment 2023-06-29] [HOLD for payment 2023-06-28] Selecting/removing one user selects/removes all the user on split bill group page Jun 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 22, 2023

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

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

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

@Beamanator Beamanator changed the title [HOLD for payment 2023-06-29] [HOLD for payment 2023-06-28] Selecting/removing one user selects/removes all the user on split bill group page [HOLD for payment 2023-06-29] Selecting/removing one user selects/removes all the user on split bill group page Jun 23, 2023
@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jun 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

@Beamanator, @s77rt, @aldo-expensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@aldo-expensify aldo-expensify added the Bug Something is broken. Auto assigns a BugZero manager. label Jul 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 1, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 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

@aldo-expensify
Copy link
Contributor

@zanyrenney I think this just needs payment handling.

@s77rt reviewed the PR #21113 which was fixing this deploy blocker

@melvin-bot melvin-bot bot removed the Overdue label Jul 1, 2023
@aldo-expensify
Copy link
Contributor

I'll be out of office next week, I don't think you need any action from me 👋

@melvin-bot melvin-bot bot added the Overdue label Jul 3, 2023
@zanyrenney
Copy link
Contributor

Going to chat to @Beamanator to understand the latest here!

@melvin-bot melvin-bot bot removed the Overdue label Jul 3, 2023
@zanyrenney
Copy link
Contributor

zanyrenney commented Jul 5, 2023

Hi there! After discussing internally, seeing as technically @s77rt & @narefyev91 both helped test & review that PR and you are both C+ we will be splitting the payment so it does not warrant the full $1000 each. it should be $500 each.

  • s77rt tested, but not on all platforms and left some good reviews - $500
  • narefyev91 tested on all platforms but didn't really review as fully - paid outside upwork as a member of callstack.

@zanyrenney
Copy link
Contributor

Payment on upwork sent for reporting bonus and C+ work from @s77rt . Closing this one out!

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
None yet
Development

No branches or pull requests

7 participants