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 2024-08-09] [$250] Draft disappears from the LHN when clicking away after starting a thread #45543
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Please re-state the problem that we are trying to solve in this issue.
Draft disappear from the LHN
What is the root cause of that problem?
The thread report has notificationPreference as hidden. If we don't open this thread or this thread is not pinned, it's hidden in LHN because we return early here.
What changes do you think we should make in order to solve the problem?
If the report has a draft comment shouldOverrideHidden should be true. We should use hasValidDraftComment to check whether the report has a draft comment or not.
changed the title [-]Draft disappears from the LHN when clicking away after starting a thread[/-][+][$250] Draft disappears from the LHN when clicking away after starting a thread[/+]on Jul 23, 2024
changed the title [-][$250] Draft disappears from the LHN when clicking away after starting a thread[/-][+][HOLD for payment 2024-08-09] [$250] Draft disappears from the LHN when clicking away after starting a thread[/+]on Aug 2, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.15-9 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve 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:
[@mkhutornyi] The PR that introduced the bug has been identified. Link to the PR:
[@mkhutornyi] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@mkhutornyi] 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:
[@mkhutornyi] Determine if we should create a regression test for this bug.
[@mkhutornyi] 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.
[@abekkala] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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
Regression Test Steps
As user A, create a new group with user B and user C
As user A, send a message to group
As user B, start a thread and type something in composer
Without joining, switch to another report
Verify that thread report with draft keeps visible in LHN
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jul 17, 2024
Triggered auto assignment to @abekkala (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.nkdengineer commentedon Jul 17, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Draft disappear from the LHN
What is the root cause of that problem?
The thread report has
notificationPreferenceashidden. If we don't open this thread or this thread is not pinned, it's hidden in LHN because we return early here.App/src/libs/SidebarUtils.ts
Line 136 in 9c509a0
App/src/libs/SidebarUtils.ts
Lines 137 to 139 in 9c509a0
What changes do you think we should make in order to solve the problem?
If the report has a draft comment
shouldOverrideHiddenshould betrue. We should usehasValidDraftCommentto check whether the report has a draft comment or not.App/src/libs/SidebarUtils.ts
Line 136 in 9c509a0
Then the check
shouldReportBeInOptionListcan be called and everything works well because we already have the check for draft comment in this functionhttps://github.com/Expensify/App/blob/9c509a0e6363adaeb6cbb8c377ed6ff98b85dc65/src/libs/ReportUtils.ts#L5486-5487
What alternative solutions did you explore? (Optional)
We can return early if the report has a draft comment before this line
App/src/libs/SidebarUtils.ts
Line 136 in 9c509a0
melvin-bot commentedon Jul 22, 2024
@abekkala Huh... This is 4 days overdue. Who can take care of this?
[-]Draft disappears from the LHN when clicking away after starting a thread[/-][+][$250] Draft disappears from the LHN when clicking away after starting a thread[/+]melvin-bot commentedon Jul 23, 2024
Job added to Upwork: https://www.upwork.com/jobs/~011241d6b36d075893
melvin-bot commentedon Jul 23, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mkhutornyi (
External)mkhutornyi commentedon Jul 24, 2024
@nkdengineer's proposal looks good to me. I like main solution.
🎀👀🎀 C+ reviewed
12 remaining items
[-][$250] Draft disappears from the LHN when clicking away after starting a thread[/-][+][HOLD for payment 2024-08-09] [$250] Draft disappears from the LHN when clicking away after starting a thread[/+]melvin-bot commentedon Aug 2, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 2, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.15-9 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-08-09. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Aug 2, 2024
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:
abekkala commentedon Aug 2, 2024
PAYMENT SUMMARY FOR AUG 09
Please complete checklist above
abekkala commentedon Aug 8, 2024
not overdue payment is tomorrow
mkhutornyi commentedon Aug 8, 2024
Regression Test Steps
abekkala commentedon Aug 9, 2024
@nkdengineer and @mkhutornyi - payments have been sent and contracts ended - thank you! 🎉