Use new AuthenticatePusher NewDot Optimized API commands#9659
Conversation
a6214ad to
b7d7b42
Compare
luacmartins
left a comment
There was a problem hiding this comment.
Coming from this comment, we should use makeRequestWithSideEffects and use the current logic to handle the side effect. We'll no longer be storing anything in Onyx. Sorry for the confusion!
9eefa59 to
775dba6
Compare
|
Cool, updated! |
|
Oh dearie me that's embarrassing. I think I pushed this up before heading out for the 4th and forgot about all the rest I needed to do 😅 |
|
Updated and retested! |
luacmartins
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the changes. @marcaaron all yours :)
| if (response.jsonCode === CONST.JSON_CODE.NOT_AUTHENTICATED) { | ||
| Log.hmmm('[PusherAuthorizer] Unable to authenticate Pusher because authToken is expired'); | ||
| callback(new Error('Pusher failed to authenticate because authToken is expired'), {auth: ''}); | ||
| }).then((response) => { |
There was a problem hiding this comment.
nonblocking fussy observation: if we just leave this indent alone the diff will leave less of an impact
There was a problem hiding this comment.
I think the new way is better for style but yeah
There was a problem hiding this comment.
I prefer .then() on a new line, but it is a personal preference and not something we have in the style guide.
| {channelName}, | ||
| ); | ||
| callback(null, response); | ||
| }).catch((error) => { |
There was a problem hiding this comment.
Same here. Change was not really needed.
|
Conflicts. |
|
Web-E PR in prod, but we have conflicts now! |
ae3dc67
|
Looks like you modified Instead, all new API commands should use API.js, and follow our guidelines for writing new API commands. Unsure if your change is okay? Drop a note in #expensify-open-source! |
|
✋ 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 @luacmartins in version: 1.1.83-1 🚀
|
|
🚀 Deployed to production by @chiragsalian in version: 1.1.84-13 🚀
|

@luacmartins please review
?w=1review highly reccomendedDetails
Starts using the new
AuthenticatePusherNewDot optimized API commandFixed Issues
$ https://github.com/Expensify/Expensify/issues/213876
Tests / QA Steps
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly 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
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followed/** comment above it */displayNamepropertythisproperly 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)