Skip to content
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

[$250] Web - Endless loading appears clicking on https://staging. new.expensify.com/details in concierge #10966

Closed
kbecciv opened this issue Sep 13, 2022 · 36 comments
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@kbecciv
Copy link

kbecciv commented Sep 13, 2022

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 found when executing PR #10820

Action Performed:

  1. Go to NewDot and login
  2. Go to /details
  3. Send message 'https://staging.new.expensify.com/details'
    in any chat room and click on it

Expected Result:

Details page opens

Actual Result:

Endless loading appears

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.2.0.0

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers): any

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Bug5729950_10820_-_web.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2022

Triggered auto assignment to @francoisl (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@francoisl
Copy link
Contributor

It looks like the details page expects a login param - e.g. https://staging.new.expensify.com/details?login=concierge%40expensify.com works as you would expect.

/** login passed via route /details/:login */
login: PropTypes.string,

Doesn't look like a bug to me, I'll reassign to the triage team for a second opinion.

@francoisl francoisl removed their assignment Sep 13, 2022
@francoisl francoisl added the External Added to denote the issue can be worked on by a contributor label Sep 13, 2022
@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2022

Triggered auto assignment to @jboniface (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@francoisl francoisl added Weekly KSv2 and removed Daily KSv2 labels Sep 13, 2022
@aimane-chnaif
Copy link
Contributor

aimane-chnaif commented Sep 13, 2022

Proposal

We should leave this page and go back to the root page.
This is already handled when DetailsPage component is mounted

componentDidMount() {
if (lodashGet(this.props.route.params, 'login')) {
return;
}
// Leave the page when the login information is not available
Navigation.dismissModal();
}

Then, why does this issue happen?
It happens because modal cannot be dismissed before modal is fully visible (isVisibility set to true)

Solution:
We can subscribe Modal.isVisibility from Onyx and dismiss modal only after modal is fully visible. so handle this on componentDidUpdate (for web) after subscribing ONYXKEYS.MODAL, as well as componentDidMount (for mobile)

Updated code:

withOnyx({
session: {
key: ONYXKEYS.SESSION,
},
personalDetails: {
key: ONYXKEYS.PERSONAL_DETAILS,
},
}),

    withOnyx({
        session: {
            key: ONYXKEYS.SESSION,
        },
        personalDetails: {
            key: ONYXKEYS.PERSONAL_DETAILS,
        },
        modal: {
            key: ONYXKEYS.MODAL,
        },
    }),

clone componentDidMount code into componentDidUpdate

    componentDidUpdate() {
        if (lodashGet(this.props.route.params, 'login')) {
            return;
        }

        // Leave the page when the login information is not available
        Navigation.dismissModal();
    }

After this fix, nothing happens when click https://staging.new.expensify.com/details

10966.mov

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 13, 2022
@jboniface
Copy link

job post

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Sep 14, 2022
@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2022

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (Exported)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 14, 2022
@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2022

Triggered auto assignment to @Beamanator (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot changed the title Web - Endless loading appears clicking on https://staging. new.expensify.com/details in concierge [$250] Web - Endless loading appears clicking on https://staging. new.expensify.com/details in concierge Sep 14, 2022
@Santhosh-Sellavel
Copy link
Collaborator

@Beamanator There might be an issue with deployment let's wait until the next deployment and check this out, please put it on hold for time being thanks!

@Beamanator Beamanator removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 15, 2022
@Beamanator Beamanator changed the title [$250] Web - Endless loading appears clicking on https://staging. new.expensify.com/details in concierge [HOLD] [$250] Web - Endless loading appears clicking on https://staging. new.expensify.com/details in concierge Sep 15, 2022
@Beamanator
Copy link
Contributor

@Santhosh-Sellavel - on hold! What makes you think deployment got messed up by the way?

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Sep 15, 2022

@Beamanator Here is another regression that was due to deploy error #10963

Please check out discussions there, it should clarify.

@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2022

Triggered auto assignment to @dylanexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 20, 2022
@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2022

Current assignee @Santhosh-Sellavel is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 20, 2022
@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2022

Current assignee @Beamanator is eligible for the External assigner, not assigning anyone new.

@mountiny mountiny changed the title [HOLD] [$250] Web - Endless loading appears clicking on https://staging. new.expensify.com/details in concierge [$250] Web - Endless loading appears clicking on https://staging. new.expensify.com/details in concierge Sep 20, 2022
@aimane-chnaif
Copy link
Contributor

I already explained RCA and solution in my proposal
Also this: #10966 (comment)

@mountiny
Copy link
Contributor

Thank you @aimane-chnaif What do you think of @aimane-chnaif proposal above 🙌

@Santhosh-Sellavel
Copy link
Collaborator

Check out these comments

#10966 (comment)

#10966 (comment)

Let me know this should be treated as regression Or fixed separately.
Thanks!

@Beamanator

@Beamanator
Copy link
Contributor

@Santhosh-Sellavel I guess it makes sense to fix this separately, the crash was fixed in the other issue so now let's fix clicking the link here, thoughts?

@Santhosh-Sellavel
Copy link
Collaborator

I am also on the side of handling it separately.

@Santhosh-Sellavel
Copy link
Collaborator

Need some time to dig this more.

@melvin-bot melvin-bot bot added the Overdue label Sep 26, 2022
@Santhosh-Sellavel
Copy link
Collaborator

Will look into it this week, no need to double until then thanks! @dylanexpensify

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 26, 2022
@dylanexpensify
Copy link
Contributor

Sounds good, any update @Santhosh-Sellavel ??

@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2022

@Beamanator, @dylanexpensify, @Santhosh-Sellavel Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Oct 3, 2022
@Beamanator
Copy link
Contributor

Bump @Santhosh-Sellavel

@melvin-bot melvin-bot bot removed the Overdue label Oct 3, 2022
@Santhosh-Sellavel
Copy link
Collaborator

@Beamanator This issue is unable to reproduce, can we verify and close this? May be I should have checked sooner to reproduce this again.

@aimane-chnaif
Copy link
Contributor

After deep research, I confirmed #10949 which fixes #10271 also fixes this GH.
So this issue is not reproducible anymore from v1.2.5-0 (staging), from v1.2.5-2 (production)

@Beamanator
Copy link
Contributor

I also can't reproduce, thanks for the notice, both! Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

9 participants