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-08-17] [$1000] Update Task title/description/assignee when offline is not grey out #23200
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Task title/description/assignee should be grey out when update in offline mode
Actual Result:
Task title/description/assignee is not grey out
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
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: 1.3.43-0 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 Notes/Photos/Videos: Any additional supporting documentation
Please re-state the problem that we are trying to solve in this issue.
Updated task actions are not greyed out when offline.
What is the root cause of that problem?
We're not wrapping the items inside the TaskView component inside a OfflineWithFeedback component.
What changes do you think we should make in order to solve the problem?
Wrap the items inside TaskView inside OfflineWithFeedback. In order for this to work, we need to make sure that the edited fields are correctly represented in the pendingFields section of the report. To do this, we can add the appropriate pending fields while setting the optimistic data in editTaskAndNavigate and createTaskAndNavigate function.
To demonstrate the approach, I'll just show the steps needed to implement the greying out of the task title on edit.
changed the title [-]Update Task title/description/assignee when offline is not grey out[/-][+][$1000] Update Task title/description/assignee when offline is not grey out[/+]on Jul 21, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.52-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-08-17. 🎊
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.
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:
[@mollfpr / @allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr / @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:
[@mollfpr / @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:
[@mollfpr / @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.
[@tjferriss] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
[@mollfpr / @allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr / @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:
I don't think there's an offending PR. We haven't implemented the offline feedback in the first place.
[@mollfpr / @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:
The regression step should be enough.
[@mollfpr / @allroundexperts] Determine if we should create a regression test for this bug.
[@mollfpr / @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.
Should this PR have addressed the problem cited in #25956 (comment)? I realize that's a separate bug report, but it appears super similar / duplicate in terms of the style of bug. So I'm curious if we can update the PR here (or draft a new PR) to accommodate this too?
@michaelhaxhiu My test on the PR shows the assignee field grey out but not in the current main.
I think #25956 is the legit report. The issue is a regression from #22778. In this issue PR, we are still using editTaskAndNavigate and have the RBR action set up there. In #22778, we changed that to editTaskAssigneeAndNavigate, but it hasn't got the RBR action.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
melvin-bot commentedon Jul 19, 2023
Triggered auto assignment to @tjferriss (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 19, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)allroundexperts commentedon Jul 19, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Updated task actions are not greyed out when offline.
What is the root cause of that problem?
We're not wrapping the items inside the
TaskViewcomponent inside aOfflineWithFeedbackcomponent.What changes do you think we should make in order to solve the problem?
Wrap the items inside
TaskViewinsideOfflineWithFeedback. In order for this to work, we need to make sure that the edited fields are correctly represented in thependingFieldssection of the report. To do this, we can add the appropriate pending fields while setting the optimistic data ineditTaskAndNavigateandcreateTaskAndNavigatefunction.To demonstrate the approach, I'll just show the steps needed to implement the greying out of the task title on edit.
pendingFieldsin thereportwhen editing a task here.pendingFieldsas{}in the success data.Result
What alternative solutions did you explore? (Optional)
Instead of using
OfflineWithFeedbackcomponent, we can just add a style that sets opacity to0.5if there is a pending field in the report.[-]Update Task title/description/assignee when offline is not grey out[/-][+][$1000] Update Task title/description/assignee when offline is not grey out[/+]melvin-bot commentedon Jul 21, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0138286787014f7dd4
melvin-bot commentedon Jul 21, 2023
Current assignee @tjferriss is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jul 21, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr (
External)tjferriss commentedon Jul 21, 2023
It actually looks like it's intended that we do not grey this out per #22907
27 remaining items
melvin-bot commentedon Aug 10, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 10, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.52-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-08-17. 🎊
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 Aug 10, 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:
tjferriss commentedon Aug 15, 2023
@hoangzinh and @mollfpr are both hired in Upworks: https://www.upwork.com/ab/applicants/1682219760636948480/hired. We're waiting on the regression period for payment.
@mollfpr @allroundexperts can you get started on the checklist?
mollfpr commentedon Aug 18, 2023
I don't think there's an offending PR. We haven't implemented the offline feedback in the first place.
The regression step should be enough.
neil-marcellini commentedon Aug 28, 2023
Bump @tjferriss
michaelhaxhiu commentedon Aug 30, 2023
Should this PR have addressed the problem cited in #25956 (comment)? I realize that's a separate bug report, but it appears super similar / duplicate in terms of the style of bug. So I'm curious if we can update the PR here (or draft a new PR) to accommodate this too?
mollfpr commentedon Aug 31, 2023
@michaelhaxhiu My test on the PR shows the assignee field grey out but not in the current
main.I think #25956 is the legit report. The issue is a regression from #22778. In this issue PR, we are still using
editTaskAndNavigateand have the RBR action set up there. In #22778, we changed that toeditTaskAssigneeAndNavigate, but it hasn't got the RBR action.michaelhaxhiu commentedon Aug 31, 2023
Thanks luthfi @mollfpr i appreciate your input as always 🙏
tjferriss commentedon Sep 11, 2023
Regression test submitted to Applause.