-
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
[Hold for Payment: 2022-12-09] [$250] LHN - Opening <EXPENSIFY_URL>/concierge, system redirected to LHN #12776
Comments
Triggered auto assignment to @dylanexpensify ( |
This is a regression that's reproducible on staging and production |
Current assignee @dylanexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Current assignee @roryabraham is eligible for the External assigner, not assigning anyone new. |
Oh I see: #12753 (comment) |
cc @Ollyws maybe you can take a look^ ? |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
Thanks @Ollyws ❤️ |
The ProblemThis is happening because The Proposed SolutionI propose fixing this by adding this code to the ReportScreen Page
By putting it in the Looking forward to your thoughts on this solution. |
ProposalProblem It is already mentioned the PR that caused the issue here specifically at this line. The new code changes call Solution const ConciergePage = (props) => {
if (_.has(props.session, 'authToken')) {
- Report.navigateToConciergeChat();
+ Navigation.isDrawerReady().then(() => {
+ Report.navigateToConciergeChat();
+ });
} else {
Navigation.navigate();
}
return <FullScreenLoadingIndicator />;
}; Result 327800.t.mp4Screen.Recording.2022-11-19.at.02.44.16.mov |
@bernhardoj This feels like a different bug to me. You should report it so you get reporting $ too 😉. (i deleted my last comment because I meant to take back the second part of my comment that mentioned something about a useEffect but that was wrong). |
@rushatgabhane, @roryabraham, @dylanexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
all proposals feel like a hack. still investigating |
Proposaldiff --git a/src/libs/actions/App.js b/src/libs/actions/App.js
index 1faeae4bb..97cc46f16 100644
--- a/src/libs/actions/App.js
+++ b/src/libs/actions/App.js
@@ -115,6 +115,7 @@ function openApp() {
const connectionID = Onyx.connect({
key: ONYXKEYS.COLLECTION.POLICY,
waitForCollectionCallback: true,
+ initWithStoredValues: false,
callback: (policies) => {
Onyx.disconnect(connectionID);
API.read('OpenApp', {policyIDList: getNonOptimisticPolicyIDs(policies)}, {
diff --git a/src/pages/ConciergePage.js b/src/pages/ConciergePage.js
index 1793f651d..fc8fc8712 100644
--- a/src/pages/ConciergePage.js
+++ b/src/pages/ConciergePage.js
@@ -24,10 +24,12 @@ const propTypes = {
* - Else re-route to the login page
*/
const ConciergePage = (props) => {
- if (_.has(props.session, 'authToken')) {
- Report.navigateToConciergeChat();
- } else {
- Navigation.navigate();
+ if (props.isLoadingReportData === false) {
+ if (_.has(props.session, 'authToken')) {
+ Report.navigateToConciergeChat();
+ } else {
+ Navigation.navigate();
+ }
}
return <FullScreenLoadingIndicator />;
@@ -40,4 +42,7 @@ export default withOnyx({
session: {
key: ONYXKEYS.SESSION,
},
+ isLoadingReportData: {
+ key: ONYXKEYS.IS_LOADING_REPORT_DATA,
+ },
})(ConciergePage); DetailsBefore explaining my proposal, I will explain why it was working. It was working because we were always making a call to the API With that being said, the fix is rather simple by just checking the value of I have also set PS: I won't say this is a regression, it's more like a hidden bug |
@s77rt That's a great analysis. Could you please add links to the PR / code so that everyone has visibility?
Won't that slow down the launch time of the app? Because all the data will be loaded using a network call vs. loading it from device storage. |
Applied. I will open the PR today or tomorrow. |
I have opened the PR. There is 1 checklist left, which is to test on Desktop. Do we have any way to open a deep link on desktop? |
@bernhardoj You can open the console and enter |
It works. Thanks a lot! @Ollyws Updated my PR. |
@rushatgabhane where are we with reviewing the PR? Remember, within 3 days = 50% bonus! |
The PR is already merged 😄 We're just waiting for the deploy now |
ah hahah nice! Best answer |
the bonus really helps with urgency! kudos to whoever's idea it was |
@rushatgabhane, @stitesExpensify, @bernhardoj, @dylanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Not overdue - should this have populated the payment date header @stitesExpensify? |
Yes, it looks like this was deployed to prod 3 days ago, so payment should be Dec. 9 |
payment tomorrow! |
@rushatgabhane please apply! 🙇♂️ |
@bernhardoj offer sent! |
@dylanexpensify I see the offer amount hasn't include the bonus. Should I accept the offer first? Sorry, this is my first time receiving an offer with bonus 😅 |
no worries @bernhardoj! accept the offer and I'll include the bonus when paying out! 😄 |
Accepted. Thanks for the answer! @dylanexpensify |
@bernhardoj payment (w/bonus) sent! |
@dylanexpensify accepted, thanks! |
paid out |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue was found when executing PR #12588
Action Performed:
Expected Result:
The concierge chat should be displayed
Actual Result:
The system redirected to LNH when opening <EXPENSIFY_URL>/concierge
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.28.1
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug5823119_Recording__2962.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: