You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[PAID] [$500] Status - Custom time page loads infinitely in offline mode #33369
Version Number: 1.4.14-2 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 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
Log in and do not visit custom time page
Go offline
Go to Settings > Profile > Status
Click Clear after
Click Custom
Click Time
Expected Result:
Time selection page will open without issue
Actual Result:
Time selection page loads infinitely
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Status - Custom time page loads infinitely in offline mode[/-][+][$500] Status - Custom time page loads infinitely in offline mode[/+]on Dec 20, 2023
What changes do you think we should make in order to solve the problem?
I think on this page, we want to get currentPersonalDetail to get the current time to display the default value of the form if the draft time is empty but we get the wrong data here.
We should get currentPersonalDetail by using withCurrentPersonalDetail HOC and then get clearAfter from currentPersonalDetail.status to display if the draft custom status is empty.
What changes do you think we should make in order to solve the problem?
I've checked the code – the value of privatePersonalDetails is not used anywhere, seems like it is a redundant code that was missed during development (probably, this page was initially copy-pasted from some other that uses privatePersonalDetails, most likely from DateOfBirthPage – commit).
We can remove this piece of code as well as all the code related to the privatePersonalDetails on this page:
Proposal from @paultsimura looks good to me #33369 (comment)
Seems we do not need that check, in case we do not use privatePersonalDetails anywhere in that flow
🎀 👀 🎀 C+ reviewed
changed the title [-][$500] Status - Custom time page loads infinitely in offline mode[/-][+][HOLD for payment 2024-01-03] [$500] Status - Custom time page loads infinitely in offline mode[/+]on Dec 27, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.17-8 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 2024-01-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.
External issue reporter
Contributor that fixed the issue - @paultsimura - $500 via Upwork
Contributor+ that helped on the issue and/or PR - N/A
For reference, here are some details about the assignees on this 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:
[@blimpich] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: n/a, the PR that introduced this was part of a large feature branch, and this bug is relatively minor, so I don't think its worth discussing a change to the PR review checklist
[@paultsimura / @narefyev91] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@strepanier03] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Payment has been handled and part of the checklist. I'll check here tomorrow for the rest of the checklist responses and close when that's finished up.
changed the title [-][HOLD for payment 2024-01-03] [$500] Status - Custom time page loads infinitely in offline mode[/-][+][PAID] [$500] Status - Custom time page loads infinitely in offline mode[/+]on Jan 3, 2024
From my POV, no regression test is needed here as the issue was caused by redundant code missed during the initial feature development (I'm not a C+ though).
Activity
melvin-bot commentedon Dec 20, 2023
Triggered auto assignment to @strepanier03 (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Dec 20, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01ab5fa243901ed9cb
[-]Status - Custom time page loads infinitely in offline mode[/-][+][$500] Status - Custom time page loads infinitely in offline mode[/+]melvin-bot commentedon Dec 20, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Dec 20, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 (
External)neonbhai commentedon Dec 20, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Status - Custom time page loads infinitely in offline mode
What is the root cause of that problem?
setTimePageshows FullScreenLoadingIndicator if is it still loading:App/src/pages/settings/Profile/CustomStatus/SetTimePage.js
Lines 36 to 38 in 88631a0
This will keep on loading when offline
What changes do you think we should make in order to solve the problem?
We should add a
FullPageOfflineBlockingViewwhen the user is offlinedukenv0307 commentedon Dec 20, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Time selection page loads infinitely
What is the root cause of that problem?
When we offline without private personal detail, the loading page is show here
App/src/pages/settings/Profile/CustomStatus/SetTimePage.js
Line 36 in 88631a0
What changes do you think we should make in order to solve the problem?
I think on this page, we want to get
currentPersonalDetailto get the current time to display the default value of the form if the draft time is empty but we get the wrong data here.We should get
currentPersonalDetailby usingwithCurrentPersonalDetailHOC and then getclearAfterfromcurrentPersonalDetail.statusto display if the draft custom status is empty.App/src/pages/settings/Profile/CustomStatus/SetTimePage.js
Line 36 in 88631a0
And we can display loading page when
currentPersonalDetail.loginis empty.We should update other custom status pages with this approach.
What alternative solutions did you explore? (Optional)
NA
paultsimura commentedon Dec 20, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
In offline, the status timer is always loading.
What is the root cause of that problem?
We are checking for the
privatePersonalDetailsto be loaded before showing the TimePicker and displaying the loader otherwise:App/src/pages/settings/Profile/CustomStatus/SetTimePage.js
Lines 36 to 38 in 88631a0
What changes do you think we should make in order to solve the problem?
I've checked the code – the value of
privatePersonalDetailsis not used anywhere, seems like it is a redundant code that was missed during development (probably, this page was initially copy-pasted from some other that usesprivatePersonalDetails, most likely from DateOfBirthPage – commit).We can remove this piece of code as well as all the code related to the
privatePersonalDetailson this page:App/src/pages/settings/Profile/CustomStatus/SetTimePage.js
Lines 36 to 38 in 88631a0
What alternative solutions did you explore? (Optional)
narefyev91 commentedon Dec 21, 2023
Proposal from @paultsimura looks good to me #33369 (comment)
Seems we do not need that check, in case we do not use privatePersonalDetails anywhere in that flow
🎀 👀 🎀 C+ reviewed
17 remaining items
[-][$500] Status - Custom time page loads infinitely in offline mode[/-][+][HOLD for payment 2024-01-03] [$500] Status - Custom time page loads infinitely in offline mode[/+]melvin-bot commentedon Dec 27, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Dec 27, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.17-8 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 2024-01-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.
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Dec 27, 2023
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:
strepanier03 commentedon Jan 3, 2024
Payment has been handled and part of the checklist. I'll check here tomorrow for the rest of the checklist responses and close when that's finished up.
[-][HOLD for payment 2024-01-03] [$500] Status - Custom time page loads infinitely in offline mode[/-][+][PAID] [$500] Status - Custom time page loads infinitely in offline mode[/+]strepanier03 commentedon Jan 8, 2024
@paultsimura @narefyev91 - Do we need to do the regresssion test at all? I think not because an indefinite load would be caught with normal testing.
I plan to close this tomorrow if I don't hear from you.
paultsimura commentedon Jan 8, 2024
From my POV, no regression test is needed here as the issue was caused by redundant code missed during the initial feature development (I'm not a C+ though).
strepanier03 commentedon Jan 9, 2024
Thank you @paultsimura - I'm going to close this and if a reg test is needed we can reopen and I'll take care of it.