[No QA] Replace OnyxKey type union with specific types - seventh batch#81974
Conversation
…batch' into @OlGierd03/replace_union_OnyxKey_type_seventh_batch
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…batch' into @OlGierd03/replace_union_OnyxKey_type_seventh_batch
…batch' into @OlGierd03/replace_union_OnyxKey_type_seventh_batch
…es using jscodetransform
|
@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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
The changes are consistent and looks good to me 🚀🚀 |
|
There is a small issue in the ESLint pipeline @OlGierd03 lets get it covered |
|
The esling error doesn't come from the changes in this PR, so I'd suggest leaving it out of scope here and tracking it as a separate fix |
What do you think @MarioExpensify |
|
@OlGierd03 it seems the error comes from a single file, if you don't mind, please include the fix, it is pretty minor, type related and will avoid unnecessary noise from the failed checks 😄 |
Done and ready for review 🚀 |
MarioExpensify
left a comment
There was a problem hiding this comment.
This is awesome, thank you for handling the lint issue @OlGierd03!!
|
🚧 @MarioExpensify 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/MarioExpensify in version: 9.3.24-1 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.3.24-3 🚀
|
Explanation of Change
The changes in this PR are only at the type level, hence [No QA] tag
These changes are the seventh batch of replacements of the OnyxUpdate default union type OnyxKey with specified types. This PR covers the replacement of the last usages of OnyxKey as the default generic type.
Note
TS performance after the changes has improved slightly, now averaging about 95% of the previous test execution time
TS performance test logs before the changes:
Files: 10326
Lines of Library: 53140
Lines of Definitions: 2054003
Lines of TypeScript: 875403
Lines of JavaScript: 20284
Lines of JSON: 1405
Lines of Other: 0
Identifiers: 3266535
Symbols: 5218129
Types: 1956018
Instantiations: 6600325
Memory used: 6128012K
Assignability cache size: 2238265
Identity cache size: 460801
Subtype cache size: 1177212
Strict subtype cache size: 1514223
I/O Read time: 1.88s
Parse time: 3.79s
ResolveModule time: 1.16s
ResolveTypeReference time: 0.02s
ResolveLibrary time: 0.01s
Program time: 7.48s
Bind time: 2.68s
Check time: 125.55s
printTime time: 0.00s
Emit time: 0.00s
Total time: 135.71s
TS performance test logs after the changes:
Files: 10326
Lines of Library: 53140
Lines of Definitions: 2054003
Lines of TypeScript: 875438
Lines of JavaScript: 20284
Lines of JSON: 1405
Lines of Other: 0
Identifiers: 3266625
Symbols: 5217587
Types: 1931528
Instantiations: 6579101
Memory used: 6245395K
Assignability cache size: 2172046
Identity cache size: 418834
Subtype cache size: 1159149
Strict subtype cache size: 1446114
I/O Read time: 1.37s
Parse time: 4.11s
ResolveModule time: 1.34s
ResolveTypeReference time: 0.03s
ResolveLibrary time: 0.01s
Program time: 7.51s
Bind time: 3.25s
Check time: 117.65s
printTime time: 0.00s
Emit time: 0.00s
Total time: 128.42s
Fixed Issues
$ #73830
Tests
N/A
Offline tests
N/A
QA Steps
N/A
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
N/A