-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude concierge links from OldDot link handling #10310
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh, I remember I reviewed the PR that introduced this small bug: #9450 (comment)
I'm not sure if this should have been handled in the same place:
Lines 42 to 48 in 9a76034
function buildOldDotURL(shortLivedAuthToken) { | |
const hasHashParams = url.indexOf('#') !== -1; | |
const hasURLParams = url.indexOf('?') !== -1; | |
// If the URL contains # or ?, we can assume they don't need to have the `?` token to start listing url parameters. | |
return `${CONFIG.EXPENSIFY.EXPENSIFY_URL}${url}${hasHashParams || hasURLParams ? '&' : '?'}authToken=${shortLivedAuthToken}&email=${encodeURIComponent(currentUserEmail)}`; | |
} |
At that time the problem was logsearch urls, now it is concierge
@johnmlee101 thoughts?
Ahhhh I see. The problem is the concierge chat has a |
Yes.. I guess the question is... are we interested in putting the shortLivedAuthToken in the concierge chat URL? if we are not, I think the PR is fine. If we were interested, then we should fix it in the mentioned function... thinking a bit more about I don't see a good reason to try to attach the shortLivedAuthToken to this url, and I tried testing it (fixing manually the URL) and it didn't logged me in.. so 🤷 |
Ah you're right, we don't need it |
Triggered auto assignment to @madmax330 ( |
@aldo-expensify looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Not an emergency: I only see the "warnCPLabel" check not done, the rest all passed. |
This early InternalQA assignment seems weird so I did it myself and looks good. Concierge links open without issue: Screen.Recording.2022-08-18.at.10.38.23.AM.mov |
However transition links to OldDot don't automatically sign you in because of the following PR and Issue: |
@arosiclair May I know how #10144 is causing this issue? Also, do you have an example that I can follow to test that |
Not sure as it seems to be working fine in dev with the latest on |
|
Details
Excludes concierge links from link handling since they cannot be properly parsed and lead to an error page. Seamless transitions with authTokens also shouldn't be necessary for internal coaches and employees.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/220219
Tests
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA Steps
Screenshots
Web
Mobile Web
Desktop
iOS
Android