-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] Search - Duplicate 'Concierge' are displayed on Search page #41131
Comments
Triggered auto assignment to @anmurali ( |
Triggered auto assignment to @cristipaval ( |
👋 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:
|
@cristipaval FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
I can reproduce this but it resolves in a few seconds and then subsequent searches only pull up one result. So I don't think this needs to be an hourly issue.. |
Job added to Upwork: https://www.upwork.com/jobs/~01472b58e48bd6509a |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Exclude duplicated concierge options (and now DMs too) in the search results. What is the root cause of that problem?Those two concierge results are both from [email protected]. When creating options, we fetch participants for each report. and this logic is changed in #40271 to the following. App/src/libs/OptionsListUtils.ts Line 1459 in 84c4535
Current concierge report has 2 participants, one is [email protected] and the other one is me. App/src/libs/OptionsListUtils.ts Lines 734 to 738 in 84c4535
Concierge report has 2 participants, so it passes this App/src/libs/OptionsListUtils.ts Lines 1799 to 1801 in 84c4535
Thus, [email protected] is included from personalDetails. Then, why visiting concierge report and opening search does not show duplicated result?It's because, #40271 has missed applying correct logics here. App/src/libs/OptionsListUtils.ts Lines 1490 to 1498 in e138a59
Search options are updated when report changes, and above function is used in this case. What changes do you think we should make in order to solve the problem?
This is already done on my side and checked it fully functioned. What alternative solutions did you explore? (Optional)n/a |
@skyweb331, as this bug was considered a deploy blocker, can you identify the offending PR from #41122 (comment)? |
Two concierge results appear on search result because of #37519. Current production excludes the concierge report from And this way, we can keep #37519 working as intended |
@skyweb331, Thanks for the proposal, I reverted #40271 and confirmed that it's the offending PR. Can you clarify the following:
When reverting the PR I see that the report option is included and the personalDetails option is not included. I think that this is expected behaviour. Also, your suggested solution works, but I don't think we should exclude the Concierge from |
@rayane-djouah Did you revert the PR??? I see that PR is now on Production and I can see the same result on Production now. |
@skyweb331 I mean that I reverted the PR locally for testing |
Can we discuss this on slack? |
@rayane-djouah #40271 has missed one change. Following function should use App/src/libs/OptionsListUtils.ts Lines 1490 to 1498 in e138a59
As I mentioned before, search options are created at the first search window is opened, and search options are updated when reports and personal details are updated. And #40271 missed applying the correct logic when a report is changed, so it looks like it works correct once you visit the concierge report. But this is completely incorrect. We should use In this case, problem is not limited to only concierge report. I checked that current production shows duplicated search results for every DMs ( two participants, one is me ). Recording.2024-04-30.144058.mp4So my solution is to filter DMs participants from personalDetails and my code is here. This way, we can keep #40271 working correctly and remove the duplications. |
@skyweb331 According to contributing guidelines when you want to update an existing proposal, please go back and edit your original proposal, then post a new comment to the issue to alert everyone that it has been updated. The proposal lacks a clear and easily understood root cause; please focus on finding an explanation for why the personal details option is not excluded when there is a corresponding report and try to debug the flow to find the root cause. This will help us avoid writing a workaround. Please update your original proposal and tag me again when it's ready for review. |
@rayane-djouah Updated proposal |
@skyweb331, the root cause is making sense to me now. App/src/libs/OptionsListUtils.ts Lines 734 to 738 in 84c4535
|
:) He fixed his bug... Took long time to discussion, no result for me |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
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.67-0
Reproducible in staging?: y
Reproducible in production?: n
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:
Expected Result:
There shouldn't be duplicate Concierge result
Actual Result:
There is duplicate Concierge result
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6463560_1714203662919.Screen_Recording_2024-04-27_at_10.33.17_in_the_morning.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: