Subscribe report event when report successfully created#12365
Subscribe report event when report successfully created#12365dangrous merged 5 commits intoExpensify:mainfrom
Conversation
dangrous
left a comment
There was a problem hiding this comment.
Just a couple changes to make the code a bit clearer.
Can you double check that the typing events are actually coming through, on both the newly created as well as existing reports? Thanks!
|
I just saw that @mollfpr, let me know if you find something before me. |
Co-authored-by: Daniel Gale-Rosen <5487802+dangrous@users.noreply.github.com>
Co-authored-by: Daniel Gale-Rosen <5487802+dangrous@users.noreply.github.com>
Co-authored-by: Daniel Gale-Rosen <5487802+dangrous@users.noreply.github.com>
Umm it's strange, I found that it is only happening with 2-3 specific chats. It's a different issue so I think we can move forward. |
|
@mollfpr, please try to keep the commit message specific to the change. For example when changing the comment you can use "update comment". |
Co-authored-by: Sahil <thesahindia@gmail.com>
|
Thanks @thesahindia I’ll keep that in mind. |
ScreenshotsWeb Screen.Recording.2022-11-03.at.2.56.51.AM.movMobile Web - Chrome
Mobile Web - Safari
Desktop Screen.Recording.2022-11-03.at.7.35.15.PM.moviOS
Android
LGTM! cc: @dangrous C+ reviewed 🎀👀🎀
|
|
✋ 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 production by @yuwenmemon in version: 1.2.24-4 🚀
|
1 similar comment
|
🚀 Deployed to production by @yuwenmemon in version: 1.2.24-4 🚀
|
|
🚀 Deployed to production by @yuwenmemon in version: 1.2.24-4 🚀
|




Details
The subscribe event pusher
AuthenticatePusherfailed to load after creating a report chat/group or workspace room. This happens because the optimistic data is not yet successful, and the server couldn't find thereportIDprovided.We should wait for the optimistically created report success first before starting subscribing to the reported event
Report.subscribeToReportTypingEvents.Fixed Issues
$ #11800
$ #11800 (comment)
Tests
Test on Web/Desktop with inspect element open
AuthenticatePusherwas called in the Network tab it returned a200status response.QA Steps
Test on Web/Desktop with inspect element open
AuthenticatePusherwas called in the Network tab is returned a200status response.PR Author Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesWaiting 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)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** 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)Screenshots
Web
Fix.AuthenticationPusher.Error.Web.mov
Mobile Web - Chrome
Fix.AuthenticationPusher.Error.mWeb-Chrome.mov
Mobile Web - Safari
Fix.AuthenticationPusher.Error.mWeb-Safari.mov
Desktop
Fix.AuthenticationPusher.Error.Desktop.mov
iOS
Fix.AuthenticationPusher.Error.iOS.2.mov
Fix.AuthenticationPusher.Error.iOS.1.mov
Android
Fix.AuthenticationPusher.Error.Android.1.mov
Fix.AuthenticationPusher.Error.Android.2.mov