-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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-07-15] [$250] When sending text that NewDot thinks is a link, it adds the link markdown automatically and doesn't allow to edit #9090
Comments
Triggered auto assignment to @luacmartins ( |
I think this can be external |
Triggered auto assignment to @kadiealexander ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Current assignee @luacmartins is eligible for the Exported assigner, not assigning anyone new. |
Screen.Recording.2022-05-20.at.12.46.35.PM.movHi, We can skip the parsing
if its in editMode! |
@NehaSantani Thanks for the proposal. However, I think that skipping the parser would affect other styles as well (code blocks, quotes, etc) and we wouldn't want that. Let me know if that doesn't answer your question and I can try to clarify any remaining concerns. |
@luacmartins Hi,
If its a yes for 2 :
Instead we can use
And if its a yes for 1 : I will propose another solution for it soon! Have attached the output for 2! Screen.Recording.2022-05-20.at.10.34.49.PM.mov |
Hey @NehaSantani! Thanks for the questions. I think the intention is 1. We want to be able to:
What we have right now is that after editing, the link md is added back and the link is shown as a link instead of text. |
ProposalWe should change the following: App/src/libs/actions/Report.js Lines 1391 to 1393 in 56213d0
to
This will not run the Following changes:
|
@allroundexperts the library can be found here and I believe you have access to it. Let me know if that's not the case. |
@luacmartins I can access it. I'll update my proposal. |
@luacmartins Updated. |
CauseWe cant detect url changes. SolutionIf the original text is changed but the output is not affected, we can ignore the link conversion. App/src/libs/actions/Report.js Lines 1391 to 1394 in 56213d0
if (htmlForNewComment === originalReportAction.message[0].html && textForNewComment === originalReportAction.message[0].text) {
//alert('link not present anymore and same text show up');
parser.rules = parser.rules.map(rule => rule.name !== 'link');
htmlForNewComment = parser.replace(textForNewComment);
} link-issue-Screen-Recording-2022-05-20-at-23.04.44.mp4note : I just realized that he mentioned this approach actually @allroundexperts . You can think of it as if I didn't do proposal @luacmartins 😅 . I wrote it so that maybe I can contribute to the solution 👼 . |
@luacmartins As directed by you, have skipped only "autolink" style while editing and not affecting other styles!
Proposed Output : issue-record.mov |
@allroundexperts Do you have any updates for me on this one? |
@mananjadhav Updated the PR. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.79-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-07-15. 🎊 |
Note: Please hold payment on this regression. |
@allroundexperts could you please look into a fix for that regression? |
@luacmartins What's the expected behaviour? |
The expected behavior is as follows:
Does that make sense? |
Coming from your comment here @luacmartins. If you carefully observe the video, edit-link-render.movediting some links doesn't show up |
I do not think this is an issue we should fix, as we are supporting auto-link in the initial message, the user expects it to work on the edit message too.
Tested on Github it also has the same behavior. |
@mananjadhav Thanks for clarifying! It makes sense now and it seems like the issue is that we are not adding the markdown syntax to those links when editing them, i.e. In that case I agree that it is not a regression, but it would be nice to fix that and add the markdown to those links. Let's move this conversation back to the original issue to work on a fix there. |
@kadiealexander this is not a regression and we should proceed with payment as usual. |
Thanks @luacmartins! Will pay tomorrow as expected. |
@allroundexperts - Paid! Thanks for your work. |
All paid! Thanks team! |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a production regression has occurred a Root Cause Analysis is required. Please follow the instructions here. 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. |
1 similar comment
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a production regression has occurred a Root Cause Analysis is required. Please follow the instructions here. 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. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
User would expect it to save the text as-is and be able to remove the link
Actual Result:
App won't let user to remove the link. If I remove the [] and (http://safe.directory/) from the message and hit Save, it adds them back.
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.63-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
Recording.453.mp4
Expensify/Expensify Issue URL:
Issue reported by: @rafecolton
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1652808490521729
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: