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 2023-08-03] [$1000] Text 'Hidden' in Details Page does not change language when updating language to Spanish #22659

Closed
6 tasks done
kbecciv opened this issue Jul 11, 2023 · 35 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 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Jul 11, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

Action Performed:

  1. Click FAB button
  2. Click New Group
  3. Search and select new users not interact before
  4. Create group
  5. Click header of group, Observe the word 'Hidden' below the display name of previously selected non-interactive users
  6. Update language to Spanish
  7. Click header of group again, observed 'Hidden' untranslated

Expected Result:

'Hidden' is translated correctly

Actual Result:

'Hidden' has not been translated yet

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.39-5
Reproducible in staging?: y
Reproducible in production?: y
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
Notes/Photos/Videos: Any additional supporting documentation

Screen.Recording.2023-07-11.at.16.58.08.mov
Recording.3552.mp4

Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689071735934159

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01af2a152b7e858fa7
  • Upwork Job ID: 1679134444061982720
  • 2023-07-12
  • Automatic offers:
    • | | 0
    • namhihi237 | Contributor | 25718816
    • namhihi237 | Reporter | 25718820
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@kbecciv
Copy link
Author

kbecciv commented Jul 11, 2023

Proposal

by: @namhihi237

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

'Hidden' is translated correctly

What is the root cause of that problem?

We are hard coding the text 'Hidden' here ReportParticipantsPage:

const userPersonalDetail = lodashGet(personalDetails, accountID, {displayName: personalDetails.displayName || 'Hidden', avatar: ''});
const userLogin = Str.removeSMSDomain(userPersonalDetail.login || '') || 'Hidden';

Also, we have the same here:
return displayName || defaultValue || 'Hidden';

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

Use translate for them:

const getAllParticipants = (report, personalDetails, translate) => {
    const {participantAccountIDs} = report;
    return _.chain(participantAccountIDs)
        .map((accountID, index) => {
            const userPersonalDetail = lodashGet(personalDetails, accountID, {displayName: personalDetails.displayName || translate('common.hidden'), avatar: ''});
            const userLogin = Str.removeSMSDomain(userPersonalDetail.login || '') || translate('common.hidden');

In ReportParticipantsPage:

return displayName || defaultValue || Localize.translateLocal('common.hidden');

What alternative solutions did you explore? (Optional)

N/A

@NicMendonca NicMendonca added the External Added to denote the issue can be worked on by a contributor label Jul 12, 2023
@melvin-bot melvin-bot bot changed the title Text 'Hidden' in Details Page does not change language when updating language to Spanish [$1000] Text 'Hidden' in Details Page does not change language when updating language to Spanish Jul 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01af2a152b7e858fa7

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

Current assignee @NicMendonca is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (External)

@Talha345
Copy link
Contributor

Proposal

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

Text 'Hidden' is not translated when language is updated.

What is the root cause of that problem?

The text 'Hidden' is hardcoded at various places in the codebase.

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

Localization key 'common.hidden' should be used at these places.

What alternative solutions did you explore? (Optional)

None

@melvin-bot melvin-bot bot added the Overdue label Jul 13, 2023
@NicMendonca
Copy link
Contributor

@sobitneupane can you please review these proposals 🙏 seems like a simple change that we can implement asap

@melvin-bot melvin-bot bot removed the Overdue label Jul 14, 2023
@sobitneupane
Copy link
Contributor

Thanks for the proposal @namhihi237.

First things first, why are we showing Hidden instead of email. I believe the issue here is not showing email.

@namhihi237
Copy link
Contributor

@sobitneupane as far as i know here if user A hasn't chatted with user B before then we wont show login info. That's why it's how hidden here. as the video report can show

@sobitneupane
Copy link
Contributor

Thanks @namhihi237. I have started a discussion on slack to confirm if it is expected to show "Hidden".

@sobitneupane
Copy link
Contributor

It turns out that it is expected to show "Hidden".

Proposal by @namhihi237 looks good to me.

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 2023

Triggered auto assignment to @chiragsalian, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@namhihi237
Copy link
Contributor

hi @sobitneupane @NicMendonca can assign this task for me

@melvin-bot melvin-bot bot added the Overdue label Jul 17, 2023
@NicMendonca
Copy link
Contributor

@chiragsalian all good to assign here?

@melvin-bot melvin-bot bot removed the Overdue label Jul 17, 2023
@namhihi237
Copy link
Contributor

Hi, team any update here

@melvin-bot melvin-bot bot added the Overdue label Jul 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 20, 2023

@chiragsalian, @NicMendonca, @sobitneupane Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

📣 @sobitneupane Please request via NewDot manual requests for the Reviewer role ($1000)

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

📣 @namhihi237 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

📣 @namhihi237 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Upwork job

@namhihi237 namhihi237 mentioned this issue Jul 24, 2023
58 tasks
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 24, 2023
@namhihi237
Copy link
Contributor

Hi @sobitneupane @grgia The PR is already for review. please take a look. Thanks

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 27, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Text 'Hidden' in Details Page does not change language when updating language to Spanish [HOLD for payment 2023-08-03] [$1000] Text 'Hidden' in Details Page does not change language when updating language to Spanish Jul 27, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 27, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 27, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.46-2 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 2023-08-03. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jul 27, 2023

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:

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 3, 2023
@NicMendonca
Copy link
Contributor

@NicMendonca
Copy link
Contributor

@sobitneupane bump on the BZ checklist, and don't forget to request payment in Expensify!

@NicMendonca
Copy link
Contributor

@namhihi237 you've been paid! 🎉

@melvin-bot melvin-bot bot added the Overdue label Aug 7, 2023
@NicMendonca
Copy link
Contributor

@sobitneupane bump

@sobitneupane
Copy link
Contributor

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:

  • [@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:

#20328

  • [@sobitneupane] 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:

#20328 (comment)

  • [@sobitneupane] 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:

It should have been caught in PR review.

  • [@sobitneupane] Determine if we should create a regression test for this bug.

I don't think specific regression test is required for the issue as it should be covered by language translation tests.

@sobitneupane
Copy link
Contributor

Requested payment on newDot.

#22659 (comment)

@NicMendonca
Copy link
Contributor

Thank you!!

Payment summary: #22659 (comment)

@JmillsExpensify
Copy link

Reviewed the payment details for @sobitneupane. $1,500 is approved for payment in NewDot.

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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants