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

[$150] Profile - External user can't view the time zone(Local time) changes in the main user profile #52470

Open
2 of 8 tasks
IuliiaHerets opened this issue Nov 13, 2024 · 35 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Overdue

Comments

@IuliiaHerets
Copy link

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

Action Performed:

Prerequisite
Log in with Gmail account and changes time zone (Must be Gmail account)

Steps:

  1. As another user (or from another device) navigate to the conversation with the main user (where all changes were made)
  2. Click on the header of the conversation
  3. Verify the user details page display local time of the user

Expected Result:

External user can view the time zone(Local time) changes in the main user profile. (Expensifail account behavior)

Actual Result:

External user can't view the time zone(Local time) changes in the main user profile.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6663442_1731481143451.bandicam_2024-11-13_09-57-02-653.mp4
Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021858726442470926380
  • Upwork Job ID: 1858726442470926380
  • Last Price Increase: 2024-12-24
Issue OwnerCurrent Issue Owner: @sobitneupane
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 13, 2024
Copy link

melvin-bot bot commented Nov 13, 2024

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

@Nodebrute
Copy link
Contributor

This behavior is expected, as we do not show the local time zone until the user has been validated. This was implemented here to address a significant privacy concern. To resolve this issue, we can remove the isParticipantValidated check from here.

const shouldShowLocalTime = !ReportUtils.hasAutomatedExpensifyAccountIDs([accountID]) && !isEmptyObject(timezone) && isParticipantValidated;

@twilight2294
Copy link
Contributor

twilight2294 commented Nov 13, 2024

Edited by proposal-police: This proposal was edited at 2024-11-13 20:41:41 UTC.

Proposal

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

Unvalidated user cannot see his own local timezone in self-DM

What is the root cause of that problem?

Here as seen in the video, the current user should be able to see his own timezone in his own selfDM, currently we use the following check to show timezone:

const shouldShowLocalTime = !ReportUtils.hasAutomatedExpensifyAccountIDs([accountID]) && !isEmptyObject(timezone) && isParticipantValidated;

This case is partially correct, we only want to show timezone on profile page of any user only when the participant is validated, but for self-DM as the participant is the current user itself, we should show the timezone in case of self dm

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

Update the check to:

    const isSelfDM = ReportUtils.isSelfDM(report)
    const shouldShowLocalTime = !ReportUtils.hasAutomatedExpensifyAccountIDs([accountID]) && !isEmptyObject(timezone) && (isParticipantValidated || isSelfDM);

What alternative solutions did you explore? (Optional)

@twilight2294
Copy link
Contributor

@strepanier03 , note that the bug here is that there is no timezone displayed if the user visits his own profile from self-DM

@melvin-bot melvin-bot bot added the Overdue label Nov 18, 2024
@strepanier03 strepanier03 added the External Added to denote the issue can be worked on by a contributor label Nov 19, 2024
@melvin-bot melvin-bot bot changed the title Profile - External user can't view the time zone(Local time) changes in the main user profile [$250] Profile - External user can't view the time zone(Local time) changes in the main user profile Nov 19, 2024
Copy link

melvin-bot bot commented Nov 19, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 19, 2024
Copy link

melvin-bot bot commented Nov 19, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Nov 19, 2024
@strepanier03 strepanier03 changed the title [$250] Profile - External user can't view the time zone(Local time) changes in the main user profile [$150] Profile - External user can't view the time zone(Local time) changes in the main user profile Nov 19, 2024
Copy link

melvin-bot bot commented Nov 19, 2024

Upwork job price has been updated to $150

@Nodebrute
Copy link
Contributor

@strepanier03 I don’t think this is a bug. We hide the timezone for unvalidated users intentionally, as shown in the attached PR. Even for self-DMs, we shouldn’t display the timezone for invalidated users since they can log in with random numbers and view the timezone from their self-DM.

This was a major bug which showed timezones even for unvalidated accounts, this was a big privacy issue which is addressed in the PR

@sobitneupane
Copy link
Contributor

Prerequisite
Log in with Gmail account and changes time zone (Must be Gmail account)

Steps:

  1. As another user (or from another device) navigate to the conversation with the main user (where all changes were made)
  2. Click on the header of the conversation
  3. Verify the user details page display local time of the user

@IuliiaHerets Is the main user account (where all changes were made) validated? If not, the time zone is not expected to display.

cc: @strepanier03

@twilight2294
Copy link
Contributor

If not, the time zone is not expected to display.

This is true for other user profiles right @sobitneupane ? for self-profile, user can view their own timezone without any issue

Copy link

melvin-bot bot commented Nov 25, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Nov 25, 2024
@sobitneupane
Copy link
Contributor

@strepanier03, I believe this is not a bug but an intentional choice, as the user account is yet to be validated.

@melvin-bot melvin-bot bot removed the Overdue label Nov 25, 2024
@sobitneupane
Copy link
Contributor

for self-profile, user can view their own timezone without any issue

@twilight2294 don't think it matters much whether we show or hide the timezone for the self-profile.

Copy link

melvin-bot bot commented Nov 26, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Nov 27, 2024

@strepanier03 @sobitneupane this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

Copy link

melvin-bot bot commented Nov 29, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Nov 29, 2024
@muttmuure muttmuure moved this to Bugs and Follow Up Issues in [#whatsnext] #expense Nov 29, 2024
@sobitneupane
Copy link
Contributor

@melvin-bot melvin-bot bot removed the Overdue label Dec 2, 2024
@twilight2294
Copy link
Contributor

don't think it matters much whether we show or hide the timezone for the self-profile.

We show timezone on the profile page, so is there a reason to not show them on their own self dm?:

Screenshot 2024-12-02 at 6 03 34 PM

Copy link

melvin-bot bot commented Dec 3, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Dec 6, 2024

@strepanier03, @sobitneupane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Dec 6, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

Copy link

melvin-bot bot commented Dec 10, 2024

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

Copy link

melvin-bot bot commented Dec 10, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Dec 11, 2024

@strepanier03 @sobitneupane this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

@sobitneupane
Copy link
Contributor

We show timezone on the profile page, so is there a reason to not show them on their own self dm?:

I don't think it's worth adding the timezone only for self-DMs of unauthorized users. It's better to keep it consistent across all chats.

@melvin-bot melvin-bot bot removed the Overdue label Dec 11, 2024
@twilight2294
Copy link
Contributor

I don't think it's worth adding the timezone only for self-DMs of unauthorized users. It's better to keep it consistent across all chats.

Umm, i will leave it to @strepanier03 whether we should fix the bug or not, okay both ways 😄

Copy link

melvin-bot bot commented Dec 17, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Dec 17, 2024
Copy link

melvin-bot bot commented Dec 17, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Dec 19, 2024

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

@sobitneupane
Copy link
Contributor

@strepanier03 #52470 (comment) Good To Close

@melvin-bot melvin-bot bot removed the Overdue label Dec 19, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

Copy link

melvin-bot bot commented Dec 23, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Dec 23, 2024
@sobitneupane
Copy link
Contributor

#52470 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Dec 23, 2024
Copy link

melvin-bot bot commented Dec 24, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Dec 27, 2024

@strepanier03, @sobitneupane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Dec 27, 2024
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 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Overdue
Projects
Status: Bugs and Follow Up Issues
Development

No branches or pull requests

6 participants