[No QA]: Remove SearchReport > private_isArchived#74451
Conversation
|
@abdulrahuman5196 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] |
| @@ -145,9 +145,6 @@ type SearchReport = { | |||
| /** For expense reports, this is the total amount requested */ | |||
There was a problem hiding this comment.
This property is being removed from the SearchReport type, but a codebase-wide search reveals 41 files still reference private_isArchived, including:
Source files:
src/pages/home/ReportScreen.tsxsrc/pages/ReportDetailsPage.tsxsrc/libs/ReportUtils.tssrc/libs/SidebarUtils.tssrc/libs/OptionsListUtils/index.tssrc/libs/actions/Report.tssrc/libs/actions/Policy/Member.tssrc/libs/actions/Policy/Policy.tssrc/hooks/useParticipantsInvoiceReport.tssrc/components/LHNOptionsList/OptionRowLHN.tsx
Type definitions:
src/types/onyx/ReportNameValuePairs.tssrc/types/utils/whitelistedReportKeys.tssrc/types/form/DebugReportForm.ts
Test files (30+ additional files not updated in this PR)
This incomplete removal will likely cause:
- Runtime errors where code tries to access
report.private_isArchived - Type errors in the files above
- Test failures in the unmodified test files
Please search for all references using: grep -r "private_isArchived" src/ tests/ and update ALL occurrences.
|
Additional Test Files That Need UpdatesThe following test files also contain Tests Using
|
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
0601ce4 to
20c83a4
Compare
|
The failed test looks unrelated. Seems like flaky test |
|
No action needed from a product perspective |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
The failed test seems a flaky test, let's ignore it |
|
@DylanDylann conflicts |
|
@luacmartins Done |
|
✋ 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/luacmartins in version: 9.2.47-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.2.47-1 🚀
|
Explanation of Change
Fixed Issues
$ #73953
PROPOSAL:
Tests
Offline tests
QA Steps
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))npm run compress-svg)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