-
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
[HOLD for payment 2024-10-08][$250] Task – .com
appears after assignee avatar when create a task manualy
#49454
Comments
Triggered auto assignment to @mallenexpensify ( |
@mallenexpensify 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 |
Edited by proposal-police: This proposal was edited at 2024-09-19 12:17:38 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Task – What is the root cause of that problem?This regex does not handle subdomains in emails correctly App/src/pages/home/report/ReportFooter.tsx Lines 126 to 132 in 37bf6b2
What changes do you think we should make in order to solve the problem?Replace it with this regex: -const taskRegex = /^\[\]\s+(?:@([^\s@]+(?:@\w+\.\w+)?))?\s*([\s\S]*)/;
+const taskRegex = /^\[\]\s+@([^\s]+)\s*([\s\S]*)/; Result49454.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
const taskRegex = /^\[\]\s+(?:@([^\s@]+(?:@\w+(\.\w+)+)?))?\s*([\s\S]*)/; and const title = match[3] ? match[3].trim().replace(/\n/g, ' ') : undefined; App/src/pages/home/report/ReportFooter.tsx Line 138 in 37bf6b2
What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?This happens because the logic can't handle multiple level of domain of an email, for example, App/src/pages/home/report/ReportFooter.tsx Line 132 in 8d645bf
The regex above, specifically What changes do you think we should make in order to solve the problem?Let's use the old regex and make the domain optional.
I think we can remove |
.com
appears after assignee avatar when create a task manualy.com
appears after assignee avatar when create a task manualy
Job added to Upwork: https://www.upwork.com/jobs/~021836890784466753823 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
Unable to repro on staging, Desktop. @Ollyws can you attempt reproduction plz? Some users have default avatars and some have custom) |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
@mallenexpensify you need to also enter the task title after an email. For example |
@CyberAndrii and @ChavdaSachin both your proposals will break adding a task without a defined user ( @bernhardoj's proposal LGTM. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Is the regex supposed to only match |
The email regex from MDN matches
|
@iwiznia, @Ollyws, @mallenexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
That sounds good to me |
PR is ready cc: @Ollyws |
.com
appears after assignee avatar when create a task manualy.com
appears after assignee avatar when create a task manualy
Triggered auto assignment to @NickTooker ( |
Sorry @NickTooker , wrong label :ohnothing: |
Payment Summary
BugZero Checklist (@mallenexpensify)
|
Contributor: @bernhardoj due $250 via NewDot @Ollyws plz complete the BZ checklist. BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Requested in ND. |
BugZero Checklist:
https://github.com/Expensify/App/pull/39475/files#r1792852417
N/A
Yes.
Regression Test Proposal
Do we agree 👍 or 👎 |
Requested in ND. |
$250 approved for @Ollyws |
Test case created Thanks all! |
$250 approved for @bernhardoj |
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: v9.0.38-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4983838
Email or phone of affected tester (no customers): ponikarchuks+118924@gmail.com
Issue reported by: Applause Internal Team
Action Performed:
Example:
[] @applausetester+jpcategory_2@applause.expensifail.com
New task
Expected Result:
.com
not appears after assignee avatarActual Result:
.com
appears after assignee avatarWorkaround:
Unknown
Platforms:
Screenshots/Videos
Bug6608501_1726727831321.Task_assignee_com.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @OllywsThe text was updated successfully, but these errors were encountered: