[NoQA] Removed ConvertPolicyChatReportIDsToString migration#85439
Conversation
|
@abzokhattab 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] |
Julesssss
left a comment
There was a problem hiding this comment.
Excited for this. But could you share some before/after metrics if possible. And some brief details to the issue description
|
@Julesssss Done |
Julesssss
left a comment
There was a problem hiding this comment.
Looks good. One question though, I thought the plan was to NOT delete the migration code and leave it in the codebase. Or did that change?
|
hi team, does this need c+ review? |
@Julesssss Only code to add another migration in future remains. Other code is dead and should be removed |
|
PR doesn’t need product input as a performance PR. Unassigning and unsubscribing myself. |
Julesssss
left a comment
There was a problem hiding this comment.
LGTM. We're safely handling the cases where backend could send numeric ID.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 @Julesssss has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/Julesssss in version: 9.3.41-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.41-4 🚀
|
Explanation of Change
Removed
ConvertPolicyChatReportIDsToStringmigration as nearly all accounts are now migrated, and BE sends the correct format of data. This will shave off significant time from Startup Spans.Migration time --
Before on local account -
409msAfter -
25ms(This is due to the presence of reduce and running ofPromise.resolve)Fixed Issues
$ #84787
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
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.