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-03-25] [HOLD 31374,30874] [$500] Room - Email id searched not found is not displayed in "Invite" page on tapping invite #34301

Closed
3 of 6 tasks
lanitochka17 opened this issue Jan 10, 2024 · 40 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Jan 10, 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: 1.4.24
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Tap on a room chat
  3. Tap header---- members
  4. In "Find a member" section, enter an email id which is not found
  5. Tap invite
  6. In "Invite new members" page , note the email id not found in "members" page is not displayed
  7. Navigate to KHN
  8. Tap profile icon
  9. Tap Workspaces ----- Workspace ---- Members
  10. In "Find a member" section, enter an email id which is not found
  11. Tap invite
  12. In "Invite new members" page , note the email id not found in "members" page is displayed

Expected Result:

In room, members page, email id searched not found must be displayed in "Invite new members" page when tapping "invite" like in Workspace "Invite new members" page

Actual Result:

In room, members page, email id searched not found is not displayed in "Invite new members" page when tapping "invite" like in Workspace "Invite new members" page

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

Bug6338147_1704917609704.r.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fabaa72dd4c7bad6
  • Upwork Job ID: 1745204029918879744
  • Last Price Increase: 2024-01-10
Issue OwnerCurrent Issue Owner: @dylanexpensify
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 10, 2024
@melvin-bot melvin-bot bot changed the title Room - Email id searched not found is not displayed in "Invite" page on tapping invite [$500] Room - Email id searched not found is not displayed in "Invite" page on tapping invite Jan 10, 2024
Copy link

melvin-bot bot commented Jan 10, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 10, 2024
Copy link

melvin-bot bot commented Jan 10, 2024

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

Copy link

melvin-bot bot commented Jan 10, 2024

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

@neonbhai
Copy link
Contributor

neonbhai commented Jan 10, 2024

Proposal

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

Search term lost for room invites

What is the root cause of that problem?

This happens as we are missing the search input preserving logic in RoomMembersPage

What changes do you think we should make in order

We should use SearchInputManager to preserve the search input for room members invite like we did for workspace members page.

We will:

  • Set up SearchInputManager to update the initial value and clean it up using a useEffect
    const isFocusedScreen = useIsFocused();
    
    useEffect(() => {
       if (!SearchInputManager.searchInput) {
           return;
       }
       setSearchValue(SearchInputManager.searchInput);
    }, [isFocusedScreen]);
    
    useEffect(() => () => (SearchInputManager.searchInput = ''), []);
  • Add a useEffect to set the value on mount:
    useEffect(() => {
       if (!SearchInputManager.searchInput) {
           return;
       }
       setSearchTerm(SearchInputManager.searchInput);
    }, []);
  • Update onChangeText:
    onChangeText={(value) => {
       SearchInputManager.searchInput = value;
       setSearchValue(value);
    }}

@dukenv0307
Copy link
Contributor

Proposal

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

In room, members page, email id searched not found is not displayed in "Invite new members" page when tapping "invite" like in Workspace "Invite new members" page

What is the root cause of that problem?

For RoomMemberPage and RoomInvitePage, we don't use SearchInputManager to share the search input value

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

On RoomMemberPage and RoomInvitePage, we should use SearchInputManager to share the search input value as we do in the WorkspaceMemberPage and WorkspaceInvitePage

  1. For RoomMemberPage

useEffect(() => {
setSearchValue(SearchInputManager.searchInput);
}, [isFocusedScreen]);
useEffect(() => () => (SearchInputManager.searchInput = ''), []);

onChangeText={(value) => {
SearchInputManager.searchInput = value;
setSearchValue(value);
}}

  1. For RoomInvitePage

useEffect(() => {
setSearchTerm(SearchInputManager.searchInput);
}, []);

onChangeText={(value) => {
SearchInputManager.searchInput = value;
setSearchTerm(value);

What alternative solutions did you explore? (Optional)

NA

@aimane-chnaif
Copy link
Contributor

We should hold this for #31374, #30874
Discussion: https://expensify.slack.com/archives/C01GTK53T8Q/p1703557793897069?thread_ts=1703360093.158969&cid=C01GTK53T8Q

@melvin-bot melvin-bot bot added the Overdue label Jan 13, 2024
@dylanexpensify dylanexpensify changed the title [$500] Room - Email id searched not found is not displayed in "Invite" page on tapping invite [HOLD 31374,30874] [$500] Room - Email id searched not found is not displayed in "Invite" page on tapping invite Jan 15, 2024
@dylanexpensify dylanexpensify added Weekly KSv2 and removed Daily KSv2 labels Jan 15, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jan 15, 2024
@dylanexpensify
Copy link
Contributor

put on hold

@dylanexpensify
Copy link
Contributor

holding

1 similar comment
@dylanexpensify
Copy link
Contributor

holding

@melvin-bot melvin-bot bot added the Overdue label Feb 6, 2024
@dylanexpensify
Copy link
Contributor

holding

@dylanexpensify
Copy link
Contributor

same

1 similar comment
@dylanexpensify
Copy link
Contributor

same

@dylanexpensify
Copy link
Contributor

same!

@dylanexpensify
Copy link
Contributor

same

@dylanexpensify
Copy link
Contributor

Same

@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 18, 2024
@melvin-bot melvin-bot bot changed the title [HOLD 31374,30874] [$500] Room - Email id searched not found is not displayed in "Invite" page on tapping invite [HOLD for payment 2024-03-25] [HOLD 31374,30874] [$500] Room - Email id searched not found is not displayed in "Invite" page on tapping invite Mar 18, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

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

Copy link

melvin-bot bot commented Mar 18, 2024

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

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

  • @jjcoffee requires payment (Needs manual offer from BZ)
  • @dukenv0307 requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Mar 18, 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:

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

@dylanexpensify
Copy link
Contributor

Payment coming up!

@jjcoffee
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR: N/A - this is more of a feature request, I think
  • 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: N/A
  • 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
  • Determine if we should create a regression test for this bug. Yes
  • 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.

Regression Test Proposal

  1. Create a private room
  2. Go to the room > header > member
  3. Search for an email that isn't already a member
  4. Click on the invite button
  5. Verify that the email that we entered in (3) is displayed in the search input of the invite page
  6. Invite some users
  7. After we go back to the invite page, verify that the search input is cleared

Do we agree 👍 or 👎

@jjcoffee
Copy link
Contributor

@dylanexpensify Friendly bump for payment 🙇

@dylanexpensify
Copy link
Contributor

dylanexpensify commented Mar 27, 2024 via email

@dukenv0307
Copy link
Contributor

Will pay today!

@dylanexpensify any update on this?

Thank you!

@melvin-bot melvin-bot bot added the Overdue label Apr 5, 2024
@jjcoffee
Copy link
Contributor

jjcoffee commented Apr 8, 2024

@dylanexpensify Friendly bump for payment on this 🙇

@dylanexpensify
Copy link
Contributor

Payment summary!

Please apply here!!

@melvin-bot melvin-bot bot removed the Overdue label Apr 8, 2024
@jjcoffee
Copy link
Contributor

jjcoffee commented Apr 8, 2024

@dylanexpensify Many thanks, applied!

@dylanexpensify
Copy link
Contributor

Offer sent @jjcoffee!!

@jjcoffee
Copy link
Contributor

jjcoffee commented Apr 8, 2024

@dylanexpensify Cheers, accepted! 🙏

@dylanexpensify
Copy link
Contributor

@jjcoffee paidddd! 🤑

@dukenv0307
Copy link
Contributor

Please apply here!!

@dylanexpensify I've applied, thank you!

@dylanexpensify
Copy link
Contributor

@dukenv0307 sent offer!

@dukenv0307
Copy link
Contributor

@dukenv0307 sent offer!

@dylanexpensify I've accepted 🙏

@melvin-bot melvin-bot bot added the Overdue label Apr 16, 2024
@puneetlath
Copy link
Contributor

@dylanexpensify can we pay this and close it out?

@dukenv0307
Copy link
Contributor

@dylanexpensify can we pay this and close it out?

@dylanexpensify friendly bump on the above!

@dylanexpensify
Copy link
Contributor

Apologies for delay here - done!!

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

No branches or pull requests

7 participants