Refactor User_IsFromPublicDomain in App#9759
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! |
| Log.info(`Command User_IsFromPublicDomain returned error code: ${response.jsonCode}. Most likely, this means that the domain ${Str.extractEmail(sessionEmail)} is not in the bedrock cache. Retrying in ${RETRY_TIMEOUT / 1000 / 60} minutes`); | ||
| setTimeout(getDomainInfo, RETRY_TIMEOUT); | ||
| } | ||
| DeprecatedAPI.User_IsUsingExpensifyCard() |
There was a problem hiding this comment.
This command will be refactored in a separate PR
|
Putting on hold until the Web-E PR hits prod |
| const commandName = 'User_IsFromPublicDomain'; | ||
| requireParameters(['email'], parameters, commandName); | ||
| return Network.post(commandName, { | ||
| ...{requireCertainty: true}, |
There was a problem hiding this comment.
We changed this to false in the Web-E PR since all use cases in NewDot default to false in case we don't have a Clearbit response in time.
|
https://github.com/Expensify/Web-Expensify/pull/34247 is on 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! Removing |
|
🚀 Deployed to staging by @luacmartins in version: 1.1.83-2 🚀
|
|
@luacmartins When I use expensifail account to login tester sees the email as applause.expensifail.com@expensify.cash |
|
@mvtglobally Seems correct to me! |
|
🚀 Deployed to production by @chiragsalian in version: 1.1.84-13 🚀
|


Details
Refactors
User_IsFromPublicDomainFixed Issues
$ https://github.com/Expensify/Expensify/issues/211831
Tests
isFromPublicDomainexistsUser_IsFromPublicDomainUser_IsUsingExpensifyCardis still triggeredPR 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
gmail.comWorkspace > Pay billsManage your billsisexample.com@expensify.cashprivate.com5 Verify that the email under
Manage your billsisprivate.com@expensify.cashScreenshots
Web
web.mov
Mobile Web
Desktop
iOS
Android