-
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-08-01] [$1000] App allows to add link in code block and does not display the same on copy and send #22492
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.App allows to add link in code block and does not display the same on copy and send. What is the root cause of that problem?The following markdown input
is translated into html <a href="https://google.com" target="_blank" rel="noreferrer noopener"><pre>code</pre></a> from frontend by method ExpensiMark.replace applying code fence rule and link rule. The backend corrects the above html into following html <a href="https://google.com" target="_blank" rel="noreferrer noopener"></a><pre><a href="https://google.com" target="_blank" rel="noreferrer noopener">code</a></pre><a href="https://google.com" target="_blank" rel="noreferrer noopener"></a> which is translated into following markdown when clicking to edit the comment
Note the starting and ending anchor tag, So, the root cause of this issue is that the link rule doesn't skip to translate markdown link syntax if its alias text inside What changes do you think we should make in order to solve the problem?To fix this issue, we should avoid translating link markdown syntax if its alias text part contains To achieve it, we can change following condition of method modifyTextForUrlLinks by checking if the alias text part, if (abort || match[1].includes('<pre>')) { to skip replacing link syntax to html. What alternative solutions did you explore? (Optional)N/A |
Triggered auto assignment to @zanyrenney ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01f921043b5d238f9f |
Reviewed, adding external. |
Current assignee @zanyrenney is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Triggered auto assignment to @hayata-suenaga, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I'm not familiar with ExpensiMark 😓, so I gonna trust your assessment @thesahindia assigning @eh2077 |
📣 @thesahindia Please request via NewDot manual requests for the Reviewer role ($1000) |
📣 @eh2077 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Upwork job |
📣 @dhanashree! 📣
|
The BZ member will need to manually hire dhanashree for the Reporter role. Please store your Upwork details and apply to our Upwork job so this process is automatic in the future! |
@thesahindia The PR Expensify/expensify-common#558 for expensify-common is ready for review. |
ok, i am just gonna contribute more improved solution. thanks for your reply |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.44-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-08-01. 🎊 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.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
This comment was marked as duplicate.
This comment was marked as duplicate.
Invites have been sent to @eh2077 @thesahindia and @dhanashree but we are still waiting on them to accept. The final step is payment. I am going OOO so please can you pay out these? Thank you BZ team member! |
Triggered auto assignment to @Christinadobrzyn ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
Thanks @zanyrenney, @Christinadobrzyn, |
Ready for payment
@thesahindia should we have a regression test for this? |
nudge @thesahindia about a regression test for this |
Paying out in Upwork - https://www.upwork.com/jobs/~01f921043b5d238f9f @dhanashree-sawant paid through Upwork for reporting the bug $250 |
Actually I haven't got paid yet. I still need to add my bank account at old dot (having some issues). But this issue is in my list so we can close it, I will request payment soon. |
Thanks @thesahindia - let me know if you need any help with the payment stuff through New Expensify Created Regression Test - https://github.com/Expensify/Expensify/issues/306418 |
$1,500 payment approved for @thesahindia based on BZ summary. |
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:
Test
Expected Result:
App should not display link inside code block and maintain same display format on copy to clipboard and send again as message
Actual Result:
App displays link inside code block if sent in specific format and on copy to clipboard and sending as normal message, it does not maintain the format
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.38-2
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
link.in.code.block.and.not.maintaining.format.mp4
Recording.1224.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688796230285319
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: