-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-08] [HOLD for payment 2022-08-01] [$500] At #admins and #announce rooms, users own timezone displayed - reported by @Puneet-here #9238
Comments
Triggered auto assignment to @Christinadobrzyn ( |
I don't see any dupe GHs about this subject and it sounds like we've confirmed it's a new bug in this convo. So sending to eng to see if this can be fixed externally! |
Triggered auto assignment to @thienlnam ( |
ProposalWe have canShowReportRecipientLocalTime function which returns a bool and based on it we show the timezone. Depending on the expected behaviour I have two proposals. First case : If we don't wanna show the timezone for rooms we can just use Lines 314 to 317 in db27a3d
Second case: If we wanna show timezone when another person is in the room except you. Lines 308 to 314 in db27a3d
|
Triggered auto assignment to @stephanieelliott ( |
Yeah, good point @Puneet-here it depends on what we expect would happen here. Since a workspace is basically a group chat, I imagine it should function in the same way in that we don't show the timezone. However, it doesn't seem like your proposal would work. The workspace rooms are considered a default room and would return true for isChatRoom(report) |
If we use isChatRoom like below it will work - function canShowReportRecipientLocalTime(personalDetails, report) {
const reportParticipants = lodashGet(report, 'participants', []);
const hasMultipleParticipants = reportParticipants.length > 1;
const reportRecipient = personalDetails[reportParticipants[0]];
const reportRecipientTimezone = lodashGet(reportRecipient, 'timezone', CONST.DEFAULT_TIME_ZONE);
return !hasExpensifyEmails(reportParticipants)
&& !hasMultipleParticipants
+ && !isChatRoom(report)
&& reportRecipient
&& reportRecipientTimezone
&& reportRecipientTimezone.selected;
} |
The type of room in the issue is an POLICY_ANNOUNCE room. This is considered a default room and will pass the check Lines 116 to 128 in 3e52b9a
Which returns true in isChatRoom Lines 165 to 168 in 3e52b9a
This probably happens when there is a single person in the workspace |
Yes and that's why if we use |
We don't want to disable it for all rooms.. just in group rooms |
Oh I thought we wanna disable it for user created rooms too, if we only wanna disable it for default rooms we can use This problem will stay in user created chat rooms so if we wanna show the timezone when a second member is inside the room we can also use my second approach together with
Lines 308 to 314 in db27a3d
|
Just for the clarification:
Question:- Isn't user created room also a group room because all the workspace members will be in user created rooms? |
Posted this to Upwork: https://www.upwork.com/jobs/~01e673ea3f72bd1dd4 |
@stephanieelliott, can you add the exported label. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Triggered auto assignment to @trjExpensify ( |
Reassigning this one as I am going OOO, thanks @trjExpensify! |
Sure thing! Putting the |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.85-8 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-01. 🎊 |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.86-5 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-08. 🎊 |
👋 @Puneet-here you still need to apply to the job here before I can settle up on this one. @mananjadhav with the two deploys above, can you confirm there was a regression here for C+ payment due? |
Applied. |
Cool, offer sent to you @Puneet-here. @mananjadhav still waiting on confirmation of this:
|
Cool, settled up with @Puneet-here. |
Eep sorry @trjExpensify, I didn't notice it first but the total compensation was $750. $500 for the fix and $250 for the reporting. |
Just sharing a note. I think we can't call it a regression, the PR was working and was approved but #9560 got merged just before the PR for this issue and #9560 changed an onyx key which we were using at our PR, that's why we were getting an error. |
Ahh, got it. Sent an offer for an additional $250.
Okay, helpful context. It was a timing issue. That makes sense. Thanks! @mananjadhav, I've sent you an offer now as well. |
Alright, both settled up. Closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
It should not show users their own timezone
Actual Result:
It's showing the user their own timezone
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.69-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @Puneet-here
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1651012796912239
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: