-
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 2022-05-20][$2000] Copying / pasting code between < and /> seems broken #7912
Comments
Triggered auto assignment to @iwiznia ( |
Triggered auto assignment to @adelekennedy ( |
PROPOSALWe have to change how we strip html when copying to clipboard, at the moment we are only replacing everything within <> for an empty string here: |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @puneetlath ( |
Thanks for the proposal @mateusbra. Could you please root cause details to your proposal? and tell us how did you reach your solution. |
PROPOSALWe need to change how we handle pasted HTML here. Change this To Only strip off valid html tags
SCREEN RECORDING Screen.Recording.2022-02-27.at.11.43.17.mov |
Thanks for the proposal @dennismunene. Did you try?
as message. |
@parasharrajat yes I have , works as expected. |
Ok. Thanks but I don't consider this a proper approach. const parser = new ExpensiMark();
const markdownText = parser.htmlToMarkdown(html); This step is important for the app. |
@parasharrajat updated my proposal. |
Thanks, @dennismunene but I still think we can do better.
Now there are two things to compare.
Copy to clipboard works. But the selection does not. So it must have given you the idea by now what is wrong. |
@parasharrajat thank you for the review. I think this is gonna be more complex than I thought, please ignore my proposal by now |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.55-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 2022-04-27. 🎊 |
@gladiator-1 I am facing the following error on the console. Sorry, it got missed in the PR review. Could you please send a PR to fix it? Steps:
|
@parasharrajat I'm so sorry for this error, PR #8741 |
@parasharrajat do we still need to wait on payment or are we good to go with the fix in #8741? |
Yes, we have to wait. The new PR is not merged. |
Fix error message belong to issue #7912
@parasharrajat, @marcaaron, @adelekennedy, @gladiator-1 Eep! 4 days overdue now. Issues have feelings too... |
it's okay Melvin - we're waiting on the new PR |
Unassigning as I'm going OOO for a week. I think we are pretty much good here and just need to assign a new reviewer with PullerBear for whatever PR we are waiting on. |
@parasharrajat, @adelekennedy, @gladiator-1 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
checking here - it looks like #8741 has been merged, are we good for payment @parasharrajat? |
Unfortunately not yet. PR is not yet deployed to PRDO. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.57-17 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 2022-05-20. 🎊 |
paid and paid! |
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:
Exactly what you copied should be pasted
Actual Result:
The code gets stripped
Issue happens when selecting with a mouse, not when using the Copy button
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.40-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2022-02-14.at.6.31.29.PM.mov
Expensify/Expensify Issue URL:
Issue reported by: @Beamanator
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1644856333330159
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: