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

LHN - Missing space between user and to in "invited 1 userto #room" when inviting user to room #47248

Closed
6 tasks done
IuliiaHerets opened this issue Aug 12, 2024 · 15 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review

Comments

@IuliiaHerets
Copy link

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: v9.0.19-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to a room.
  3. Click on the room header > Members.
  4. Invite a member to the room.
  5. Go to #admins.

Expected Result:

#admins report preview in LHN will display "invited 1 user to #room".

Actual Result:

#admins report preview in LHN displays "invited 1 userto #room".

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6570031_1723474843471.20240812_225750.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets 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 Aug 12, 2024
Copy link

melvin-bot bot commented Aug 12, 2024

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

Copy link

melvin-bot bot commented Aug 12, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 12, 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.

@IuliiaHerets
Copy link
Author

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

@etCoderDysto
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Missing space between user and to in "invited 1 userto #room" when inviting user to room

What is the root cause of that problem?

formatReportLastMessageText trims the space before preposition and return ${preposition} ${roomName}

result.alternateText += ReportUtils.formatReportLastMessageText(`${preposition} ${roomName}`);

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

We should add space before the value returned from formatReportLastMessageText

result.alternateText += ` ${ReportUtils.formatReportLastMessageText(`${preposition} ${roomName}`)}`;

Note: we can check for all instances of ReportUtils.formatReportLastMessageText to see if it trimmed a space before a message on other places, and apply the same change.

What alternative solutions did you explore? (Optional)

@blimpich blimpich removed DeployBlocker Indicates it should block deploying the API DeployBlockerCash This issue or pull request should block deployment labels Aug 12, 2024
@blimpich
Copy link
Contributor

blimpich commented Aug 12, 2024

Shouldn't be blocking backend deploys, and I'd also say this probably isn't a frontend deploy blocker either. It doesn't look good but I don't think its a blocker.

@blimpich blimpich added Daily KSv2 and removed Hourly KSv2 labels Aug 12, 2024
@blimpich
Copy link
Contributor

@etCoderDysto thank you for pointing out the problematic code 🙏. In the future when proposing a solution to an issue marked as a DeployBlocker please make sure to link to the PR that introduced the issue, which in this case would be this PR.

Generally for deploy blockers we would assign this to the contributor who caused the regression in the first place. But we might assign to a contributor who makes a proposal if (A) the contributor who caused the regression isn't available to work on it or isn't easily reachable via Slack (B) we don't want to revert the original PR and (C) the issue is truly urgent and the contributor who proposed a fix is able to work on it quickly.

For this case I think A & B are true, but I don't think C is true. I don't consider this urgent. So I'm going to assign the original contributor and C+ to work on this as follow up.

cc: @daledah @mollfpr

@blimpich
Copy link
Contributor

@daledah for some reason GH won't let me assign you to this PR, but could you please raise a PR to fix this issue since it was caused by the PR you raised last week?

Sidenote: what is your Slack username? I tried to find you in Slack to ask you about this issue but couldn't find you.

@etCoderDysto
Copy link
Contributor

In the future when proposing a solution to an issue marked as a DeployBlocker please make sure to link to the PR that introduced the issue.

Sorry, I will do that for the future.

@daledah
Copy link
Contributor

daledah commented Aug 12, 2024

@blimpich i'll raise follow up PR soon

Sidenote: what is your Slack username? I tried to find you in Slack to ask you about this issue but couldn't find you.

We are having some issues with adding new people to Slack so I can't get into Slack right now.

@daledah daledah mentioned this issue Aug 12, 2024
50 tasks
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Aug 12, 2024
@daledah
Copy link
Contributor

daledah commented Aug 12, 2024

@mollfpr @blimpich We have a follow-up PR here

@sakluger
Copy link
Contributor

FYI - I'll be OOO for the next week, back on Aug 30. @blimpich hopefully I won't be needed between now and then - if so, you can assign another BZ member by removing me, then removing and re-adding the Bug label.

@blimpich blimpich added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Aug 26, 2024
Copy link

melvin-bot bot commented Aug 26, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 26, 2024
@greg-schroeder
Copy link
Contributor

This seems to have been deployed to prod on 8/19 - regression period is through today

@greg-schroeder
Copy link
Contributor

Seems this was a regression fix by original PR authors (@daledah and @mollfpr) so no payment is due here. Payment will be handled in original issue #46190

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. Daily KSv2 Engineering Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

7 participants