-
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
[$250] Chat - Phone number mention in edit comment shows @expensify.sms #40969
Comments
Triggered auto assignment to @muttmuure ( |
We think this issue might be related to the #vip-vsb. |
Job added to Upwork: https://www.upwork.com/jobs/~01f67e599996d40e27 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - Phone number mention in edit comment shows @expensify.sms What is the root cause of that problem?When a phone number is submitted or tagged, the function named What changes do you think we should make in order to solve the problem?You need to verify if the parsed message adheres to a valid phone number format. If it meets the criteria for a phone number, you should eliminate the @expensify.sms domain during editing. Please update the provided code accordingly here.
Or, you need to update with expensify-common. If it replaces without |
@ahmedGaber93 proposal above to take a look at |
Reviewing today |
Still waiting for better proposals |
@ahmedGaber93 can you please help me learn the issue you are expecting in my proposal? |
@kaushiktd Thanks for the proposal. Your root cause is incomplete, you talk about optimistic data, but this issue also happened with the real data, if you try to prevent adding Feel free to update your proposal if you have any updates. |
Thanks for your insights @ahmedGaber93. Proposal Updated. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@kaushiktd Can you explain with code how you will do this? |
@ahmedGaber93 This repo is externally included in the expensify-app, so any changes made to it will not be reflected on our app side. However, I'm pretty sure that when resolved from expensify-common, it will return a response like below. Therefore, please open a new issue on expensify-common.
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Phone number mention in edit comment shows SMS domain. What is the root cause of that problem?In here, we don't remove the sms domain. What changes do you think we should make in order to solve the problem?We can use function removeDomain(comment: string) {
return comment.replace(/(?<=\d)@expensify\.sms/gi, "");
} Use the function to remove sms domain here Report.saveReportActionDraft(reportID, reportAction, removeDomain(parser.htmlToMarkdown(getActionHtml(reportAction)))); What alternative solutions did you explore? (Optional)Adjust the regex in Report.saveReportActionDraft(reportID, reportAction, Str.removeSMSDomain(parser.htmlToMarkdown(getActionHtml(reportAction)))); |
@kaushiktd if this issue fix require changes in expensify-common, you can disscus it here in this issue as a part of your proposal, then if your proposal accepted you can open PR in expensify-common |
@ra-md Thanks for the proposal. |
@ahmedGaber93 I haven't tested with the exact code from the expensify-common repository because it's added as a dependency, and I can't update any code in expensify-common. However, I've identified that the root cause is generating from the |
@kaushiktd you can edit the package under node_modules folder, or download it locally and test it. |
@ahmedGaber93 I've checked with expensify-common. Now it will return same as expected like below:
But API endpoint of |
@kaushiktd how can I evaluate your fix without sharing your code changes? Please share your code changes 🙏 |
waiting on linked PR |
PR was merged to expensify-common, tomorrow I'll try to bump it in App |
@SzymczakJ We already have PR that will bump it in App ☝️ |
nice! |
PR #44262 still in review. |
Issue is reproducible during KI retests. 1719763299836.bandicam_2024-06-30_19-01-12-658.mp4 |
PR #44262 is still in review |
PR #44262 is merged into main but not deployed to staging yet. Tested main locally and works well. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
The above issue ☝️ is related to another issue that fix with in the same PR #44262 and not related to our PR |
@muttmuure This issue was deployed to production 8 days ago. We can pay out and close it now. Payment summary:
|
@muttmuure bump for payment. |
Handling! |
@ahmedGaber93 $250 |
@truph01 I've invited you to the job here: https://www.upwork.com/jobs/~0132841b006b8ee44f |
@muttmuure I applied thanks |
@flodnv, @ahmedGaber93, @muttmuure, @SzymczakJ Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Invited |
@muttmuure Thanks I accepted it |
Paid |
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.65-5
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/4506240
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause_internal team
Action Performed:
Expected Result:
Phone number mention in edit comment will not show @expensify.sms.
Actual Result:
Phone number mention in edit comment shows @expensify.sms.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6461260_1714031914746.bandicam_2024-04-25_15-56-40-903.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @muttmuureThe text was updated successfully, but these errors were encountered: