[CP Staging] [NoQA] Bump the onyx version to loosen mergeCollection #22782
Conversation
|
@Santhosh-Sellavel 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] |
|
Reviewing it now |
Same here! Btw, we can also manually store that mal-formated data by going to the console and running Onyx.merge('queuedOnyxUpdates', [
{
"onyxMethod": "mergecollection",
"key": "transactions_1282450064524658",
"value": {
"2463815779269125254": {
"amount": 3000,
"comment": { "comment": "" },
"created": "2023-06-28 16:28:44",
"currency": "USD",
"modifiedAmount": 0,
"modifiedCreated": "",
"modifiedCurrency": "",
"transactionID": "2463815779269125254"
},
}
}
]); |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-13.at.7.56.07.PM.movDesktopScreen.Recording.2023-07-13.at.7.57.16.PM.mov |
|
@mountiny Old transaction details are not loading. Screen.Recording.2023-07-13.at.7.54.11.PM.mov |
|
Is this happening on main as well? I dont think this should be related |
|
Okay, Cool then. I played around with the app and didn't see the error mentioned. |
Santhosh-Sellavel
left a comment
There was a problem hiding this comment.
LGTM, tests well!
|
@thienlnam 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] |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[NoQA] Bump the onyx version to loosen mergeCollection (cherry picked from commit 3c35be1)
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.40-3 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.40-5 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.42-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.42-26 🚀
|





Details
Follow up to Expensify/react-native-onyx#272, when mergeCollection keys in the onyx updates queue are malformed, it will block the entire queue, this change will discard such malformed update and allows the app to work normally after that.
cc @luacmartins @PauloGasparSv
Fixed Issues
$ #22853
Related to https://expensify.slack.com/archives/C049HHMV9SM/p1689120594593919
Tests
Offline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Including web screenshots only as thats the main platform we can test the console errors
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android