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
[HOLD for payment 2023-09-07] [$1000] Chat - Opened chat does not show up in LHN when LHN is loading #24596
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
As you can see, we show skeleton when props.isLoading is true, or show report list. Before this PR, props.isLoading is false when reports are not empty, so if any report was loaded, we don't show skeleton. We show preloaded report list while loading all reports. But now, isLoading is true and this.props.report is also empty because currentReportID is undefined. So skeleton is shown full page.
This is the root cause
What changes do you think we should make in order to solve the problem?
When we open a report and navigate to the LHN, this.props.optionListItems is not empty. We should use this
Solution 1
Replacing the this.props.isLoading condition here with the this.props.isLoading && !this.props.optionListItems.length would give the exactly same result as production
Solution 2
I think it would be good to show existing reports with skeleton while loading. In order to do this, we can use the following code
changed the title [-][$1000] Chat - Opened chat does not show up in LHN when LHN is loading[/-][+][HOLD for payment 2023-09-07] [$1000] Chat - Opened chat does not show up in LHN when LHN is loading[/+]on Aug 31, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.59-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-09-07. 🎊
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
Contributor+ that helped on the issue and/or PR
For reference, here are some details about the assignees on this issue:
Activity
OSBotify commentedon Aug 15, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:dummy-1111 commentedon Aug 15, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Opened chat doesn't show up in LHN when LHN is loading
What is the root cause of that problem?
Please check the below code
App/src/pages/home/sidebar/SidebarLinks.js
Lines 231 to 251 in 8472f03
As you can see, we show skeleton when
props.isLoadingis true, or show report list. Before this PR,props.isLoadingisfalsewhen reports are not empty, so if any report was loaded, we don't show skeleton. We show preloaded report list while loading all reports. But now,isLoadingistrueandthis.props.reportis also empty becausecurrentReportIDisundefined. So skeleton is shown full page.This is the root cause
What changes do you think we should make in order to solve the problem?
When we open a report and navigate to the LHN,
this.props.optionListItemsis not empty. We should use thisSolution 1
Replacing the
this.props.isLoadingcondition here with thethis.props.isLoading && !this.props.optionListItems.lengthwould give the exactly same result as productionSolution 2
I think it would be good to show existing reports with skeleton while loading. In order to do this, we can use the following code
Here we need to add additional props
styleto theLHNOptionListcomponent. Its default value isstyles.flex1and this codeApp/src/components/LHNOptionsList/LHNOptionsList.js
Line 70 in 8472f03
will be replaced with
Solution 1
solution_1.mp4
Solution 2
solution_2.mp4
What alternative solutions did you explore? (Optional)
melvin-bot commentedon Aug 15, 2023
Triggered auto assignment to @grgia (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.aldo-expensify commentedon Aug 15, 2023
cc @tienifr @ArekChr the PR #24204 seems to have caused this regression according to @s-alves10 , can you help confirm that?
Thanks @s-alves10 for the help investigating.
ArekChr commentedon Aug 16, 2023
@aldo-expensify Yes, this PR caused regression
tienifr commentedon Aug 16, 2023
yes, it's my regression. I'll fix it asap
yuwenmemon commentedon Aug 16, 2023
@tienifr any ETA on when you expect to have a PR up? If it's not going to be within the next few hours then should we revert the offending PR?
dummy-1111 commentedon Aug 16, 2023
I can create a PR according to #24596 (comment) in 2~3 hours
yuwenmemon commentedon Aug 16, 2023
@s-alves10 great - you're hired.
42 remaining items
aldo-expensify commentedon Aug 24, 2023
Agreed, I tested and seems to be solving both issues (commented with more details here).
Let's wait for @s-alves10 to update the PR with main and resolve conflicts, then we can do a final review.
melvin-bot commentedon Aug 29, 2023
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀
[-][$1000] Chat - Opened chat does not show up in LHN when LHN is loading[/-][+][HOLD for payment 2023-09-07] [$1000] Chat - Opened chat does not show up in LHN when LHN is loading[/+]melvin-bot commentedon Aug 31, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 31, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.59-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-09-07. 🎊
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:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
sakluger commentedon Sep 12, 2023
Summarizing payouts for this issue:
Reporter: Applause (contractor, no payment)
Contributor: @s-alves10 $1000 (hired on Upwork)
Contributor+: @narefyev91 (contractor, no payment)
Above payments include efficiency bonus 🎉
Upwork job: https://www.upwork.com/jobs/~0137e6674165abf18a