You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-06-03] [$250] Room - Multiline name set for URL is shown in different format for room and task description #39496
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 1.4.59 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 Expensify/Expensify Issue URL: Issue reported by: Slack conversation:
Action Performed:
Launch app
Tap on room chat
Tap on room header
Tap description
Enter s.com and save
Tap description again
Set url an multiline name and save
Tap plus icon --- assign task
Enter title
Enter description as s.com and save
Tap next and confirm task
Open task
Tap description
Set url an multiline name and save
Expected Result:
System message for multiline name set for URL must not be shown in different format for room and task description inconsistently.
Actual Result:
System message for multiline name set for URL is shown in different format for room and task description
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@bfitzexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
Please re-state the problem that we are trying to solve in this issue.
The task description update message doesn't render the markdown which is different with room description.
What is the root cause of that problem?
For room description update message, the message contains a HTML of the markdown,
<muted-text>set the room description to: <a href="https://google.com" target="_blank" rel="noreferrer noopener">multi<br />line</a></muted-text>
but for task update description, even when we use markdown, the text doesn't contains the HTML representation of the MD.
updated the description to [multi
link](google.com)
So, when we try to render it, it just shows as plain text.
What changes do you think we should make in order to solve the problem?
I think we can fix it on the BE by returning the HTML representation of the MD for task description update message too, but in case we want to handle it in FE, we can do it using ExpensiMark.
changed the title [-]Room - Multiline name set for URL is shown in different format for room and task description[/-][+][$500] Room - Multiline name set for URL is shown in different format for room and task description[/+]on Apr 4, 2024
changed the title [-][$500] Room - Multiline name set for URL is shown in different format for room and task description[/-][+][$250] Room - Multiline name set for URL is shown in different format for room and task description[/+]on Apr 4, 2024
The PR that introduced the bug has been identified. Link to the PR:
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
Not a regression
Determine if we should create a regression test for this bug.
Yes.
If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Create a new task on any chat
Open the task report
Update the description to include a multiline link
Verify the task update message shows the link correctly (with an underscore)
Right-click/long press the link
Verify a Copy URL to clipboard menu is shown
Open the task description again and save without changes anything
Verify the task update message won't show when nothing is changes
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Apr 3, 2024
Triggered auto assignment to @bfitzexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.lanitochka17 commentedon Apr 3, 2024
@bfitzexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
lanitochka17 commentedon Apr 3, 2024
We think that this bug might be related to #vip-vsp
bernhardoj commentedon Apr 3, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The task description update message doesn't render the markdown which is different with room description.
What is the root cause of that problem?
For room description update message, the message contains a HTML of the markdown,
but for task update description, even when we use markdown, the text doesn't contains the HTML representation of the MD.
So, when we try to render it, it just shows as plain text.
What changes do you think we should make in order to solve the problem?
I think we can fix it on the BE by returning the HTML representation of the MD for task description update message too, but in case we want to handle it in FE, we can do it using ExpensiMark.
App/src/components/ReportActionItem/TaskAction.tsx
Lines 17 to 22 in 7177173
What alternative solutions did you explore? (Optional)
Convert the description to HTML optimistically and send it to the BE.
We parse the description changelog here.
App/src/libs/ReportUtils.ts
Line 4016 in aed0bf0
The changelog can be a title or description changelog, so maybe we can conditionally parse it only when it's a description update.
And then parse the description value here that will be sent to the BE.
App/src/libs/actions/Task.ts
Line 438 in aed0bf0
Then, we need to replace
shouldParseTitlewithshouldRenderAsHTMLbecause we already parsed the description so we don't want to parse it again.App/src/components/ReportActionItem/TaskView.tsx
Lines 141 to 144 in aed0bf0
We also don't need the
parser.replacehere anymore.App/src/pages/tasks/TaskDescriptionPage.tsx
Line 112 in aed0bf0
And last, when comparing the value here on submitting,
App/src/pages/tasks/TaskDescriptionPage.tsx
Lines 47 to 52 in aed0bf0
we should update it to,
No need to convert
values.descriptionto HTML and then to markdown because values.description is a markdown already.I just realized this is what we did for the room description
App/src/libs/actions/Report.ts
Line 1754 in aed0bf0
App/src/pages/RoomDescriptionPage.tsx
Line 35 in aed0bf0
[-]Room - Multiline name set for URL is shown in different format for room and task description[/-][+][$500] Room - Multiline name set for URL is shown in different format for room and task description[/+]melvin-bot commentedon Apr 4, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0120eebece9f86310e
melvin-bot commentedon Apr 4, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 (
External)[-][$500] Room - Multiline name set for URL is shown in different format for room and task description[/-][+][$250] Room - Multiline name set for URL is shown in different format for room and task description[/+]50 remaining items
melvin-bot commentedon May 30, 2024
Triggered auto assignment to @sonialiap (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.bfitzexpensify commentedon May 30, 2024
Adding a BZ buddy for payment/regression test update - I will be OOO until June 11th
sonialiap commentedon Jun 4, 2024
@cristipaval I see this was linked to a deploy blocker, was there a regression?
abdulrahuman5196 commentedon Jun 4, 2024
Unfortunately, yes. But its closed now.
abdulrahuman5196 commentedon Jun 4, 2024
Not a regression
Yes.
@sonialiap
sonialiap commentedon Jun 6, 2024
Since there was a regression I'm going to need to lower the payment by 50% to $125
Payment summary:
@abdulrahuman5196 reviewer $125 - paid ✔️
@bernhardoj contributor $125 - paid ✔️