fix: 404 authenticate pusher api call#29590
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
@marcochavezf Can you trigger gh actions? |
src/pages/home/ReportScreen.js
Outdated
| // Existing reports created will have empty fields for `pendingFields`. | ||
| const didCreateReportSuccessfully = !report.pendingFields || (!report.pendingFields.addWorkspaceRoom && !report.pendingFields.createChat); | ||
| if (!didSubscribeToReportLeavingEvents.current && didCreateReportSuccessfully) { | ||
| if (!!reportID && !didSubscribeToReportLeavingEvents.current && didCreateReportSuccessfully) { |
There was a problem hiding this comment.
| if (!!reportID && !didSubscribeToReportLeavingEvents.current && didCreateReportSuccessfully) { | |
| if (ReportUtils.isValidReportIDFromPath(reportID) && !didSubscribeToReportLeavingEvents.current && didCreateReportSuccessfully) { |
To keep it consistent, let's use this util function ReportUtils.isValidReportIDFromPath. Also I think we prefer early returns
if (!ReportUtils.isValidReportIDFromPath(reportID)){
return;
}There was a problem hiding this comment.
Gotcha. will update this
|
@5war00p can you fix the checklist:
|
|
@fedirjh Updated PR comment and converted the reportId boolean condition to reportutils function for null check |
Reviewer Checklist
Screenshots/VideosWebCleanShot.2023-10-14.at.12.24.55.mp4Mobile Web - ChromeCleanShot.2023-10-14.at.17.39.23.mp4Mobile Web - SafariCleanShot.2023-10-14.at.17.14.28.mp4DesktopCleanShot.2023-10-14.at.17.20.29.mp4iOSCleanShot.2023-10-14.at.17.32.55.mp4AndroidCleanShot.2023-10-14.at.18.11.06.mp4 |
|
✋ 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/marcochavezf in version: 1.3.85-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.85-4 🚀
|
|
🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.3.86-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.86-5 🚀
|

Details
Fixed Issues
$ #29116
PROPOSAL: #29116 (comment)
Tests
Go to Login page
Enter email & otp
Open dev tools (based on platform)
Check for
AuthenticatePusherAPI in network logsAPI shouldn't fail (shouldn't be 404)
Offline tests
NA - As the issue is with network logs, its not possible to simulate in offline mode
QA Steps
Same as above
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-app.mp4
Android: mWeb Chrome
android-web.mp4
iOS: Native
ios-app.mp4
iOS: mWeb Safari
ios-browser.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4