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 2022-08-30] [$250] Web - Announce room - User time zone is displayed after page refresh #10109

Closed
kavimuru opened this issue Jul 26, 2022 · 27 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Jul 26, 2022

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:

  1. Go to staging.new.expensify.com and login with expensifail account
  2. Go to workspace and search for #announce
  3. No time zone is above the compose box
  4. Add a member to the workspace and go back to the announce room

Expected Result:

Don't see the time zone of any users in default rooms

Actual Result:

Time zone of that other user appears after refreshing the page

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.86-1
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers): [email protected] / Utest123 or Any expensifail account
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Bug5663832_Recording__2368.mp4

Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2022

Triggered auto assignment to @puneetlath (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@puneetlath
Copy link
Contributor

Hm, I would expect that in the announce room (or any room for that matter), you would never see timezone info for another user above the chat box. I'm going to change the expected result accordingly.

@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label Jul 26, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2022

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

@puneetlath puneetlath changed the title Web - Announce room - User time zone is not displayed until refresh the page Web - Announce room - User time zone is displayed after page refresh Jul 26, 2022
@puneetlath
Copy link
Contributor

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jul 26, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2022

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

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

melvin-bot bot commented Jul 26, 2022

Current assignee @puneetlath is eligible for the Exported assigner, not assigning anyone new.

@melvin-bot melvin-bot bot changed the title Web - Announce room - User time zone is displayed after page refresh [$250] Web - Announce room - User time zone is displayed after page refresh Jul 26, 2022
@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Jul 26, 2022

Proposal

In this method adding a check !isChatRoom(report) would be enough.

App/src/libs/ReportUtils.js

Lines 319 to 329 in 92186e5

function canShowReportRecipientLocalTime(personalDetails, report) {
const reportParticipants = _.without(lodashGet(report, 'participants', []), sessionEmail);
const participantsWithoutExpensifyEmails = _.difference(reportParticipants, CONST.EXPENSIFY_EMAILS);
const hasMultipleParticipants = participantsWithoutExpensifyEmails.length > 1;
const reportRecipient = personalDetails[participantsWithoutExpensifyEmails[0]];
const reportRecipientTimezone = lodashGet(reportRecipient, 'timezone', CONST.DEFAULT_TIME_ZONE);
return !hasMultipleParticipants
&& reportRecipient
&& reportRecipientTimezone
&& reportRecipientTimezone.selected;
}

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jul 26, 2022
@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2022

@puneetlath, @mananjadhav Huh... This is 4 days overdue. Who can take care of this?

@Santhosh-Sellavel
Copy link
Collaborator

@puneetlath Bump!

@melvin-bot
Copy link

melvin-bot bot commented Aug 3, 2022

@puneetlath, @mananjadhav 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@puneetlath
Copy link
Contributor

@Santhosh-Sellavel yep, that seems like it would work. Let's do it.

@melvin-bot melvin-bot bot removed the Overdue label Aug 5, 2022
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Help Wanted Apply this label when an issue is open to proposals by contributors Daily KSv2 labels Aug 5, 2022
@melvin-bot
Copy link

melvin-bot bot commented Aug 5, 2022

📣 @Santhosh-Sellavel You have been assigned to this job by @puneetlath!
Please apply to this job in Upwork 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 📖

@puneetlath
Copy link
Contributor

@Santhosh-Sellavel please apply to the upwork job as well.

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Aug 8, 2022

Sure will submit, Also will make a PR in a couple of days @puneetlath

@mananjadhav
Copy link
Collaborator

I don't think we need C+ review on this as @Santhosh-Sellavel is a part of C+ team working on the PR.

@puneetlath
Copy link
Contributor

@mananjadhav @Santhosh-Sellavel as discussed here, let's go ahead and do the C+ review going forward, even if the PR submitter is a C+ themselves.

@melvin-bot melvin-bot bot added the Overdue label Aug 19, 2022
@Santhosh-Sellavel
Copy link
Collaborator

PR is merged and waiting for deployment!

@melvin-bot melvin-bot bot removed the Overdue label Aug 22, 2022
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@mananjadhav
Copy link
Collaborator

@mvtglobally quick question for my knowledge. These KI Tests are performed on staging or some other environment?

@mvtglobally
Copy link

Yes, we are running on Staging only once a week check.

@mananjadhav
Copy link
Collaborator

The reason I asked is because two issues mention not reproducible during KI retests and both of them are not merged yet. So I am wondering 🤔 how come they got resolved automagically

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 23, 2022
@melvin-bot melvin-bot bot changed the title [$250] Web - Announce room - User time zone is displayed after page refresh [HOLD for payment 2022-08-30] [$250] Web - Announce room - User time zone is displayed after page refresh Aug 23, 2022
@melvin-bot
Copy link

melvin-bot bot commented Aug 23, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.88-15 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 2022-08-30. 🎊

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 30, 2022
@puneetlath
Copy link
Contributor

@mananjadhav @Santhosh-Sellavel sent you both hiring offers for the job through Upwork. Please accept when you have a chance so we can pay this out. Thanks!

@mananjadhav
Copy link
Collaborator

Accepted @puneetlath

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@Santhosh-Sellavel
Copy link
Collaborator

Done @puneetlath

@puneetlath
Copy link
Contributor

Paid!

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

5 participants