-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Web - Unable to search room after it has been created #6726
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
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @NikkiWines ( |
I have added two more lines to the PR I already raised to fix other two blockers related to this component to fix this issue as well. |
Actually, just noticed that this has also the I will split this into two issues then. |
Alright, so I have updated this issue to be only about the inability to search the room after creating it and created separate deploy locker for the room name here as their solutions are not completely connected and it would be better to have a separate PR to solve this as the PR mentioned above is already covering 3 issues (better for testing and granularity). |
Actually, we have found out that this is being worked on by @TomatoToaster. Since the policy rooms are still in beta, full functionality is not required. Internal issue here |
Ok I figured out the source of this problem. When we're creating these policyRooms, somehow they are not being added to the sharedReports table. Typically with chatReports (including defaultRooms), the report has an accountID of 0 and all the members are included in the sharedReports table. What's happening right now is that the policyRooms have the owner on the report but the report is not shared with them. Here's an example of a policy room, which has no entries in shared reports and a non-zero accountID:
Here's an example of a default chat room with one person in it (
|
You can see from these lines of code: We fetch chat reports that are shared with users NOT chat reports that they own. |
Got a PR for this soon ~ just testing it out locally first. |
Ok so that PR didn't work and herein lies the problem: It seems like we can't really "share" a report with the person who creates it, so maybe we should remove the creator's accountID from the chat report because other chat reports don't tend to have that. Alternatively we could tweak the fetch chats query to include owned reports, but I think the above solution makes more sense. No other chats seem to be "owned" by users who are in them. This will also allow owners to leave rooms they create if they want to as well. |
I'll work on a CQ to fix this issue for existing chatReports. However, we should run it after the above PR goes into production so that we can capture all chatReports that are made incorrectly in production. |
@TomatoToaster Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@TomatoToaster Eep! 4 days overdue now. Issues have feelings too... |
Oh I didn't notice this was overdue because the PR was already merged! I still need to make the query to fix the existing chats. That's not a super pressing issue though so I'll make this a weekly. Going to finish workspace chat docs first. |
This should be fixed as of this PR for new Workspace Chats |
Issue not reproducible during KI retests. (First week) |
Issue not reproducible during KI retests. (Second week) |
Issue not reproducible during KI retests. (Third week) Closing |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
We are able to search for this room using its title.
Actual Result:
Room does not show as an option when we search for it.
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.20-0
Reproducible in staging?: Yes
Reproducible in production?: No
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Video
Expensify/Expensify Issue URL:
Issue reported by: Manan Jadhav & Applause
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1639336320144000
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: