-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[CHECKLIST] [$250] Tasks - Task stays on the previously assigned user after assignee has been changed #46782
Comments
Triggered auto assignment to @garrettmknight ( |
@garrettmknight FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
@lanitochka17 : unable to reproduce this in staging. is there a separate setting that should be enabled in account settings? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Task stays on the previously assigned user after assignee has been changed What is the root cause of that problem?Problem 1: Problem 2: What changes do you think we should make in order to solve the problem?Problem 1: Problem 2:
What alternative solutions did you explore? (Optional) |
@garrettmknight Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~0116c365af04938c86 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
The expected result is a bit unclear here, do we actually expect the created chat to be hidden/deleted? @garrettmknight What's happening is a 1:1 DM is being created with the assigned user and the task shared there. Once re-assigned, the previously assigned user still has write access to the task report (i.e. they can add comments) because the task is shared in their DM, which is why Line 1116 in 53eee53
The previously assigned user can also edit the task, but the BE throws an error if the previously assigned user tries to complete the task (even though strangely the task will actually get marked complete). So we could tidy that up so that the FE matches the BE so that the previously assigned user can't complete the task but still can modify it as it's shared with them. Dealing with the other part sounds like it could be complicated, especially if there's an existing DM between the (previously) assigned user and the task owner. |
ProposalPlease re-state the problem that we are trying to solve in this issue.With clarity of requirement from @jjcoffee previous task owner is shown ability to complete task, which is unexpected. What is the root cause of that problem?Lack of clarity of requirement. What changes do you think we should make in order to solve the problem?Complete task option to be shown ONLY to task owner and current assignee. If user is a previous owner of the task, complete task checkbox and "mark as complete" button should be hidden. What alternative solutions did you explore? (Optional)N.A. |
Thanks for checking out @jjcoffee - I think the expected behavior was that the chat for the second assignee is removed. That likely means that the assignee is removed from the task room if it's not shared in a chat they'd have access to normally; however, I'd agree that it's better to allow them access to that chat and block their ability to complete the task they're not assigned to. |
ProposalPlease re-state the problem that we are trying to solve in this issue.User is not task's author or task's assignee has ability to complete the task. What is the root cause of that problem?The condition to allow user to complete the task is:
with:
In this case, Line 1116 in 98e7536
What changes do you think we should make in order to solve the problem?We can create:
and then update:
The same should be applied to:
Can create the util function for it. |
@dominictb's proposal is something along the lines of what I was thinking, but just to check @garrettmknight are you able to confirm if this would be the expected behaviour. Essentially there would be two separate groups:
|
Could we just disable |
@garrettmknight We had a PR that "allow members to edit task, if users can comment on reports they also can edit task" here. If we implement what you said above, it will break the change in that PR. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Thanks @dominictb - In that case it does seem like we need a different function |
Thanks for confirming @garrettmknight! Let's move forward with @dominictb's proposal then, with a util function 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @bondydaa, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Well we have two similar cases:
It's clear that in (1) we want to block the user from being able to complete/incomplete the task after they're no longer assigned, but it's not clear in (2) whether we want the same behaviour. |
IMO, I think both cases can have the same behavior. In (2), user still cannot complete/incomplete the task unless the task is assigned to them. What do you think @puneetlath? |
@garrettmknight Do you have any thoughts on this? Or do you know who to bring in to get a consensus on this so we can move forward with the PR? |
@puneetlath @garrettmknight Do you guys have thoughts on what should happen in these two cases? |
I'd agree that both cases should share the same behavior. |
@garrettmknight Sweet, thanks for clearing that up! So we'll proceed with the PR under the assumption that only task assignees and the task owner can complete the task - anyone the task was shared with (who are not either of those) won't be able to complete/incomplete the task. That means the PR is basically ready, just waiting for one small tweak from @dominictb. |
@garrettmknight Could we get a new engineer assigned to review the PR as @bondydaa is OOO? |
merged that PR earlier, looks like it was included in the latest deploy to staging. |
looks like it was deploy to production #47519 (comment) but the automation must have failed |
@garrettmknight This one should be due payment 2024-09-24. |
Payment Summary:
|
@jjcoffee can you complete the checklist when you get a chance? |
Regression Test Proposal
Do we agree 👍 or 👎 |
@garrettmknight, @bondydaa, @jjcoffee, @dominictb Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@garrettmknight We're good to pay. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.16
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): biruknew45+22s9sj@gmail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
When reassigning to the third person, the chat created when reassigning to the second person should be cleared or removed
Actual Result:
When reassigning to the third person, the chat created for the second person assigned still exists/persists, and they can see it and take some actions
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6554782_1722094115952.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknightThe text was updated successfully, but these errors were encountered: