Skip to content
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 - #374470] Thread header and LHN for task assignee system message is missing the assignee #37939

Closed
1 of 6 tasks
kavimuru opened this issue Mar 8, 2024 · 27 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Monthly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Mar 8, 2024

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.4.49-0
Reproducible in staging?: y
Reproducible in production?: NO - new feature (system message)
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:

  1. Go to staging.new.expensify.com
  2. Go to any chat.
  3. Create a task.
  4. Go to task report.
  5. Click Assignee.
  6. Add an assignee (or change assignee).
  7. Right click on assignee system message > Reply in thread.

Expected Result:

The thread header and LHN title will show assignee name.

Actual Result:

The thread header and LHN title do not show assignee name.

Also, The email in system message is also not copied when copied to clipboard.

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6406286_1709856534747.bandicam_2024-03-08_08-05-59-267.mp4

View all open jobs on GitHub

@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 8, 2024
Copy link

melvin-bot bot commented Mar 8, 2024

Triggered auto assignment to @strepanier03 (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 8, 2024
Copy link
Contributor

github-actions bot commented Mar 8, 2024

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Mar 8, 2024

Triggered auto assignment to @marcaaron (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@kavimuru
Copy link
Author

kavimuru commented Mar 8, 2024

@marcaaron 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.

@kavimuru
Copy link
Author

kavimuru commented Mar 8, 2024

We think this bug might be related to #vip-vsb. cc @quinthar

@nexarvo
Copy link
Contributor

nexarvo commented Mar 8, 2024

Proposal


### Please re-state the problem that we are trying to solve in this issue.
Thread header and LHN for task assignee system message is missing the assignee

What is the root cause of that problem?

The message in parentReportAction says something like this: assigned to <mention-user accountID=16485686></mention-user> and the final message only remains 'assigned to' on both header and and LHN.

App/src/libs/ReportUtils.ts

Lines 2616 to 2620 in 9132e05

const parentReportActionMessage = (
ReportActionsUtils.isApprovedOrSubmittedReportAction(parentReportAction)
? ReportActionsUtils.getReportActionMessageText(parentReportAction)
: parentReportAction?.message?.[0]?.text ?? ''
).replace(/(\r\n|\n|\r)/gm, ' ');

What changes do you think we should make in order to solve the problem?

We need to first check if message has accountId, and if it has then we get the display name for the participant.

const participantAccountId = doesMessageHasAccountId()
       if(parentReportAction.actionName === CONST.REPORT.ACTIONS.TYPE.TASKEDITED && participantAccountId) {
           parentReportActionMessage = parentReportActionMessage + ' ' + + getDisplayNameForParticipant(participantAccountId, undefined, undefined, true);
        }
       return parentReportActionMessage;

Here doesMessageHasAccountId() is simple utility function which will check if message has accountId and it has then it will return that accountId. Also in above condition CONST.REPORT.ACTIONS.TYPE.TASKEDITED represents that task is edited and we are opening that (edited) system message

What alternative solutions did you explore? (Optional)

Result

Screenshot 2024-03-08 at 6 50 51 AM

@marcaaron
Copy link
Contributor

I am thinking if this is a new feature then we probably don't need to make this a blocker.

@roryabraham
Copy link
Contributor

I am thinking if this is a new feature then we probably don't need to make this a blocker

I think we should treat this as a blocker, because it's available to any new user and looks pretty obviously broken

@marcaaron
Copy link
Contributor

Cool. These are the PRs related to tasks...

#37991
#36768 <- this looks like something new
#35484

@thienlnam might know which one this could be related to?

I am still leaning towards non blocker because creating a thread off a system message seems like a weird action for a user to take. And I'm not sure how that should work at all. 🤔

@strepanier03
Copy link
Contributor

I am still leaning towards non blocker because creating a thread off a system message seems like a weird action for a user to take.

I agree with this. I don't think a customer would create a thread off a system message. If they questioned it, they'd like be making a new comment after the system message instead of threading off it. I don't think this is a blocker either.

@roryabraham
Copy link
Contributor

Well I don't feel that strongly but it seems to me that a system message is a message so should work just like any other 🤷🏼

@thienlnam
Copy link
Contributor

Oh, this looks related to this issue #38000.

This PR added the system messages, so now you have the ability to thread from them.

I also agree this shouldn't block deploy - it kind of relies on you creating a task, changing the assignee and then deciding to thread off the system message which doesn't seem that common in the first place

@roryabraham
Copy link
Contributor

sounds like there's more votes in favor of demoting this. I do think creating a thread off a system message should work, but agree it's an edge case so doesn't necessarily need to block deploy.

@paultsimura
Copy link
Contributor

If this is not urgent – I would recommend putting this on hold for https://github.com/Expensify/Expensify/issues/374470 similar to how we did with #37943 – that PR should introduce a more robust originalMessage to the TASKEDITED report actions, and it will allow building the thread name without workarounds (like parsing the message etc.)

@melvin-bot melvin-bot bot added the Overdue label Mar 10, 2024
@mountiny mountiny removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Mar 11, 2024
@melvin-bot melvin-bot bot removed the Overdue label Mar 27, 2024
@melvin-bot melvin-bot bot added the Overdue label Apr 5, 2024
@marcaaron
Copy link
Contributor

I see this issue is on HOLD and waiting for #374470, but also see that #374470 has not had much progress. Should we continue to leave this open? 🤔

@melvin-bot melvin-bot bot removed the Overdue label Apr 10, 2024
@marcaaron
Copy link
Contributor

@thienlnam any chance you can give us an ETA on when those changes might be live? We could adjust the priority here based on that. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Apr 18, 2024
@strepanier03
Copy link
Contributor

@thienlnam - Any chance you have an eta on those changes?

@melvin-bot melvin-bot bot removed the Overdue label Apr 23, 2024
@thienlnam
Copy link
Contributor

Ah sorry, didn't see this. I'm not working on those at this time since they're not part of a release. I would throw a monthly on this until we decide to reprioritize

@melvin-bot melvin-bot bot added the Overdue label May 2, 2024
@strepanier03 strepanier03 added Monthly KSv2 and removed Weekly KSv2 labels May 3, 2024
@melvin-bot melvin-bot bot removed the Overdue label May 3, 2024
@strepanier03
Copy link
Contributor

Sounds good, thanks for the context and advice.

@melvin-bot melvin-bot bot added the Overdue label Jun 4, 2024
@marcaaron
Copy link
Contributor

Going OOO so gonna unassign this one for now. This one has been open for a while and there's not really anything actionable for me to do here.

@melvin-bot melvin-bot bot removed the Overdue label Jun 7, 2024
@marcaaron marcaaron removed their assignment Jun 7, 2024
@melvin-bot melvin-bot bot added the Overdue label Jul 8, 2024
@strepanier03
Copy link
Contributor

Not prioritized right now.

@melvin-bot melvin-bot bot removed the Overdue label Jul 17, 2024
@melvin-bot melvin-bot bot added the Overdue label Aug 19, 2024
@strepanier03
Copy link
Contributor

Not prioritized currently.

@melvin-bot melvin-bot bot removed the Overdue label Sep 3, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 4, 2024
@strepanier03
Copy link
Contributor

Updating project as VSB was closed.

@melvin-bot melvin-bot bot removed the Overdue label Oct 7, 2024
@melvin-bot melvin-bot bot added the Overdue label Nov 11, 2024
@melvin-bot melvin-bot bot removed the Overdue label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Monthly KSv2
Projects
None yet
Development

No branches or pull requests

9 participants