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-09-06] [$1000] Tooltip content only have comma in content when hovering group chat with non-register users #22593

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

Comments

@kavimuru
Copy link

kavimuru commented Jul 10, 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. Create a new group chat with non-register users
  2. Go to Search page, search the group and hover the subscript avatar of the group chat.
  3. Observer the tooltip content.

Expected Result:

Tooltip content should have the user email.

Actual Result:

Tooltip content only have comma

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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.38-3
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
Notes/Photos/Videos: Any additional supporting documentation

Screen.Recording.2023-07-10.at.22.03.48.mov
Recording.1239.mp4

Expensify/Expensify Issue URL:
Issue reported by: @hungvu193
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688794537559139

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017f7d4bfbb8b38ac0
  • Upwork Job ID: 1678800589651423232
  • 2023-07-11
  • Automatic offers:
    • hoangzinh | Contributor | 25797512
    • hungvu193 | Reporter | 25797513
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

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

@melvin-bot
Copy link

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

@allroundexperts
Copy link
Contributor

Proposal

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

Tooltips not working for groups that have all new members.

What is the root cause of that problem?

We're filtering out the personalDetailsList here to include only those accounts that have a login key available.

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

We need to remove this line.

What alternative solutions did you explore? (Optional)

I'm not sure why this was added in the first place. A better solution can be proposed if the reasons are clarified.

@sakluger
Copy link
Contributor

This only happens when the group chat users have not yet validated their Expensify accounts, we should still fix this though.

@sakluger sakluger added the External Added to denote the issue can be worked on by a contributor label Jul 11, 2023
@melvin-bot melvin-bot bot changed the title Tooltip content only have comma in content when hovering group chat with non-register users [$1000] Tooltip content only have comma in content when hovering group chat with non-register users Jul 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

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

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

melvin-bot bot commented Jul 11, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

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

@syedsaqib12
Copy link

Please re-state the problem that we are trying to solve in this issue.
Tooltips is not working properly.

What changes do you think we should make in order to solve the problem?
We need to remove tooltip.

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

📣 @syedsaqib12! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@hoangzinh
Copy link
Contributor

Proposal

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

Tooltip content only have comma in content when hovering group chat with non-register users

What is the root cause of that problem?

Agree with @allroundexperts , we are filtering out personalDetails that doesn't have login

// We're only picking personal details that have logins set
// This is a temporary fix for all the logic that's been breaking because of the new privacy changes
// See https://github.com/Expensify/Expensify/issues/293465 for more context
// eslint-disable-next-line no-param-reassign
personalDetails = _.pick(personalDetails, (detail) => Boolean(detail.login));

And then, in createOption utils, we pass above filtering personalDetails when get option's icons, it would return empty string here

lodashGet(personalDetails, [accountID, 'login'], lodashGet(personalDetails, [accountID, 'displayName'], '')),

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

I could not access this GH issue https://github.com/Expensify/Expensify/issues/293465 to read more context, but I feel instead of filtering personalDetails here, we should only filter when we create allPersonalDetailsOptions here

let allPersonalDetailsOptions = _.map(personalDetails, (personalDetail) =>
createOption([personalDetail.accountID], personalDetails, reportMapForAccountIDs[personalDetail.accountID], reportActions, {
showChatPreviewLine,
forcePolicyNamePreview,
}),
);

@rushatgabhane
Copy link
Member

reviewing today

@rushatgabhane
Copy link
Member

I don't think we can just remove this line. It says that it's a temorary fix for things that were breaking because of privacy changes.

// We're only picking personal details that have logins set
// This is a temporary fix for all the logic that's been breaking because of the new privacy changes
// See https://github.com/Expensify/Expensify/issues/293465 for more context
// eslint-disable-next-line no-param-reassign
personalDetails = _.pick(personalDetails, (detail) => Boolean(detail.login));

@rushatgabhane
Copy link
Member

rushatgabhane commented Jul 14, 2023

@sakluger could we please get some context from https://github.com/Expensify/Expensify/issues/293465
(it's internal only)

Maybe they plan to fix this after some time? idk

@melvin-bot melvin-bot bot added the Overdue label Jul 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

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

@sakluger
Copy link
Contributor

I reopened that GH issue and left a comment to try to figure out which way to go from here. Basically, we modified getOptions to only use personal details that have logins set because it was breaking certain flows otherwise.

The two options I can think of are to either remove the extra commas, or try to figure out some other way display the email addresses of the unregistered users. I think we'll probably end up removing the extra commas, but let's wait to see until I get an answer.

@melvin-bot melvin-bot bot removed the Overdue label Jul 17, 2023
@jasperhuangg
Copy link
Contributor

jasperhuangg commented Jul 17, 2023

Not sure if we should get rid of that filter right now. If we do it'll break a whole bunch of other important functionality, including Tasks and IOUs.

We haven't entirely decided what we want to do yet about that, we should probably have a discussion about this change, and HOLD this issue on that for the time being.

@jasperhuangg jasperhuangg changed the title [$1000] Tooltip content only have comma in content when hovering group chat with non-register users [HOLD] [$1000] Tooltip content only have comma in content when hovering group chat with non-register users Jul 17, 2023
@allroundexperts
Copy link
Contributor

If we do it'll break a whole bunch of other important functionality,

@jasperhuangg Curious about which functionality breaks because of this?

@jasperhuangg
Copy link
Contributor

jasperhuangg commented Jul 17, 2023

A lot of our Tasks and IOU functionality was written under the assumption that the personalDetails you could look up in their options list always contained logins.

But as a result of a different privacy project for a conference, we sometimes don't send logins back anymore with certain personal details. As a result, a lot of the options list used in Tasks and IOUs were crashing the app, so we added this filter as a temporary fix, while we sorted out how we were going to rewrite a lot of this functionality to rely on accountIDs (which are always sent back with personalDetails) instead of logins.

@hoangzinh
Copy link
Contributor

@jasperhuangg how do you think about my proposal here #22593 (comment)

I suggested just change the place we filter out personalDetails without login when we build personalDetails options list.

@melvin-bot melvin-bot bot added the Overdue label Jul 20, 2023
@rushatgabhane
Copy link
Member

@Beamanator i think we forgot to remove hold from this issue

@rushatgabhane
Copy link
Member

I think we can lift hold and move forward

@jasperhuangg jasperhuangg changed the title [HOLD] [$1000] Tooltip content only have comma in content when hovering group chat with non-register users [$1000] Tooltip content only have comma in content when hovering group chat with non-register users Aug 21, 2023
@jasperhuangg
Copy link
Contributor

HOLD removed, thanks for keeping things moving!

@jasperhuangg
Copy link
Contributor

@Beamanator I can take over here, sorry for the delay

@jasperhuangg
Copy link
Contributor

@hoangzinh looking forward to reviewing your PR!

@melvin-bot
Copy link

melvin-bot bot commented Aug 24, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @hoangzinh got assigned: 2023-07-27 23:09:11 Z
  • when the PR got merged: 2023-08-24 18:27:20 UTC
  • days elapsed: 19

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 30, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Tooltip content only have comma in content when hovering group chat with non-register users [HOLD for payment 2023-09-06] [$1000] Tooltip content only have comma in content when hovering group chat with non-register users Aug 30, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

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

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:

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 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:

  • [@rushatgabhane] The PR that introduced the bug has been identified. Link to the PR:
  • [@rushatgabhane] 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:
  • [@rushatgabhane] 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:
  • [@rushatgabhane] Determine if we should create a regression test for this bug.
  • [@rushatgabhane] 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.
  • [@sakluger] 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 Sep 5, 2023
@sakluger
Copy link
Contributor

sakluger commented Sep 5, 2023

I went ahead and paid out the reporter bounty to @hungvu193

@rushatgabhane could you please complete the BZ checklist by tomorrow? That way we can approve your manual payment right away after the 7-day hold.

@rushatgabhane
Copy link
Member

rushatgabhane commented Sep 5, 2023

  1. The PR that introduced the bug has been identified. Link to the PR: Only consider personal details with logins set in OptionsListUtils.getOptions #21159

  2. 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: https://github.com/Expensify/App/pull/21159/files#r1316237566

  3. 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: N.A.

  4. Determine if we should create a regression test for this bug. No

  5. 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 - N.A.

@rushatgabhane
Copy link
Member

Created a manual request here - https://staging.new.expensify.com/r/3100659356231581

@sakluger
Copy link
Contributor

sakluger commented Sep 6, 2023

Thanks @rushatgabhane! I assigned @JmillsExpensify to handle the payment request.

Everyone else has been paid out, I'll leave this open so Jason can approve the final payment.

@sakluger
Copy link
Contributor

sakluger commented Sep 8, 2023

I checked with @JmillsExpensify and I'm good to close any issue that is only pending the manual request payment, since he sees all payment requests directly in NewDot.

@sakluger sakluger closed this as completed Sep 8, 2023
@JmillsExpensify
Copy link

Can I get a payment summary with amount so that I can pay @rushatgabhane?

@sakluger
Copy link
Contributor

sakluger commented Oct 7, 2023

@JmillsExpensify here you go!

Summarizing payouts for this issue:

Bug reporter: @hungvu193 $250 (paid via Upwork)
Contributor: @hoangzinh $1000 (paid via Upwork)
Contributor+: @rushatgabhane $1000 (Manual Request)

@JmillsExpensify
Copy link

$1,000 payment approved for @rushatgabhane based on summary.

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

9 participants