-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Payment due April 30th] [$500] Task- Complete domain and @expensify.sms must be included to create task with assignee via [] method #38424
Comments
Triggered auto assignment to @zanyrenney ( |
@zanyrenney 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 |
ProposalPlease re-state the problem that we are trying to solve in this issue.short mentioned are not parsed when creating a task via chat commands What is the root cause of that problem?we don't consider the short mentions in the current regex which create tasks as following: App/src/pages/home/report/ReportFooter.tsx Lines 81 to 87 in 2fbd6a8
What changes do you think we should make in order to solve the problem?we need to expand the second group in the regex to consider also short mentions: const taskRegex = /^\[\]\s+(?:@([^\s@]+(?:@\w+\.\w+)?))?\s*([\s\S]*)/; also, we need to modify the email assignment so that If the parsed text is a short mention, it will attach the current user domain to it: first we need to add the following variables here in order to use them in the const allPersonalDetailLogins = Object.values(allPersonalDetails).map((personalDetail) => personalDetail?.login ?? '');
const currentUserEmail = session?.email;
const currentUserPrivateDomain = isEmailPublicDomain(currentUserEmail ?? '') ? '' : Str.extractEmailDomain(currentUserEmail ?? ''); then inside the function we need to modify the mail to: let email = match[1] ? match[1].trim() : undefined;
if (!Str.isValidEmail(email ?? '') && currentUserPrivateDomain) {
const mentionWithEmailDomain = `${email}@${currentUserPrivateDomain}`;
if (allPersonalDetailLogins.includes(mentionWithEmailDomain)) {
email = mentionWithEmailDomain;
}
}
if (Str.isValidPhone(email ?? '')) {
const mentionWithSmsDomain = addSMSDomainIfPhoneNumber(email ?? '');
if (allPersonalDetailLogins.includes(mentionWithSmsDomain)) {
email = mentionWithSmsDomain;
}
} POC:Screen.Recording.2024-03-16.at.9.07.22.AM.mov |
Agree this looks external and adding to VIPVSB. |
Job added to Upwork: https://www.upwork.com/jobs/~017234f15d3d2395e5 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Current assignee @zanyrenney is eligible for the Bug assigner, not assigning anyone new. |
Triggered auto assignment to @Christinadobrzyn ( |
Just a note to say, I am OOO now until April 2nd, reassigning BZ team member to help while I am OOO. |
looks like we're accepting and reviewing proposals cc @eVoloshchak |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@eVoloshchak can you check out this proposal to see if it would work? #38424 (comment) |
Just a heads up that I'm going to be ooo on Friday and Monday for Easter. I'll check in on this on Tuesday when I'm back. |
@abzokhattab's proposal does look good to me, let's spin up the PR! 🎀👀🎀 C+ reviewed! |
Triggered auto assignment to @MonilBhavsar, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Looks good. Thanks for attaching the POC. It doesn't display the case for user with contact number. I believe it should work. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Good catch @MonilBhavsar, i didnt consider the phone numbers in my proposal, i have just modified it to consider phones as well. so basically we are mimicking these conditions in the Here is the result: Screen.Recording.2024-04-01.at.7.49.53.PM.mov |
Sounds good 👍 |
📣 @abzokhattab 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
The PR is ready. please have a look and let me know if you have any comments. |
looks like PR is in production - #39475 |
payment summary: paid $500 to @abzokhattab via upwork. |
payment summary: paid $500 to @abzokhattab via upwork. |
$500 approved for @eVoloshchak |
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: 1.4.53-2
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
Issue reported by: Applause - Internal Team
Action Performed:
a. Assignee from the same domain
b. Assignee using contact method
c. Assignee with no prior chat from public domain (Gmail)
Expected Result:
Case a - User can create task with assignee using email selected from suggestion list (dropped domain)
Case b - User can create task with assignee using contact number without @expensify.sms
Case c - Task will be created with assignee if the email is a user with no prior chat from public domain (Gmail)
Actual Result:
Case a - Assignee can only be assigned using full email address. User is required to add complete domain after selecting from suggestion list
Case b - User is required to add @expensify.sms to assign user with contact number
Case c - The assignee completely disappears after the task is created
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6415380_1710533600232.20240316_034701.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: