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-09-26] Expense - Bad grammar "You's expense(s)" instead of "Your expense(s)" in report banner #49466

Closed
6 tasks done
IuliiaHerets opened this issue Sep 19, 2024 · 22 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 19, 2024

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

Precondition:

  • Workflows are enabled.
  • Delayed submissions are enabled.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit an expense and avoid all the violations.
  4. Go to expense report.

Expected Result:

The banner should display "Waiting for expense(s) to automatically submit on Sunday".

Actual Result:

The banner displays "Waiting for <You's> expense(s) to automatically submit on Sunday".

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6608869_1726749811266.bandicam_2024-09-19_20-36-51-692.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @anmurali
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 19, 2024
Copy link

melvin-bot bot commented Sep 19, 2024

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

Copy link

melvin-bot bot commented Sep 19, 2024

Triggered auto assignment to @anmurali (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 the Daily KSv2 label Sep 19, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 19, 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.

@MuaazArshad
Copy link
Contributor

MuaazArshad commented Sep 19, 2024

Proposal

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

Bad grammar "You's expense(s)" instead of "Your expense(s)" in report banner

What is the root cause of that problem?

This is what we are implementing

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

If we do not want to add the name of use then we have to remove this

{ 
     text: `${ownerDisplayName}'s`, 
     type: 'strong', 
 }, 

form here

{
text: `${ownerDisplayName}'s`,
type: 'strong',
},

What alternative solutions did you explore? (Optional)

If we want to remove 's then we will remove it

{
text: `${ownerDisplayName}'s`,
type: 'strong',
},

@abzokhattab
Copy link
Contributor

abzokhattab commented Sep 19, 2024

Edited by proposal-police: This proposal was edited at 2024-09-19 14:17:12 UTC.

Proposal

Bad grammar "You's expense(s)" instead of "Your expense(s)" in report banner

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

What is the root cause of that problem?

here we dont handle the case where the ownerDisplayName resolves to "You"

{
text: `${ownerDisplayName}'s`,
type: 'strong',
},

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

  • in this case we should add a condition to check if the the ownerDisplayName is you then replace it with your and remove the 's after the your word:
  • also we should take care of the translation because you changes depending on the localize language

suggested change:
import translate from useLocalize

    const {translate} = useLocalize();

optionally also we need to define the languages translations for your

then use it here:

text:  ownerDisplayName === translate('common.you')? `${translate('common.your')}`: `${ownerDisplayName }'s`,

What alternative solutions did you explore? (Optional)

@nyomanjyotisa
Copy link
Contributor

nyomanjyotisa commented Sep 19, 2024

Proposal

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

Bad grammar "You's expense(s)" instead of "Your expense(s)" in report banner

What is the root cause of that problem?

We always add 's to the ownerDisplayName here

{
text: `${ownerDisplayName}'s`,
type: 'strong',
},

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

set the text to "Your" if the the owner name is "You"

const isOwnerYou = ownerDisplayName === Localize.translateLocal('common.you');
...
            {
                text: isOwnerYou ? 'Your' : `${ownerDisplayName}'s`,
                type: 'strong',
            },

What alternative solutions did you explore? (Optional)

Base on expected result we should display "Waiting for expense(s) to automatically submit on Sunday", so we need change this to the following

    ...(!isOwnerYou ? [
        {
            text: `${ownerDisplayName}'s`,
            type: 'strong',
        },
    ] : []),

@abzokhattab
Copy link
Contributor

abzokhattab commented Sep 19, 2024

Proposal updated

made the translation step of your as optional

@grgia
Copy link
Contributor

grgia commented Sep 19, 2024

Looking at this

@grgia
Copy link
Contributor

grgia commented Sep 19, 2024

Caused by #49315

@grgia
Copy link
Contributor

grgia commented Sep 19, 2024

Copy link

melvin-bot bot commented Sep 19, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@allgandalf
Copy link
Contributor

Please assign me here, i reviewed the linked PR , thanks :) 🙏

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Sep 19, 2024

Summary:

Assigned @allgandalf in the role of C+ reviewing #49482
@ishpaul777 is the author of #49482 fixing this deploy blocker

@ishpaul777 was the C+ of #49315 that introduced the regression
@aldo-expensify is the author of #49315 that introduced the regression

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Sep 19, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 19, 2024
@melvin-bot melvin-bot bot changed the title Expense - Bad grammar "You's expense(s)" instead of "Your expense(s)" in report banner [HOLD for payment 2024-09-26] Expense - Bad grammar "You's expense(s)" instead of "Your expense(s)" in report banner Sep 19, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 19, 2024
Copy link

melvin-bot bot commented Sep 19, 2024

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

Copy link

melvin-bot bot commented Sep 19, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.38-4 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-09-26. 🎊

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

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

Copy link

melvin-bot bot commented Sep 19, 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:

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

@allgandalf
Copy link
Contributor

allgandalf commented Sep 21, 2024

Note

No checklist here as this was a regression from some other recent PR

Only payment remaining

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 26, 2024
Copy link

melvin-bot bot commented Sep 26, 2024

Payment Summary

Upwork Job

BugZero Checklist (@anmurali)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@melvin-bot melvin-bot bot added the Overdue label Sep 30, 2024
@allgandalf
Copy link
Contributor

not overdue waiting for payment

@AndrewGable AndrewGable removed their assignment Sep 30, 2024
@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 30, 2024
Copy link

melvin-bot bot commented Oct 4, 2024

@anmurali, @grgia, @aldo-expensify, @allgandalf Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@anmurali
Copy link

anmurali commented Oct 5, 2024

Offer is here

@melvin-bot melvin-bot bot removed the Overdue label Oct 5, 2024
@anmurali
Copy link

anmurali commented Oct 5, 2024

Paid.

@anmurali anmurali closed this as completed Oct 5, 2024
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. Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

10 participants