-
Notifications
You must be signed in to change notification settings - Fork 3k
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-06-08] [$1000] Using backtick in the description in send/request money changes to '`' in the report #17798
Comments
Triggered auto assignment to @bfitzexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Reproduced |
Job added to Upwork: https://www.upwork.com/jobs/~010020e818c61501ab |
Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Triggered auto assignment to @alex-mechler ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Using backtick in the description in send/request money is changing to '`' in the report What is the root cause of that problem?
Lines 1391 to 1396 in a5c4737
and Lines 362 to 369 in a5c4737
![]() We use this comment value to display on UI ![]() What changes do you think we should make in order to solve the problem?
to
apply above logic to other functions: splitBill, getSendMoneyParams
change Lines 1391 to 1396 in a5c4737
to
and Line 1426 in a5c4737
to
ResultScreen.Recording.2023-05-18.at.16.11.54.mp4 |
Looks like have the same cause - #17658 |
The backend actually returns
Thanks, looking into this |
This appears to be similar, but with that fix applied, I am still able to reproduce this issue |
ProposalProblem Statement: Lines 1096 to 1099 in 32fbb2c
Here is what the conversions look like: //Sample Text: `123`456` //commentText: <"code">123</"code">456"`"; //textForNewComment: 123456` //textForNewCommentDecoded: 123456` Therefore, when using these variables to save comments, the comments are saved incorrectly because of the incorrect usage of textForNewComment and textForNewCommentDecoded .Lines 1100 to 1107 in 32fbb2c
Lines 1130 to 1131 in 32fbb2c
The unnecessary parsing in the API calls in IOU.js , specifically /api/RequestMoney and /api/SendMoneyElsewhere also cause the issue, as these calls are responsible for saving the comments to the backend.Lines 910 to 914 in 32fbb2c
Lines 668 to 670 in 32fbb2c
Line 675 in 32fbb2c
Lines 196 to 201 in 32fbb2c
Proposed Solution: To address this issue, the parsing can be bypassed as it is not necessary to parse the comments/text being passed down to these functions. What alternative solutions did you explore? (Optional) Implementing a new parsing function specifically for comments. Although this could be done, it would mean building a new parser and also changing how the comments are saved, which is more complex and changes to the comment UI. |
📣 @AngelNBazan! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@alex-mechler thanks for the feedback! I think we're not using the data returned in your screenshot for the report comment. We're using the Can see below in the |
hi @mollfpr in this line Line 196 in f8acfae
const parsedComment = _.escape(comment); to avoid adding the incorrect <code> html tag to the comment. It will send the `````` to the back-end and back-end returns as is in the text field rather than convert back to "``````" (this is different from, say, & character), so I think there's still something wrong with the back-end.
|
@dukenv0307 Why we send to the backend
@alex-mechler @bfitzexpensify Are we on purpose striping the HTML tag in the backend? |
Proposal Updated #17798 (comment) |
@alex-mechler, @mollfpr, @bfitzexpensify, @AngelNBazan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
PR is in review Melvin |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.21-2 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-06-08. 🎊 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:
|
Triggered auto assignment to @sonialiap ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
Hey @sonialiap - I'm heading OOO this week. This one will need hiring/payment in a couple of days so assigning a BZ buddy. Thank you for the help! |
No PR in E/App is causing the regression. We decide not to parse the message when send it to BE.
The regression step will cover this.
👍
|
All payments issued and contracts ended. |
Agreed with regression steps, steps proposed in https://github.com/Expensify/Expensify/issues/291252 |
We're all done here, so closing this out - thanks for the work everyone! |
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:
Using backtick in the description in send/request money should not change to '`' in the report
Actual Result:
Using backtick in the description in send/request money changes to '`' in the report (works well for other special characters)
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.3-1
Reproducible in staging?: y
Reproducible in production?: y
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
name-2023-04-21_11.38.56.mp4
Recording.307.mp4
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1682056771077709
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: