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 for payment 2024-07-10] [HOLD for payment 2024-07-02] Mention - Report mention #admins is not styled when editing comment in room chat #42521

Closed
6 tasks done
m-natarajan opened this issue May 23, 2024 · 30 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented May 23, 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!


Issue found when validating #41731
Version Number: 1.4.75-0
Reproducible in staging?: Yes
Reproducible in production?: No
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 a room.
  3. Send a message.
  4. Right click on the message > Edit comment.
  5. Type #admins.

Expected Result:

Report mention #admins will be styled because the chat is part of the workspace (not 1:1 DM).

Actual Result:

Report mention #admins is not styled when editing comment in room chat.

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

Bug6489346_1716465317917.20240523_195141.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @trjExpensify
@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels May 23, 2024
Copy link

melvin-bot bot commented May 23, 2024

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

Copy link

melvin-bot bot commented May 23, 2024

Triggered auto assignment to @trjExpensify (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.

Copy link

melvin-bot bot commented May 23, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open Staging deploy checklist to see the list of PRs included in this release, then work quickly on the following:

  1. If you find which PR caused the issue/bug, you can reassign it to the person responsible for it.
    • If the author is OOO or won’t get online before the daily deploy is due, you are responsible for finding the best fix/path forward. Don’t hesitate to ask for help!
  2. Try to reproduce the issue, if the bug is on production, remove the DeployBlocker label but stay assigned to fix it (or find out which PR broke it to get help from the author).
    • You can adjust the urgency of the issue to better represent the gravity of the bug.
    • If the issue is super low priority, feel free to un-assign yourself.
    • Be careful with PHP warnings, sometimes it is more complex than just adding a null coalescing operator as they might be uncovering some bigger bug.
    • If it was a one-off issue that requires no action (for example, Bedrock was down or it is a duplicated issue), you can close it.

Remember rule #2: Never un-assign yourself from a real DeployBlocker unless you are 100% sure someone else is assigned and will take care of it.

@melvin-bot melvin-bot bot removed the Hourly KSv2 label May 23, 2024
@github-actions github-actions bot added Hourly KSv2 and removed Daily KSv2 labels May 23, 2024
Copy link
Contributor

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

@m-natarajan
Copy link
Author

@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

@m-natarajan
Copy link
Author

We think that this bug might be related to #vip-vsb

@trjExpensify
Copy link
Contributor

@puneetlath, can you help clarify what's a bug here:

  1. The edit comment composer does not have auto-complete. Is that expected?
  2. Clicking "Edit comment" on a room mention results in a blank composer. This is not expected? The value should be in the composer when you go to edit it
  3. If the value is there and there's no auto-complete, when should it get "highlighted"? Is it when there's an exact match to a room name/person, or just as soon as you use the type a character after the # or @ operator?

@carlosmiceli
Copy link
Contributor

Yes, I'm also not sure I understand what the bug is in the video? Also, doesn't feel like an hourly/urgent issue, right?

@rlinoz
Copy link
Contributor

rlinoz commented May 23, 2024

Editing mentions is not supported yet, it is being worked on here #39550

@carlosmiceli
Copy link
Contributor

Gotcha @rlinoz , what would be the proper update of labels in this case?

@puneetlath
Copy link
Contributor

The edit comment composer does not have auto-complete. Is that expected?

Yes, this is currently expected until we support inline auto-suggestion: #16078

I think we should just close this issue for now.

@lanitochka17
Copy link

Issue is still reproducible on the latest build 1.4.84-0

Bug6514097_1718444974287.Web-40565.mp4

@lanitochka17 lanitochka17 reopened this Jun 15, 2024
@mountiny mountiny removed the DeployBlockerCash This issue or pull request should block deployment label Jun 16, 2024
@carlosmiceli
Copy link
Contributor

Being investigated.

@melvin-bot melvin-bot bot removed the Overdue label Jun 19, 2024
@war-in
Copy link
Contributor

war-in commented Jun 21, 2024

@eh2077 Yes! I'll post an update here when I find something

@war-in
Copy link
Contributor

war-in commented Jun 21, 2024

Hmm, I'm not sure if you're aware of it but on the current main all mentions are displayed as IDs 🥶
image

I found the root cause of this issue. MentionReportRendered can't get the correct report (and its' name).

The fix will be quick. Should I do it as a part of this issue or maybe we want to fix it ASAP?
cc @carlosmiceli

Edit: I've posted a comment in the related issue

@war-in
Copy link
Contributor

war-in commented Jun 21, 2024

I think I found the issue 🎉

Composer now has the isGroupPolicyReport prop (set by default to false) which defines if the room mentions are on or off (e.g. we don't want to mention rooms in DMs).

I'll prepare the fix :)

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jun 21, 2024
@war-in
Copy link
Contributor

war-in commented Jun 21, 2024

FYI, PR is ready and waiting for the review!

@eh2077
Copy link
Contributor

eh2077 commented Jun 21, 2024

Reviewing PR

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 25, 2024
@melvin-bot melvin-bot bot changed the title Mention - Report mention #admins is not styled when editing comment in room chat [HOLD for payment 2024-07-02] Mention - Report mention #admins is not styled when editing comment in room chat Jun 25, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 25, 2024
Copy link

melvin-bot bot commented Jun 25, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jun 25, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.1-19 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 2024-07-02. 🎊

Copy link

melvin-bot bot commented Jun 25, 2024

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:

@trjExpensify
Copy link
Contributor

Assigning @eh2077, as Eric is due payment for the C+ review. The Applause team flagged this regression through existing testing, so not adding a new one.

No payment due here, as it was a regression from #44160 caught during the regression period. Closing!

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 3, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-07-02] Mention - Report mention #admins is not styled when editing comment in room chat [HOLD for payment 2024-07-10] [HOLD for payment 2024-07-02] Mention - Report mention #admins is not styled when editing comment in room chat Jul 3, 2024
Copy link

melvin-bot bot commented Jul 3, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 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 2024-07-10. 🎊

For reference, here are some details about the assignees on this issue:

  • @eh2077 requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Jul 3, 2024

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:

  • [@eh2077] The PR that introduced the bug has been identified. Link to the PR:
  • [@eh2077] 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:
  • [@eh2077] 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:
  • [@eh2077] Determine if we should create a regression test for this bug.
  • [@eh2077] 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.
  • [@trjExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

9 participants