Update search to work with chat rooms with empty participants + prevent searching for chat rooms by participant#43626
Conversation
…omsEmptyParticipantsChatFinder
|
@marcaaron Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Converting to draft while I fix some bugs I noticed during testing @marcaaron |
…'t have participants in Onyx
|
@marcaaron putting this on draft while the convo here is sorted |
…omsEmptyParticipantsChatFinder
|
Sorry for the delay, been prioritizing #fireroom-2024-07-02-newdot-deploy-blocked, now that that's done I'll address the comments! |
…omsEmptyParticipantsChatFinder
rlinoz
left a comment
There was a problem hiding this comment.
Looks good to me. Great job on this one you both!
Just that one NAB about adding the logs.
|
LGTM, not sure if we need such extensive commit history for the small number of changes that we landed on 😄 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
Just fixed the conflicts and ran through the manual tests again, we should be ready to merge @rlinoz @marcaaron 🙇 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/jasperhuangg in version: 9.0.6-0 🚀
|
|
🚀 Deployed to staging by https://github.com/jasperhuangg in version: 9.0.6-0 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.0.6-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.0.6-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.6-8 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
Details
Needed for https://github.com/Expensify/Auth/pull/11238
When searching for reports we don't send back the participants since they aren't needed to display the search results and can be extremely large for certain types of rooms.
We need to allow chat rooms with empty participants to display in this case. There shouldn't ever be default rooms with empty participants in any other case.
We also don't add room participant logins/display names to the search value consideration when filtering search results.
Fixed Issues
$ Related to #42989
PROPOSAL:
Tests
Comment this line out so we don't load any reports after signing in.
Checkout and build https://github.com/Expensify/Auth/pull/11238
../script/clitools.sh generator:domain. Set a display name for this account that does not contain parts of the account's login.#announce). Verify the #announce room appears correctly. Open the #announce room, verify it displays correctly (namely that the participants are populated in the Members page).QA Steps
We're just verifying that the chat finder page still works as it does on production since there shouldn't be any change to the data that it's working with since this needs to be merged before the Auth PR.
#announce). Verify the #announce room appears correctly. Open the #announce room, verify it displays correctly (namely that the participants are populated in the Members page).PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop