Remove call to getReportNameValuePairs in getChatByParticipants#68654
Conversation
…eportArchived argument
|
@DylanDylann 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] |
|
Please select a flow impacted by the changes to add QA steps and remove the 'No QA' label |
|
@samranahm I see you don't pass isReportArchived in all places. Could you explain each of them? Or do you want to split it into multiple PRs? |
|
@tgolen In this PR, we need to remove call to getReportNameValuePairs in getChatByParticipants But I see that we can remove this logic below Lines 8522 to 8528 in db59aa3 The shouldExcludeClosedReports parameter is set to false in most cases. When it’s false, this check will always evaluate to false. The only scenario where Line 10286 in db59aa3 However, I’ve noticed that this chat cannot be archived. ---------> I think we are safe to remove this check block cc @samranahm |
|
Yes, we should definitely remove that param from |
|
Great find! I agree, that chat can never be archived, so it sounds like it's safe to remove. |
|
@samranahm Please solve the failed GH action |
|
@samranahm failed test |
|
@DylanDylann Unit test fails not related to this PR, we recently merge #68841 that introduce this. getting the test failure on main too. |
Reviewer ChecklistUploading Screen Recording 2025-08-22 at 01.36.00.mov…
Screenshots/VideosScreen.Recording.2025-08-22.at.01.42.32.movAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
Unit test failure resolved here #68944 |
|
@samranahm Ops, so please merge the latest main. It will be safe to merge the PR if all actions are passed |
|
@DylanDylann Here we go |
|
cc @tgolen |
|
✋ 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/tgolen in version: 9.1.98-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.98-12 🚀
|
Explanation of Change
We are removing
getReportNameValuePairsthat we use to checkisReportArchivedfrom util functions and passingisReportArchivedas param from top.Fixed Issues
$ #67100
PROPOSAL:
Tests
Test one
Test two
Precondition: Do not have any workspace
Test three
Precondition: Do not have any workspace
Offline tests
QA Steps
Same as test
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)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