Open izarutskaya opened 1 month ago
Triggered auto assignment to @twisterdotcom (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Task bugs are MEDIUM
or LOW
at the moment. I do think this is a bug, because we should prompt you to invite, even if you agree not to. It's great you can assign tasks outside of private rooms and have somebody complete them back to the private room, but it would be confusing to an end user if they thought that made them a member, which I think is a logical jump.
https://github.com/Expensify/App/assets/9133401/3a4b5501-00c9-4e36-8f89-5480869337df
cc @quinthar.
Job added to Upwork: https://www.upwork.com/jobs/~018bfc480615cf43ae
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh (External
)
Hi, I'm Viktoryia from Callstack - expert contributor group - and I would like to work on this issue.
@izarutskaya In the expected result section you mentioned that we should act the same way as in the group chat. I've checked how the group chat works and it looks like it does all the same, I don't see an invitation popup. Could you please help me to figure out how the expected result should look?
Like this:
Assigning tasks to a user outside of the private room doesn't trigger a concierge whisper message with this user invitation.
The API doesn't return an ACTIONABLEMENTIONWHISPER
report action for task assignees outside of the room, though it does it for usual mentions of members outside of the room.
The API should return a report action where actionName
is ACTIONABLEMENTIONWHISPER
and inviteeAccountIDs
has the id of the assignee in case the created task assignee isn't a member of the private room. The FE already supports this type of message, so it should be displayed as expected.
@hoangzinh let me know how you feel about this proposal.
After B joined a Room, can see tasks or everything in the room Before B joins a Room, B can't see a Room in the LHN component.
@VickyStash could you share how would you solve those requirements?
@hoangzinh I'll try to provide more details here tomorrow, currently working on a higher priority ticket
๐ฃ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? ๐ธ
@hoangzinh I've made more investigations, and that's what I've found. Currently, if user A creates a private room and inside the room creates a task assigned to user B: 1) The task is also sent to the DM between user A and user B. Is it expected to send a task from a private room to the DM as well? 2) Since the task is sent to DM, it's also visible in LHN. 3) User B doesn't have access to a private room and can't see it in the search/LHN options.
The solution depends on whether it's expected to send a task from a private room to the DM. Here is a video:
https://github.com/Expensify/App/assets/23176449/407a75bd-4f72-4463-aaad-852a883daec1
The task is also sent to the DM between user A and user B. Is it expected to send a task from a private room to the DM as well?
I think it's expected if user B is in that private room.
It's definitely expected that the task is sent to the DM - the system purposefully allows you to assign tasks to somebody who doesn't have the full context of the room; this is normal for people doing tasks part of a wider process.
We just want to always allow the assigner to invite them there and then because:
@twisterdotcom Got it, thank you for confirming! But should the assigned user be able to complete the task from DM, if the task was created in a private room and the user wasn't added as a member of this room? Right now the app shows an error, but the task turns into a completed (though it takes some time for it to be updated):
https://github.com/Expensify/App/assets/23176449/8cf90ad7-3e67-47a9-877d-f1429f53fc26
Is it expected? Or should we hide the task from DM/LHN if the assigned user wasn't added as a member? Or maybe the error shouldn't be shown?
But should the assigned user be able to complete the task from DM, if the task was created in a private room and the user wasn't added as a member of this room?
Yes! They should be able to complete the task.
@twisterdotcom does that mean they also see the task from DM although they haven't been added to that private room?
Correct, if they need to complete a task that originated in a room they don't have access to, they have to see it somewhere, in order to know what to do and complete it.
In this case, I think API shouldn't return an error when a user tries to complete the task from DM, even if it was created in a private room. WDYT @hoangzinh?
yes I think so @VickyStash
Same as a GROUP chat function. When assigning tasks to outside members, a popup invites them to show up, and we can invite them to the room. After B joined a Room, can see tasks or everything in the room Before B joins a Room, B can't see a Room in the LHN component.
so @twisterdotcom, When user A assigns a task to user B:
could you check if I understand requirements correctly? Thanks
Yes, you understand perfectly.
@VickyStash can you check requirements here if it's clear to you https://github.com/Expensify/App/issues/39799#issuecomment-2064196984? If it's yes, can update your proposal again? Thanks
@twisterdotcom @hoangzinh this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
You do not have the permission to do the requested action.
, though he should be able to complete a task.ACTIONABLEMENTIONWHISPER
report action for task assignees outside of the room, though it does it for usual mentions of members outside of the room.CompleteTask
API call a Report no longer exists
error (see the screenshot below), when a user outside of a private room tries to complete the assigned task from DM. Though the task is completed after all.
actionName
is ACTIONABLEMENTIONWHISPER
and inviteeAccountIDs
has the id of the assignee in case the created task assignee isn't a member of the private room. The FE already supports this type of message, so it should be displayed as expected.^^ @hoangzinh
๐ฃ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? ๐ธ
Hi @VickyStash thanks for updating. Looks good just one minor thing, do you think it's better if we use another actionName
instead of reusing ACTIONABLE_MENTION_WHISPER
?
@hoangzinh I think we can use the existing ACTIONABLE_MENTION_WHISPER
type, at least in the app it was added exactly to display the message mentioned here, and we need to display the exactly same message.
It's fine to me. Let's do 2nd review from an internal engineer.
Link to proposal https://github.com/Expensify/App/issues/39799#issuecomment-2069691113
๐๐๐ C+ reviewed
Triggered auto assignment to @luacmartins, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Seems like the issue is in the API, so we need someone internal to work on this. @jasperhuangg I see you on the blame for code related to ACTIONABLEMENTIONWHISPER
, would you be available to work on this?
๐ฃ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? ๐ธ
Bump @jasperhuangg, would you be able to take this on since it seems like you're familiar with this code?
Sorry I'm having trouble understanding the issue. Are we saying that if we are assigning a task in a room to someone outside of the room, we should display an actionable mention whisper inviting them to the room since they are mentioned in the task?
This was never an expected behavior in the task flow, but it could make sense to add. I think it would be good to get @thienlnam's opinion on this, since he originally implemented tasks.
Are we saying that if we are assigning a task in a room to someone outside of the room, we should display an actionable mention whisper inviting them to the room since they are mentioned in the task?
Yea, I think that's it.
@thienlnam what do you think, is this something we want for tasks?
It was not designed for that, but I could see some use cases for that - seems like we can take the same invite behavior for mentions here
Yeah I agree. Wow, I assumed this was specifically designed for it, I swore I remember reading this was intended which is why I found it odd not to allow inviting. Seems like we have a solution for it here too, so I say we do it.
@VickyStash @luacmartins I think we should consider again my comment here https://github.com/Expensify/App/issues/39799#issuecomment-2074637596. We're implementing another WHISPER actionName here https://github.com/Expensify/App/issues/39508 when mentioning a room that doesn't exist, therefore when assigning a task for a member outside a private room, we might need another proper actionName.
@twisterdotcom @hoangzinh @luacmartins this issue is now 4 weeks old, please consider:
Thanks!
Friendly bump @VickyStash @luacmartins on https://github.com/Expensify/App/issues/39799#issuecomment-2087764892
Yea, I agree that having a separate action for this would make it consistent with how we're solving it for actionableRoomMentionWhisper
๐ฃ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? ๐ธ
We need an internal engineer to work on the BE side, @luacmartins or @jasperhuangg anyone is available to help us on this issue? Thanks
I can handle the back-end logic for this, probably some time this week.
Thanks @jasperhuangg!
Have a few local changes, caught up in some higher priority initiatives at the moment.
Demoting to Weekly, will bring it back to Daily
once I can focus more on this.
Current assignee @hoangzinh is eligible for the Internal assigner, not assigning anyone new.
Triggered auto assignment to @isabelastisser (NewFeature
), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.
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: v1.4.60-13 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): nhut.nguyenminh.it+5000@gmail.com / nhut.nguyenminh.it+2@gmail.com Logs: https://stackoverflow.com/c/expensify/questions/4856 Issue reported by: Applause-Internal team
Action Performed:
Pre-condition: A private room, two accounts ( 1 inside room and 1 outside room - we call A and B)
Expected Result:
Same as a GROUP chat function. When assigning tasks to outside members, a popup invites them to show up, and we can invite them to the room. After B joined a Room, can see tasks or everything in the room Before B joins a Room, B can't see a Room in the LHN component.
Actual Result:
Assign tasks for members outside the private room, not show a popup inviting them
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
View all open jobs on GitHub
https://github.com/Expensify/App/assets/115492554/3c459032-9089-4713-bd3e-e782c5060a86
Upwork Automation - Do Not Edit