-
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 2023-07-26] [$1000] Web - Chat - Inconsistent behaviour while entering emails in chat #20085
Comments
Triggered auto assignment to @alexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
I'll test soon |
ProposalPlease re-state the problem that we are trying to solve in this issue.When sending emails in chat, it may display inconsistently as a mention or as an email. What is the root cause of that problem?Let's look at the replace rules from ExpensiMark.js in the The current replace logic is prioritizing replacing Because of this, What changes do you think we should make in order to solve the problem?IMO, we should display the texts as emails instead of mentions. It can be achieved by moving the What alternative solutions did you explore? (Optional)Alternatively, we could prioritize rendering the texts as mentions by changing the
Another way is that although I'm not aware of the context of why it should be there, we could remove the ResultWorking well after the fixes Rendered as emailScreen.Recording.2023-06-03.at.15.59.08.movRendered as mentionScreen.Recording.2023-06-03.at.16.13.05.1.mov |
I'll test tomorrow |
@kbecciv - could you please double-check if this is happening on other platforms? I tested in Chrome like the GH suggested: I noticed that the issue happens in MacOS/Desktop too: Thanks! |
@kbecciv any news here? Thank you! |
Job added to Upwork: https://www.upwork.com/jobs/~01d7534e113b95a39f |
Current assignee @alexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Triggered auto assignment to @yuwenmemon ( |
Waiting for proposals |
ProposalPlease re-state the problem that we are trying to solve in this issue.When sending emails in chat, it is parsed inconsistently. What is the root cause of that problem?Here is the user-mention regex
This result is passed to the What changes do you think we should make in order to solve the problem?I think both should be parsed as email. In order to do that We need to change the user-mention rule.
This works as expected and passed all existing tests. The following is the manual test result.
This solution will fix the #19997 as well. Result20085_mac_chrome.mp4What alternative solutions did you explore? (Optional) |
@eVoloshchak - when you get a chance, can you review the latest proposal? Thanks! |
@eVoloshchak I have a question:
We should also be test with below texts:
|
As email. Both don't start with
These two should also be rendered as emails (the same as they are rendered here on GitHub) |
I think mention should always start with a space/new line, so we should render all of these as emails (same as Github does on this page).
I completely agree with this. We should test with test@[email protected] and test+1@[email protected], since, as @jeet-dhandha pointed out those are also rendered incorrectly. @tienifr, we should have a couple of tests to ensure this isn't broken in the future 🎀👀🎀 C+ reviewed! |
📣 @tienifr You have been assigned to this job by @alexpensify! |
The PR to update |
Awesome, looks like the PR is moving along. |
PR was approved |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
Alright, waiting for automation to kick in here. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.42-26 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-07-26. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
@eVoloshchak when you get a chance, can you please complete the checklist? I'll be working on the payment process tomorrow. |
|
Here is the payment summary:
Upwork Job: https://www.upwork.com/jobs/~0152cd2b837df9a9df *If applicable, the bonuses will be applied on the final payment Extra Notes regarding payment: This one was held because of the merge freeze, so I believe there is still a payment here. With that said, there will be no urgency bonus. |
I'm having trouble with the Upwork job and will complete the process tomorrow. |
Requested the payment via NewDot |
Reviewed details for @eVoloshchak. This is accurate and approved for payment in NewDot. |
@alexpensify I've accepted the offer on Upwork, Thanks. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The formatting in first message is similar to the 2nd message or vice versa
Actual Result:
Behaviour is inconsistent
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.22.0
Reproducible in staging?: yes
Reproducible in production?: yes
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
Recording.2949.mp4
Expensify/Expensify Issue URL:
Issue reported by: @aman-atg
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684776832487869
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: