Conversation
|
@cristipaval 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] |
|
I had commented on offending PR - #29643 (comment) |
|
It seems that this change a base class, so I think it makes sense to assign a C+ for rigorous testing. Please also test all the use cases affected by this change, @situchan |
There was a problem hiding this comment.
@youssef-lr I think you applied fix in wrong component.
The crash happens on AttachmentCarousel, not on BaseOptionsList
Screen.Recording.2023-10-27.at.3.55.18.PM.mov
Reverting this change should fix the bug but also open for alternative solution while keep using useCallback
|
Let's apply this change: - [onNavigate],
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ [], |
|
I'm the author of PR which introduced this bug. The best solution IMHO is doing the following: AttachmentCarousel depends on |
|
Agree with @sebryu |
|
@sebryu would you like to create the PR instead? |
|
I think we can continue fix here if @sebryu is already off for the weekend |
|
Sounds good. Going to update the PR shortly. |
|
Updated. |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
|
@danieldoglas 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] |
tgolen
left a comment
There was a problem hiding this comment.
While the fix looks fine (and even conforming better to our best practices), it would be great to know what broke this. Perhaps using git bisect would identify the commit which introduced the error.
|
I'm going to go ahead and merge this since it's to fix a deploy blocker. |
|
Offending PR has been identified here @tgolen #29643 (comment) |
[CP Staging] Fix viewing attachments (cherry picked from commit 853d489)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/tgolen in version: 1.3.92-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.92-4 🚀
|
|
🚀 Deployed to staging by https://github.com/tgolen in version: 1.3.94-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/tgolen in version: 1.3.94-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.94-2 🚀
|
Details
I'm not really sure why this started breaking out of a sudden, but applying the solution form this SO worked.
Fixed Issues
$ #30490
https://expensify.slack.com/archives/C049HHMV9SM/p1698361711073589
Tests
Offline tests
N/A
QA Steps
Same as tests.
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2023-10-27.at.12.26.19.mov
MacOS: Desktop