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-10-09] [Awaiting payment Oct 2 2023 / $500] Web - green dot appears even if task is deleted #27805
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: Dev 1.3.71-5 Reproducible in staging?: Y Reproducible in production?: n 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
changed the title [-]Dev: Web - green dot appears even if task is deleted[/-][+][$500] Dev: Web - green dot appears even if task is deleted[/+]on Sep 19, 2023
changed the title [-][Awaiting payment Oct 2 2023 / $500] Web - green dot appears even if task is deleted[/-][+][HOLD for payment 2023-10-09] [Awaiting payment Oct 2 2023 / $500] Web - green dot appears even if task is deleted[/+]on Oct 2, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.75-12 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-10-09. 🎊
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:
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:
[@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
[@allroundexperts] 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:
[@allroundexperts] 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:
[@allroundexperts] Determine if we should create a regression test for this bug.
[@allroundexperts] 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.
Activity
[-]Dev: Web - green dot appears even if task is deleted[/-][+][$500] Dev: Web - green dot appears even if task is deleted[/+]melvin-bot commentedon Sep 19, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01833b320ff7bd97a7
melvin-bot commentedon Sep 19, 2023
Triggered auto assignment to @michaelhaxhiu (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.melvin-bot commentedon Sep 19, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts (
External)paultsimura commentedon Sep 19, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The green dot is displayed in LHN for deleted task
What is the root cause of that problem?
Here we check for the
optionItem.isArchivedRoomto check if the task is closed. The archival logic was removed now.App/src/components/LHNOptionsList/OptionRowLHN.js
Lines 104 to 108 in f2282b2
What changes do you think we should make in order to solve the problem?
We need to check for
optionItem.isOpenTaskReportinstead:const shouldShowGreenDotIndicator = !hasBrickError && (optionItem.isUnreadWithMention || ReportUtils.isWaitingForIOUActionFromCurrentUser(optionItem) || - (optionItem.isTaskReport && optionItem.isTaskAssignee && !optionItem.isCompletedTaskReport && !optionItem.isArchivedRoom)) + (optionItem.isOpenTaskReport && optionItem.isTaskAssignee));Add in
SidebarUtils:if (result.isTaskReport) { + result.isOpenTaskReport = ReportUtils.isOpenTaskReport(report); - result.isCompletedTaskReport = ReportUtils.isCompletedTaskReport(report); result.isTaskAssignee = ReportUtils.isReportManager(report); }App/src/libs/SidebarUtils.js
Lines 268 to 271 in f6efb26
Result:
https://www.loom.com/share/4e2f44055ded410ea5dfe9bef3368db8?sid=1c7304e3-39be-47b6-8685-2b6bd517ce21
What alternative solutions did you explore? (Optional)
abzokhattab commentedon Sep 19, 2023
Proposal
The green dot is displayed in LHN for deleted task
What is the root cause of that problem?
we are not checking if the task is canceled in the green flag assignment
App/src/components/LHNOptionsList/OptionRowLHN.js
Lines 104 to 109 in 0603fe1
What changes do you think we should make in order to solve the problem?
we should check if the task is not cancelled as well
and of course add the isCanceledTaskReport object to the
SideBarUtils.jsin line 268 to enable the OptionRowLHN to access itPOC:
rojiphil commentedon Sep 20, 2023
Not able to reproduce in latest main - v1.3.71-11
paultsimura commentedon Sep 20, 2023
Still reproducible on
1.3.71-13rojiphil commentedon Sep 20, 2023
Oops! Sorry @paultsimura. I can also reproduce it. Thanks for the verification.
melvin-bot commentedon Sep 21, 2023
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
35 remaining items
michaelhaxhiu commentedon Sep 27, 2023
I'm handing this off to another BZ as I'm going on sabbatical by end of week, and want to ensure this is paid.
Next steps are as follows:
flaviadefaria commentedon Oct 2, 2023
@paultsimura you've been paid
@gadhiyamanan please accept the offer so that I can pay you.
gadhiyamanan commentedon Oct 2, 2023
@flaviadefaria offer accepted, thanks!
[-][Awaiting payment Oct 2 2023 / $500] Web - green dot appears even if task is deleted[/-][+][HOLD for payment 2023-10-09] [Awaiting payment Oct 2 2023 / $500] Web - green dot appears even if task is deleted[/+]melvin-bot commentedon Oct 2, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Oct 2, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.75-12 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-10-09. 🎊
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:
melvin-bot commentedon Oct 2, 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:
allroundexperts commentedon Oct 3, 2023
Reviewer Checklist
Regression Test Steps
Verify that a green dot does not show up in the LHN beside the task item.
Do we 👍 or 👎 ?
JmillsExpensify commentedon Oct 5, 2023
$750 payment approved for @allroundexperts based on BZ summary.
flaviadefaria commentedon Oct 9, 2023
Alright, I believe everyone has been paid so closing this.