-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$1000] can’t check off a task when it is “done” #19298
Comments
Triggered auto assignment to @bfitzexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Reproduced |
Job added to Upwork: https://www.upwork.com/jobs/~014b784d341e4d6cdf |
Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Triggered auto assignment to @robertjchen ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.can’t check off a task when it is “done” What is the root cause of that problem?I think there is a redundant check whether task is completed or not in report actions view: App/src/components/ReportActionItem/TaskPreview.js Lines 56 to 58 in c917c44
In TaskHeader of taskReport, we only check status of report itself App/src/components/TaskHeader.js Line 39 in c917c44
=> It leads to show incorrect status of a task in reportActionsView What changes do you think we should make in order to solve the problem?We need to remove redundant check on props.action to keep it consistency with TaskHeader of taskReport. So the correct condition here should be: const isTaskCompleted =
(props.taskReport.stateNum === CONST.REPORT.STATE_NUM.SUBMITTED && props.taskReport.statusNum === CONST.REPORT.STATUS.APPROVED); There are some valid reasons to do it:
So the status of taskReportAction is outdated. |
This is a BE issue as there is no pusher event to update the task for user A's chat so it's not synchronised with the task's real state (that's why the checkbox doesn't get checked on user A's side even though the task was marked as complete by user B). You'll only get the updated task status if you open the task report. |
I'm unassigning due to limited availability. Can you a assign new C+ here by re-applying the external label here, thanks! Also @robertjchen Not sure but seems like a backend issue from a couple of comments above. Please check that before moving forward cc: @bfitzexpensify |
@robertjchen before I assign a new C+, do you want to take a look at #19298 (comment) and confirm if this is a back-end or front-end issue? |
@bfitzexpensify I'm happy take this back if C+ Needed. I'm available now. |
Yes, it looks like it's on the backend- taking this internal to work on further 🤔 |
@aimane-chnaif @robertjchen thoughts on @hoangzinh's comment? |
I think the core issue around inconsistent state should be resolved rather than the FE workaround. The backend should do as described here #19298 (comment) 🤔 |
Cool, I agree with the general idea of solving the core issue rather than using a workaround. Let's keep this |
@robertjchen @bfitzexpensify @aimane-chnaif this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
This one's internal, Melv |
I think I found the source of the issue on the backend. Draft PR linked and testing out the fix 👍 |
Ran into some problems testing locally, going to revisit tomorrow to see if I can get it to work, hopefully will have the PR ready by EOW. |
Still testing things out locally |
@robertjchen @bfitzexpensify @aimane-chnaif this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
@robertjchen, @bfitzexpensify, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Top priority today 👀 |
Fix confirmed, working on finalizing the PR/screenshots, etc. 👍 |
The fix is currently on staging |
@robertjchen, @bfitzexpensify, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@robertjchen looks like this is on prod now (https://github.com/Expensify/Web-Expensify/pull/37714#issuecomment-1601887889) - we good to close this out? |
Yep, we're all set here! |
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:
Able to check off
Actual Result:
Not able to check off
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?
Version Number: 1.3.16.5
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
Recording.657.mp4
Expensify/Expensify Issue URL:
Issue reported by: @joaniew
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684311858049629
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: