-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix/deeplinks when app in background #26073
Fix/deeplinks when app in background #26073
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.
Thanks for the PR @kubabutkiewicz
Could you explain the different of SidebarUtils.isSidebarLoadedReady
with Session.waitForUserSignIn
?
@@ -75,7 +85,7 @@ function signOutAndRedirectToSignIn() { | |||
Linking.getInitialURL().then((url) => { | |||
const reportID = ReportUtils.getReportIDFromLink(url); | |||
if (reportID) { | |||
Report.setLastOpenedPublicRoom(reportID); | |||
Onyx.merge(ONYXKEYS.LAST_OPENED_PUBLIC_ROOM_ID, reportID); |
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.
Any reason we are doing this?
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.
Yes , according to onyx documentation set should be used only when deleting the key from store or resetting object or array of data. In our case we are only storing primitive value so to that case better is to use merge.
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.
Also we are removing Report.setLastOpenedPublicRoom(reportID)
because it was causing circular dependency
Yeah sure, in our case we just want to wait with navigation till user is signed in so its more clear to create such a method also if we will use |
Reviewer Checklist
Screenshots/VideosWeb26073.Web.mp4Mobile Web - Chrome26073.mWeb-Chrome.mp4Mobile Web - Safari26073.mWeb-Safari.mp4Desktop26073.Desktop.mp4iOS26073.iOS.mp4Android26073.Android.mp4 |
Thanks @kubabutkiewicz, for the explanation. Generally, the code looks good, and the test results are working fine. I tried the case from this PR #20740; the PR introduced the |
Hi @mollfpr Yes indeed there is something wrong but I think its not caused but my changes. Untitled.mp4It looks like its not happening when you have app opened for the first time but on next tries it redirect you to Not found page. |
Thanks for the check, @kubabutkiewicz. Yeah, it seems like it's already in |
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.
LGTM and tests well 👍
We did not find an internal engineer to review this PR, trying to assign a random engineer to #23745 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
…ix/deeplinks-when-app-in-background-v2
@hayata-suenaga Hi will you be able to review it ? |
omg I completely missed this. Let me review right now |
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.
🚀
Hi @hayata-suenaga , this pr is not merged due to merge freeze ? |
forgot to merge 😓 |
✋ 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/hayata-suenaga in version: 1.3.69-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.69-2 🚀
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.70-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.70-8 🚀
|
Deeplink to every screen based on linking config when opening app from background
Details
To action responsible for navigating users from deeplinks when user is logged out added posibility to navigate to all routes not only specific ones
Fixed Issues
$ #23745
PROPOSAL: #23745 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
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)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
ios.mp4
Android
android.mp4