-
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 2023-07-03] [$1000] Profile page loads infinitely with accountID is undefined #20854
Comments
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?With accountID being Lines 96 to 100 in 82ce35f
So details always an empty object, hasMinimumDetails is false, isLoading is trueLines 124 to 125 in 82ce35f
And loading component always displays Line 212 in 82ce35f
What changes do you think we should make in order to solve the problem?We should check accountID is valid or not in here to change isLoading to false if accountID is invalid Line 125 in 82ce35f
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Profile page loads infinitely with accountID is undefined What is the root cause of that problem?Seems the variable What changes do you think we should make in order to solve the problem?
ResultScreen.Recording.2023-06-16.at.3.33.40.AM.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Infinite loading when user open invalid profile page. What is the root cause of that problem?We are checking if the Lines 97 to 99 in f6008bb
What changes do you think we should make in order to solve the problem?Instead of checking
// we can change this validation base on requirement of accountId route
function isValidAccountRoute(accountId) {
return CONST.REGEX.NUMBER.test(accountId) && accountId > 0;
}
useEffect(() => {
if (isValidAccountRoute(routeName))) {
PersonalDetails.openPublicProfilePage(accountID);
}
}, [accountID]);
// if the accountId is invalid then we should show the blocking view instead of infinite loading
const isLoading = (lodashGet(details, 'isLoading', false) || _.isEmpty(details)) && ValidationUtil.isValidAccountRoute(accountID);
const shouldShowBlockingView = (!hasMinimumDetails && !isLoading) || !ValidationUtil.isValidAccountRoute(accountID); What alternative solutions did you explore? (Optional)N/A |
@anmurali Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Reproduced, added an external label for contributors to pick up |
Job added to Upwork: https://www.upwork.com/jobs/~01b5268811dd99e507 |
Current assignee @anmurali is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Proposal from @dukenv0307 looks good to me 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @arosiclair, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@sobitneupane isn't this makes more sense where for |
@Pujan92 These few lines have some context. Lines 124 to 128 in 9fda6a5
It was added in this PR. It should have been added to prevent showing blocking view if the details are yet to be loaded. |
I think that won't be the case as |
@Pujan92 The client may already have personal details loaded even while we are loading updates so we shouldn't block the UI on |
I actually think @hungvu193 is closer to the mark here.
const details = lodashGet(props.personalDetails, accountID, {isLoading: ValidationUtils.isNumeric(accountID)}); What do you think? |
That's cool. |
I think update the check of accountID just is an improvement of this issue to prevent calling API if accountID is invalid. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.32-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-07-03. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Sent @hungvu193 an offer - https://www.upwork.com/nx/wm/pre-hire/c/8577561/offer/25386217 |
Thank you. Accepted |
I don't think any change in PR review checklist is required. It was overlooked while adding a new component.
Yes.
|
Regression Test Proposal
Do we agree 👍 or 👎 |
Requested money from Expensify. |
@arosiclair, @anmurali, @hungvu193, @sobitneupane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Everyone's paid! |
@anmurali hi I haven't been hired as bug reporter for this yet. Would you mind taking a look? |
@arosiclair hi would you be able to help here? I've Slacked @anmurali as well but it doesn't seem like she's available at the moment to handle this. Appreciate it! |
I reached out to @anmurali |
Sorry about that. I now paid him. And am closing this issue. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Profile page should show ''Hmm... it's not here"
Actual Result:
Profile page loads infinitely
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.28-3
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screencast from 09-06-2023 13_35_24.webm
Recording.980.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dukenv0307
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686292516315989
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: