-
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
[$500] Web - Task - Task title starting with “<<<test” and the word “test” is not displayed in the chat. #31634
Comments
Triggered auto assignment to @MitchExpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~0158ca9e1d4c5abb0b |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Task title starting with “<<<test” and the word “test” is not displayed in the chat. What is the root cause of that problem?We are not escaping the task title here App/src/components/ReportActionItem/TaskPreview.js Lines 91 to 94 in a722235
so it is considering < in the task title as part of the html as we pass it to the html renderer
What changes do you think we should make in order to solve the problem?We should escape task title because we are rendering it as html
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.When we add title that has What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?We should encode the HTML before rendering it. Example -
By using const taskTitle = Str.htmlEncode(props.taskReport.reportName || props.action.childReportName); We will encode the title, and whenever it's being shown in the What alternative solutions did you explore? (Optional) |
This may be a security concern. If there's someone I can DM about this, let me know. |
@vjurcutiu can you let @mountiny know your concern in DM please? |
@MitchExpensify Thanks, I sent him an email. Didn't know GitHub doesn't have a DM function. |
@vjurcutiu ask per Contributing.md instructions, can you please send the email to [email protected]? Thank you! |
@mountiny Sure |
@BhuvaneshPatil's proposal looks good to me! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @blimpich, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@aimane-chnaif Can you confirm if this is similar to #21133? |
Similar but different place. No need to put on hold for that issue |
@thesahindia My solution is equivalent to the selected one as App/src/components/ArchivedReportFooter.js Lines 70 to 85 in 7c16666
@blimpich @MitchExpensify please reconsider my proposal and give me your feedback. |
@thesahindia can you comment on why you chose the 2nd proposal over the first? Looking into this, there are some differences between Both solutions are valid I think. |
The first proposal originally suggested changes at App/src/components/ReportActionItem/TaskPreview.js Lines 91 to 94 in a722235
it was edited multiple times. Both proposal were added at the same time. @BhuvaneshPatil also edited their proposal but it was before the recent changes that @FitseTLT made (which were 3 days ago). So I chose @BhuvaneshPatil's proposal because it suggested the change at taskTitle before @FitseTLT |
@thesahindia @blimpich But the basic idea is just escaping |
But still if you consider the first comment (non-updated one) the chosen proposal doesn't even mention task title line of code which you claimed was the core of your decision. It is totally unfair!! Let's just wait for the final decision from @blimpich |
Hey @FitseTLT, thank you for your proposal! I've looked through the discussion, and given the similarity between the two proposals, I can see why it might be frustrating not to have your proposal chosen. We do our best to be as fair as possible in these situations, and I'm sure that @thesahindia considered that when they made their decision. That said, it's best to try to respect everyone involved throughout this process, as we're all here to help. Because of the timing and similarity between proposals/edits, how about we choose the first posted proposal for this issue? Does that sound fair @FitseTLT @BhuvaneshPatil @thesahindia? For the proposal that is not chosen, I am happy to help either of you find another issue to work on. |
@grgia Thank you for stepping in. @thesahindia Please select the @FitseTLT 's proposal as that came before mine. Really appreciate that you spent time on reviewing through changes.❤️ |
Cool cool! I have no issues with @FitseTLT. Let's assign them. Appreciation for the good spirit 😄 |
📣 @thesahindia Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@MitchExpensify the automation didn't work in this case but the linked pr was deployed to production on Dec 14 so payment is due today. Just a heads up 👍 . |
Payment summary: $500 C+: @thesahindia $500 (NewDot) |
Paid and contract ended |
$500 payment approved for @thesahindia based on comment above. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.1.5
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: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
The word "Test" should be displayed in the chat if the title starts with “<<<”.
Actual Result:
Task title starting with “<<<test,” and the word “test” is not displayed in the chat.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6285413_1700569102911.2023-11-21_17-09-07.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: