Fix - Investigate multiple calls to Search#73891
Fix - Investigate multiple calls to Search#73891luacmartins merged 11 commits intoExpensify:mainfrom
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
Let's merge main to fix lint issue and fix the conflicts |
| queryJSON?: SearchQueryJSON, | ||
| offset?: number, | ||
| isOffline?: boolean, | ||
| isSearchAPI = false, |
There was a problem hiding this comment.
Why do we need this param?
There was a problem hiding this comment.
Because getOnyxLoadingData is being used for other APIs other than search.
There was a problem hiding this comment.
Ok, are you sure that we don't need this field to set for non search api? Bcoz earlier that was common and set for all.
There was a problem hiding this comment.
I mean here the field isLoading which you currently only set for the searchAPI call
There was a problem hiding this comment.
Yeah @Pujan92 isLoading was wrongly being set on the snapshot for single transaction actions like holdMoneyRequestOnSearch, unhold and delete. We use isLoading to show loading state
App/src/components/Search/index.tsx
Lines 400 to 402 in 763ca9e
and it should not have been set by this actions in the first place.
|
@FitseTLT let's resolve conflicts |
|
done |
Pujan92
left a comment
There was a problem hiding this comment.
LGTM!
Screen.Recording.2025-11-26.at.21.23.45.mov
|
@FitseTLT conflicts |
luacmartins
left a comment
There was a problem hiding this comment.
Code looks good, but we have conflicts
|
Done |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.2.67-0 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.2.70-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.70-0 🚀
|
Explanation of Change
Fixed Issues
$ #72110
PROPOSAL: #72110 (comment)
Tests
SearchAPI request is made.Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
2025-10-31.20-55-11.mp4
Android: mWeb Chrome
2025-10-31.00-12-58.mp4
iOS: Native
iOS: mWeb Safari
2025-10-31.00-12-23.mp4
MacOS: Chrome / Safari
2025-10-31.00-01-25.mp4
MacOS: Desktop
2025-10-31.00-11-12.mp4