-
Notifications
You must be signed in to change notification settings - Fork 3k
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-10-09] [Awaiting payment Oct 2 2023 / $500] Web - green dot appears even if task is deleted #27805
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01833b320ff7bd97a7 |
Triggered auto assignment to @michaelhaxhiu ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease 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 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 const shouldShowGreenDotIndicator =
!hasBrickError &&
(optionItem.isUnreadWithMention ||
ReportUtils.isWaitingForIOUActionFromCurrentUser(optionItem) ||
- (optionItem.isTaskReport && optionItem.isTaskAssignee && !optionItem.isCompletedTaskReport && !optionItem.isArchivedRoom))
+ (optionItem.isOpenTaskReport && optionItem.isTaskAssignee)); Add in if (result.isTaskReport) {
+ result.isOpenTaskReport = ReportUtils.isOpenTaskReport(report);
- result.isCompletedTaskReport = ReportUtils.isCompletedTaskReport(report);
result.isTaskAssignee = ReportUtils.isReportManager(report);
} 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) |
ProposalThe 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 const shouldShowGreenDotIndicator =
!hasBrickError &&
(optionItem.isUnreadWithMention ||
ReportUtils.isWaitingForIOUActionFromCurrentUser(optionItem) ||
(optionItem.isTaskReport && optionItem.isTaskAssignee && !optionItem.isCompletedTaskReport && !optionItem.isCanceledTaskReport && !optionItem.isArchivedRoom)); and of course add the isCanceledTaskReport object to the if (result.isTaskReport) {
result.isCompletedTaskReport = ReportUtils.isCompletedTaskReport(report);
result.isCanceledTaskReport = ReportUtils.isCanceledTaskReport(report);
result.isTaskAssignee = ReportUtils.isReportManager(report);
} POC: |
Not able to reproduce in latest main - v1.3.71-11 |
Oops! Sorry @paultsimura. I can also reproduce it. Thanks for the verification. |
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. |
I think @paultsimura's approach is more simpler. Let's go with there proposal. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @tgolen, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
It seems this bug has made its way onto staging and isn't only specific to dev now. |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Current assignee @tgolen is eligible for the Engineering assigner, not assigning anyone new. |
The PR is ready for review |
Going to remove the blocker on this as it's not a common flow right now and doesn't need to block deploy |
🎯 ⚡️ Woah @allroundexperts / @paultsimura, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
Weird, the payment window wasn't added automatically. 🤔 Should be 7 days after the PR's deploy to watch for regressions. |
Triggered auto assignment to @flaviadefaria ( |
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:
|
@paultsimura you've been paid |
@flaviadefaria offer accepted, thanks! |
|
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:
|
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:
|
Reviewer Checklist
Regression Test Steps
Verify that a green dot does not show up in the LHN beside the task item. Do we 👍 or 👎 ? |
$750 payment approved for @allroundexperts based on BZ summary. |
Alright, I believe everyone has been paid so closing this. |
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:
should not show green dot show if task is deleted
Actual Result:
green dot appears even if task is deleted
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
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
Screen.Recording.2023-09-19.at.12.19.29.PM.mov
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695106297939429
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: