-
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
[$250] Task – Hidden assignee appears in LHN when assign task without assignee to yourself #44205
Comments
Triggered auto assignment to @puneetlath ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @carlosmiceli ( |
@carlosmiceli 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 |
We think that this bug might be related to #vip-vsb |
Job added to Upwork: https://www.upwork.com/jobs/~012e2bf84563d514ee |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Instead of the task assignee's name appearing in the LHN, What is the root cause of that problem?The piece of text is rendered by this line in OptionRowLHN
App/src/components/LHNOptionsList/OptionRowLHNData.tsx Lines 42 to 50 in 425804a
That function sets the alternateText attribute using Line 351 in 425804a
All that does is call Line 33 in 425804a
That function passes the report action's App/src/libs/ReportActionsUtils.ts Lines 1125 to 1133 in 425804a
That method uses this So we're actually calling ExpensiMark's parseHtmlToText twice. The first time it's called we don't pass it the accountID -> name map App/src/libs/ReportActionsUtils.ts Line 1132 in 425804a
When we render the OptionRowLHN component, the component receives the already parsed text, but the component is calling
But this one is importing it from the OnyxAwareParser
The onyx aware parser also uses ExpensiMark's App/src/libs/OnyxAwareParser.ts Line 49 in 425804a
What changes do you think we should make in order to solve the problem?We can change this line Line 351 in 425804a
to instead return the raw HTML instead of the parsed text result.alternateText = ReportUtils.formatReportLastMessageText(TaskUtils.getTaskReportActionMessage(lastAction).html); This is fine because the only place the What alternative solutions did you explore? (Optional)With my proposal, the expensimark parser is still called twice, pointlessly.... we just aren't accessing the parse result anymore from |
ProposalPlease re-state the problem that we are trying to solve in this issue.Task – assigned to @hidden when last message is edited assignee. What is the root cause of that problem?In PR : #40168 App/src/libs/ReportActionsUtils.ts Lines 1129 to 1133 in 4dc1710
we don't use OnyxAwareParser: App/src/libs/OnyxAwareParser.ts Lines 43 to 50 in 4dc1710
So the parsed text from original html message, will fails to insert the mentioned user name. Line 4871 in 4dc1710
doesn't use new tag for metioned user. This will make parser fails to parse the mentioned user and and the mentioned user will be empty string. What changes do you think we should make in order to solve the problem?We should use the OnyxAwareParser parserHtmlToText in the getReportActionText above. and if we want to modify the mentioned user account into user name, we can pass parameter to the parseHtmlToText, wheter we want username or user email account. Also for optimization: we could cache the text result of parseHtmlToText in an object with key
|
@carlosmiceli, @puneetlath, @rushatgabhane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Still waiting for proposal reviews by @rushatgabhane. |
@robert-westenberger's proposal LGTM |
Current assignees @puneetlath and @carlosmiceli are eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @robert-westenberger You have been assigned to this job! |
@carlosmiceli @rushatgabhane hey carlos and rushat, how do i get invited to the expensify open source slack channel? I emailed contributors@expensify.com with the subject Slack Channel Invites as described here but I never got any response. |
Also @carlosmiceli @rushatgabhane this issue is no longer reproducible. It looks like it was fixed with this PR #44365 |
@puneetlath this would be good to close then, right? |
Sounds good, let's close it. |
@carlosmiceli @puneetlath Be sure to fill out the Contact List! |
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: 9.0.1-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail: n/a
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:
Assignee name appears in LHN
Actual Result:
Hidden assignee appears in LHN
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6521452_1719056664237.Hidden.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rushatgabhaneThe text was updated successfully, but these errors were encountered: