-
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-11-13] [$500] Room - Message starting with “<<“ not displayed in the welcome message #29612
Comments
Triggered auto assignment to @peterdbarkerUK ( |
Job added to Upwork: https://www.upwork.com/jobs/~01aaeb78bffb57b09f |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Message starting with “<<“ is not shown in the welcome message What is the root cause of that problem?The frontend displays the welcome message by converting it from html to markdown and the problem arises when creating a new room, special markdown characters, such as What changes do you think we should make in order to solve the problem?in the create action we should parse the message before it is saved, like we do in the update wlcome message action App/src/libs/actions/Report.js Line 1355 in eabe4f4
To parse the message when creating the room: we need to add the prev line in the addPolicyReport function as well this way the create and update welcome message actions have the same same parsing process which ensures consistency. const parsedWelcomeMessage = ReportUtils.getParsedComment(welcomeMessage); and use it here: const policyReport = ReportUtils.buildOptimisticChatReport(
participants,
reportName,
CONST.REPORT.CHAT_TYPE.POLICY_ROOM,
policyID,
CONST.REPORT.OWNER_ACCOUNT_ID_FAKE,
false,
"",
visibility,
writeCapability,
// The room might contain all policy members so notifying always should be opt-in only.
CONST.REPORT.NOTIFICATION_PREFERENCE.DAILY,
"",
"",
parsedWelcomeMessage
); and finally in the api.write: API.write(
"AddWorkspaceRoom",
{
policyID: policyReport.policyID,
reportName,
visibility,
reportID: policyReport.reportID,
createdReportActionID: createdReportAction.reportActionID,
writeCapability,
welcomeMessage: parsedWelcomeMessage
},
{ optimisticData, successData, failureData }
); POCScreen.Recording.2023-10-14.at.7.42.19.PM.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Room - Message starting with “<<“ not displayed in the welcome message What is the root cause of that problem?The reason for this is that we are parsing the welcome message using htmlToMarkdown which doesn't accept "<>" App/src/pages/ReportWelcomeMessagePage.js Line 49 in fe282b4
What changes do you think we should make in order to solve the problem?Instead of using parser.htmlToMarkdown we can use parser.htmlToText since the welcome message is just text or we can just use report.welcomeMessage as it is ResultScreen.Recording.2023-10-14.at.8.04.49.PM.mov |
Hmm, I couldn't reproduce this - where am I going wrong? Edit: ugh I did add the wrong video, that'll teach me for working late. Good catch! Here's the correct one: WelcomeMEssageBug.mp4 |
I think you attached a wrong video, Peter, Right? |
@peterdbarkerUK Can you please tell us what you are getting on your end? |
@peterdbarkerUK could you please try again it is still reproducible Steps:
|
@cubuspl42, @peterdbarkerUK Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@cubuspl42, @peterdbarkerUK 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Apologies, I'd updated the video above but my comment here was not saved. I'm now able to reproduce. |
@cubuspl42 @peterdbarkerUK this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
In my opinion, the clearest solution was suggested by @abzokhattab. I verified that indeed there's an asymmetry between updating the welcome message and creating a room with a welcome message. Attacking the issue from this angle seems the most correct. C+ reviewed 🎀 👀 🎀 |
📣 @abzokhattab 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @ayazhussain79 We're missing your Upwork ID to automatically send you an offer for the Reporter role. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.95-9 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-11-13. 🎊 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:
|
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:
|
@abzokhattab @ayazhussain79 could you accept the offer in Upwork? Thanks! @cubuspl42 - paid $500 for review. @cubuspl42 I think this is an edge case that needn't be added to testrail, would you agree? Could you also complete the rest of the checklist? |
@peterdbarkerUK offer accepted, Thank you |
Thank you @peterdbarkerUK .. I have just accepted the offer.. please notice that this issue was opened before announcement, and the PR was merged within three days thus it should be eligible for the bonus. |
@abzokhattab thanks! As per Greg's post, PRs created after the announcement on October 25th would not be eligible for the urgency bonus. The PR for this issue was created on October 30th. Please let me know if I've misunderstood something, or if you disagree! Payment summary:
Job closed, issue will close once @cubuspl42 and I have resolved the checklist |
I thought it is based on the issue’s creation date not the PR creation date Thanks |
|
All good @abzokhattab I had to check it over as well! |
Thanks Jakub! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.84.0
Reproducible in staging?: y
Reproducible in production?: new feature
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: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697214320531079
Action Performed:
Expected Result:
Message starting with “<<“ should be displayed in the welcome message
Actual Result:
Message starting with “<<“ not showing in the welcome message
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
Screen_Recording_20231014_115905_Chrome.mp4
iOS: Native
Screen.Recording.2023-10-13.at.9.26.29.PM.mov
iOS: mWeb Safari
Screen.Recording.2023-10-13.at.9.32.01.PM.mov
MacOS: Chrome / Safari
2023-10-13.20-59-57.mp4
MacOS: Desktop
Screen.Recording.2023-10-13.at.11.38.01.PM.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: