Refactor UpdateAccount in App#9764
Conversation
|
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! |
| * @param {Boolean} parameters.pinnedValue | ||
| * @returns {Promise} | ||
| */ | ||
| function Report_TogglePinned(parameters) { |
There was a problem hiding this comment.
I noticed that we refactored this command but didn't remove it from deprecatedAPI. So I'm removing it here
|
Putting this on hold until the Web-E PR hits prod. |
|
@MonilBhavsar this is ready for review! We are just waiting for Web-E to hit prod so we are ok to merge it! |
|
Reviewing it |
MonilBhavsar
left a comment
There was a problem hiding this comment.
Looks good and works fine!
|
https://github.com/Expensify/Web-Expensify/pull/34245 is in prod. Removing hold and merging! |
|
@luacmartins looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
|
Tests passed and there were no issues in any of the files in this PR after merging main locally. Removing |
|
🚀 Deployed to staging by @luacmartins in version: 1.1.83-2 🚀
|
|
🚀 Deployed to production by @chiragsalian in version: 1.1.84-13 🚀
|
Details
UpdateAccountexpensifyNewsStatustoisSubscribedToNewsletterReport_TogglePinnedAPI commandcc @bondydaa
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/211596
Tests
Settings > PreferencesNotificationsand verify that it worksNetworkstab, verify that a request toUpdateNewsletterSubscriptionis triggered$response['jsonCode'] = 404;hereNotificationsit is reverted back when the API request fails.PR Review Checklist
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)QA Steps
Settings > PreferencesNotificationsand verify that it worksNotificationstoggle is still correctScreenshots
Web
web.mov
Mobile Web
mweb.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov