You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Payment 2025-02-06] [$250] Search- New participant/email is shown as recent chat when found via search #53876
Version Number: 9.0.73-6 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y If this was caught during regression testing, add the test name, ID and link from TestRail:https://expensify.testrail.io/index.php?/tests/view/5318978 Email or phone of affected tester (no customers):gatantm@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Launch the app logged in and tap on search
Type an email never that you never chatted with
Expected Result:
The new email is shown on top without the recent chats header
Actual Result:
The new email is shown as part of the recent chats section although never talked to it before
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android: Standalone
Android: HybridApp
Android: mWeb Chrome
iOS: Standalone
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceBug6690166_1733848545538.ScreenRecording_12-10-2024_18-31-12_1.1.mp4
If needed we can use another copy for the title section but it would be aligned with how we are treating userToInvite in WorkspaceInvitePage if we set the title undefined.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
Please re-state the problem that we are trying to solve in this issue.
Search- New participant/email is shown as a recent chat when found via search
What is the root cause of that problem?
The filteredOptions array includes users who are not invited and are unknown because we didn't specify the canInviteUser and excludeUnknownUsers props when calling the OptionsListUtils.filterOptions function to get the recentReportsOptions.
changed the title [-]Search- New participant/email is shown as recent chat when found via search[/-][+][$250] Search- New participant/email is shown as recent chat when found via search[/+]on Dec 21, 2024
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production
2b. Reported on staging (deploy blocker)
2c. Reported on both staging and production
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] 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:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
1. Launch the app and tap on search
2. type anything
3. Verify the Recent chats header disappears once you type something
Activity
melvin-bot commentedon Dec 10, 2024
Triggered auto assignment to @strepanier03 (
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.FitseTLT commentedon Dec 10, 2024
Edited by proposal-police: This proposal was edited at 2024-12-10 17:49:25 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Search- New participant/email is shown as recent chat when found via search
What is the root cause of that problem?
We are pushing
userToInviteto report options list hereApp/src/components/Search/SearchRouter/SearchRouterList.tsx
Lines 385 to 387 in 219dabf
and displaying it as part of recent chat section here
App/src/components/Search/SearchRouter/SearchRouterList.tsx
Lines 410 to 411 in 219dabf
What changes do you think we should make in order to solve the problem?
We should display userToInvite on its own section so remove
App/src/components/Search/SearchRouter/SearchRouterList.tsx
Lines 385 to 387 in 219dabf
and push a new section with
filteredOptions.userToInviteabove hereApp/src/components/Search/SearchRouter/SearchRouterList.tsx
Lines 410 to 411 in 219dabf
If needed we can use another copy for the title section but it would be aligned with how we are treating userToInvite in WorkspaceInvitePage if we set the title undefined.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
Alternatively we can also remove
App/src/components/Search/SearchRouter/SearchRouterList.tsx
Lines 385 to 387 in 219dabf
and then add this line of codes here
Tony-MK commentedon Dec 10, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Search- New participant/email is shown as a recent chat when found via search
What is the root cause of that problem?
The
filteredOptionsarray includes users who are not invited and are unknown because we didn't specify thecanInviteUserandexcludeUnknownUsersprops when calling theOptionsListUtils.filterOptionsfunction to get therecentReportsOptions.App/src/components/Search/SearchRouter/SearchRouterList.tsx
Lines 375 to 381 in b27d5c7
What changes do you think we should make in order to solve the problem?
We should filter out some of the unknown users and users who have not been invited.
We set the
canInviteUserandexcludeUnknownUsersprops tofalseandtruerespectively as below.App/src/components/Search/SearchRouter/SearchRouterList.tsx
Line 381 in b27d5c7
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can make tests to make sure that the
recentReportsOptionshave reports where a participant has started interacting with the current user.So, we will assert if new participant's email is in
recentReportsOptions.melvin-bot commentedon Dec 16, 2024
@strepanier03 Eep! 4 days overdue now. Issues have feelings too...
melvin-bot commentedon Dec 18, 2024
@strepanier03 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
melvin-bot commentedon Dec 20, 2024
@strepanier03 Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!
melvin-bot commentedon Dec 21, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021870567347662440875
[-]Search- New participant/email is shown as recent chat when found via search[/-][+][$250] Search- New participant/email is shown as recent chat when found via search[/+]79 remaining items
strepanier03 commentedon Feb 7, 2025
@Ollyws - I'll check tomorrow for the checklist and reg test steps and then post the payment summary.
@FitseTLT - I paid your contract in Upwork and closed the contract.
Ollyws commentedon Feb 7, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] 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:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
melvin-bot commentedon Feb 10, 2025
@rlinoz, @strepanier03, @Ollyws, @FitseTLT Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
FitseTLT commentedon Feb 10, 2025
@strepanier03 Payment overdue
strepanier03 commentedon Feb 11, 2025
@FitseTLT - I paid your contract and closed it last week.
strepanier03 commentedon Feb 11, 2025
@Ollyws payment summary below, feel free to request payment now.
strepanier03 commentedon Feb 11, 2025
Payment Summary
Ollyws commentedon Feb 11, 2025
Requested in ND.
garrettmknight commentedon Feb 11, 2025
$250 approved for @Ollyws