Skip to content
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] Task checkbox not updating when task is marked as incomplete #19086

Closed
6 tasks done
thienlnam opened this issue May 16, 2023 · 22 comments
Closed
6 tasks done

[$1000] Task checkbox not updating when task is marked as incomplete #19086

thienlnam opened this issue May 16, 2023 · 22 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors Internal Requires API changes or must be handled by Expensify staff

Comments

@thienlnam
Copy link
Contributor

thienlnam commented May 16, 2023

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:

Break down in numbered steps

  1. Create a task
  2. Go back to the parent chat where the task was created
  3. Click on the checkbox to mark the task as complete
  4. Click on the checkbox to mark the task as incomplete

Expected Result:

Describe what you think should've happened
The checkbox should become unchecked

Actual Result:

Describe what actually happened
Notice that the checkbox still remains checked

Workaround:

Clicking into the task will show the current state of the task

Platforms:

Which of our officially supported platforms is this issue occurring on? All

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number:
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
Expensify/Expensify Issue URL:
Issue reported by: @thienlnam
Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0128be1224a5f0cdd5
  • Upwork Job ID: 1658941268622680064
  • Last Price Increase: 2023-05-17
@thienlnam thienlnam added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 16, 2023

Triggered auto assignment to @adelekennedy (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented May 16, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@adelekennedy
Copy link

just happened to me today - real bug, able to reproduce and couldn't find a duplicate

@adelekennedy adelekennedy added the External Added to denote the issue can be worked on by a contributor label May 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0128be1224a5f0cdd5

@melvin-bot melvin-bot bot changed the title Task checkbox not updating when task is marked as incomplete [$1000] Task checkbox not updating when task is marked as incomplete May 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (External)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Triggered auto assignment to @puneetlath (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@hoangzinh
Copy link
Contributor

I think this issue should be internal. When I mark/unmark several time, the API with command ReopenTask got error

Screenshot 2023-05-18 at 22 27 28

@puneetlath
Copy link
Contributor

Seems your right! Thanks @hoangzinh. Marking Internal.

@puneetlath puneetlath added Internal Requires API changes or must be handled by Expensify staff and removed External Added to denote the issue can be worked on by a contributor labels May 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 18, 2023

Current assignee @eVoloshchak is eligible for the Internal assigner, not assigning anyone new.

@thienlnam
Copy link
Contributor Author

The API command failing makes sense, but we should also add some feedback on the user end so they know that the command failed, and then disable the button until they address the error. I imagine this would look like the RBR error we se when we fail to add a comment

@adelekennedy adelekennedy removed the Bug Something is broken. Auto assigns a BugZero manager. label May 22, 2023
@melvin-bot melvin-bot bot added the Overdue label May 22, 2023
@adelekennedy adelekennedy removed their assignment May 22, 2023
@melvin-bot melvin-bot bot removed the Overdue label May 22, 2023
@adelekennedy adelekennedy added the Bug Something is broken. Auto assigns a BugZero manager. label May 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 22, 2023

Current assignee @puneetlath is eligible for the Bug assigner, not assigning anyone new.

@Expensify Expensify deleted a comment from melvin-bot bot May 22, 2023
@adelekennedy adelekennedy self-assigned this May 22, 2023
@jjcoffee
Copy link
Contributor

Just a heads up, this is not only a BE issue as far as I can tell. To summarise my proposal on a related task, there is an issue that's fully FE where the reportAction (linked to TaskPreview) will never update it's task completion state (specifically childStateNum or childStatusNum) since we don't provide any optimisticData or successData to update the reportAction (and/or data in the API response).

So when you initially complete the task, it's only the taskReport that updated to completed, the reportAction stays open. If you switch reports or do something that triggers openReport, this seems to successfully update the reportAction. But now if you try and reopen the task, taskReport gets successfully reopened, but since the task status in reportAction is not updated the taskPreview will display as if it's still completed, i.e. the checkmark stays (even though the API request succeeds, so the task is actually now open).

If you then try and click the checkbox again, this will call ReopenTask, even though the task is already open (just not displaying as such). This of course then returns the BE error noted here - "Incorrect report state" - which is to indicate something is out of sync (which is the FE's fault!).

I can repost my proposal here if this gets marked External again, but it's the same fix so I just thought I'd flag mainly to save someone debug time!

@hoangzinh
Copy link
Contributor

Oh it seems we have duplicated issue here #19298. And I have my proposal there too #19298

@jjcoffee
Copy link
Contributor

@hoangzinh That's a bit of a different issue as it deals with synchronising the task across two different users.

@melvin-bot
Copy link

melvin-bot bot commented May 25, 2023

@puneetlath, @eVoloshchak, @adelekennedy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@puneetlath
Copy link
Contributor

@thienlnam re-assigning over to you as discussed here. Thanks!

@melvin-bot melvin-bot bot removed the Overdue label May 25, 2023
@puneetlath puneetlath assigned thienlnam and unassigned puneetlath May 25, 2023
@melvin-bot melvin-bot bot added the Overdue label May 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

@eVoloshchak, @thienlnam, @adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick!

@adelekennedy
Copy link

@thienlnam I saw you thumbs up the comment above - should we throw the external label on here for some contributor help?

@melvin-bot melvin-bot bot removed the Overdue label May 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 30, 2023

@eVoloshchak @thienlnam @adelekennedy 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!

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added the Overdue label Jun 1, 2023
@thienlnam
Copy link
Contributor Author

Yeah, let me update the title - we basically need better handling for when the task cannot be marked as incomplete due to the state of the task.

Though actually this may actually also be solved in #19157 so we can focus over there

@melvin-bot melvin-bot bot removed the Overdue label Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

7 participants