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

[$250] LHN - LHN displays employee name instead of workspace name and vice versa #49942

Open
2 of 6 tasks
lanitochka17 opened this issue Sep 30, 2024 · 56 comments
Open
2 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Sep 30, 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.41-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

Option 1:

  1. Navigate to https://staging.new.expensify.com/
  2. As User A, create a new workspace
  3. Go to the Members section and add User B as an employee
  4. Log in as User B and go to the Inbox, then observe the workspace created by User A
  5. In the LHN , click on the workspace chat

Option 2 (If Option 1 doesn't reproduce the issue):
Follow steps 1-3 above
4. As User A, go to the Inbox and observe the employee workspace chat
5. In the LHN, click on the employee's workspace chat

Expected Result:

  • Option 1: The LHN should display the workspace name in the Inbox, not the employee's name
  • Option 2: The LHN should display the employee name in the workspace chat, not the workspace name

Actual Result:

  • Option 1: In step 4, the LHN initially displays User B's(employee's) name instead of the workspace name. After clicking on it, the name changes to the correct workspace name
  • Option 2: In step 4, the LHN initially displays the workspace name instead of User B's name. After clicking on it, the name changes to the employee name (User B)

Workaround:

Unknown

Platforms:

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

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6619386_1727621597224.2.mp4
Bug6619386_1727621597219.1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021840938166093058581
  • Upwork Job ID: 1840938166093058581
  • Last Price Increase: 2024-10-01
  • Automatic offers:
    • ZhenjaHorbach | Reviewer | 104228120
Issue OwnerCurrent Issue Owner: @bondydaa
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 30, 2024
Copy link

melvin-bot bot commented Sep 30, 2024

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

@lanitochka17
Copy link
Author

@jliexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@jliexpensify jliexpensify added Needs Reproduction Reproducible steps needed External Added to denote the issue can be worked on by a contributor labels Oct 1, 2024
@melvin-bot melvin-bot bot changed the title LHN - LHN displays employee name instead of workspace name and vice versa [$250] LHN - LHN displays employee name instead of workspace name and vice versa Oct 1, 2024
Copy link

melvin-bot bot commented Oct 1, 2024

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

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

melvin-bot bot commented Oct 1, 2024

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

@MelvinBot
Copy link

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

@jliexpensify
Copy link
Contributor

Hmm I can't seem to reliqably reproduce this. @ZhenjaHorbach - any luck? If you can, we can look at fixing this.

@ZhenjaHorbach
Copy link
Contributor

Hmm I can't seem to reliqably reproduce this. @ZhenjaHorbach - any luck? If you can, we can look at fixing this.

I'll try to reproduce it today !

@jliexpensify
Copy link
Contributor

Just a heads up @ZhenjaHorbach - I am OOO from the 3rd to 14th. I won't reassign this as I don't think any payments will be needed during this time.

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Oct 1, 2024

Hmmmm
On the second try I was able to reproduce it ! (Used new accounts)
Снимок экрана 2024-10-01 в 14 54 44

And looks like FE issue since when we get MissingOnyxMessages we have all information
but I may be wrong
I'll check in more detail today or tomorrow

@jliexpensify
Copy link
Contributor

Nice, ty! Sorry - to clarify, you think this will be a back-end issue?

@ZhenjaHorbach
Copy link
Contributor

Nice, ty! Sorry - to clarify, you think this will be a back-end issue?

I haven't checked this issue in detail yet
But to me it looks like FE issue !

@narefyev91
Copy link
Contributor

Hi, I'm Nicolay from Callstack - expert contributor group - and I would like to work on this issue.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 2, 2024
@jliexpensify jliexpensify removed the Needs Reproduction Reproducible steps needed label Oct 2, 2024
Copy link

melvin-bot bot commented Oct 2, 2024

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

Offer link
Upwork job

@jliexpensify
Copy link
Contributor

All yours @narefyev91 - thanks!

@narefyev91
Copy link
Contributor

Updated from my side - still investigating - but potentially can be BE issue. Will run some more tests and provide tomorrow my findings

@narefyev91
Copy link
Contributor

My discovers so far:
Option 1:
When some invite user A to the workspace - user A get latest information from MissingOnyxMessages API call.
If we observe response which we get from MissingOnyxMessages API call - and compare it with API call when user directly click on chat - we will see that we have just one field difference:
Screenshot 2024-10-04 at 13 57 46
In the code - isOwnPolicyExpenseChat is exact prop - based on which we rendering correct/incorrect header:
Screenshot 2024-10-04 at 14 01 43
Seems like the root case here - API returns not correct value for isOwnPolicyExpenseChat it should be true instead of false.

Option 2:
When user A as an owner of the workspace invite member to his workspace - we fire API call - AddMembersToWorkspace - which returns isOwnPolicyExpenseChat = true:
Screenshot 2024-10-04 at 14 22 25
When user A clicks directly on chat - we get from OpenReport - isOwnPolicyExpenseChat = false
Again this is one main difference between API calls:
Screenshot 2024-10-04 at 14 22 58
And keep in mind that isOwnPolicyExpenseChat prop is directly influence on chat header - problem again coming from not correct isOwnPolicyExpenseChat value - it should be false instead of true.

Why the issue is happened for Option 2 just for new workspaces - answer is simple:
When you create a workspace, immediately invite member to your workspace and go back to main screen - you will automatically landed on Welcome to Admins screen (because you create a new workspace)
Screenshot 2024-10-04 at 14 29 37
When user work with existed workspace, invite user and move back to main screen - user will automatically landed on new created chat (with invited member), OpenReport API will be called - and correct isOwnPolicyExpenseChat value will be set.

@ZhenjaHorbach let me know wdyt here.

@melvin-bot melvin-bot bot added the Overdue label Oct 4, 2024
@ZhenjaHorbach
Copy link
Contributor

My discovers so far: Option 1: When some invite user A to the workspace - user A get latest information from MissingOnyxMessages API call. If we observe response which we get from MissingOnyxMessages API call - and compare it with API call when user directly click on chat - we will see that we have just one field difference: Screenshot 2024-10-04 at 13 57 46 In the code - isOwnPolicyExpenseChat is exact prop - based on which we rendering correct/incorrect header: Screenshot 2024-10-04 at 14 01 43 Seems like the root case here - API returns not correct value for isOwnPolicyExpenseChat it should be true instead of false.

Option 2: When user A as an owner of the workspace invite member to his workspace - we fire API call - AddMembersToWorkspace - which returns isOwnPolicyExpenseChat = true: Screenshot 2024-10-04 at 14 22 25 When user A clicks directly on chat - we get from OpenReport - isOwnPolicyExpenseChat = false Again this is one main difference between API calls: Screenshot 2024-10-04 at 14 22 58 And keep in mind that isOwnPolicyExpenseChat prop is directly influence on chat header - problem again coming from not correct isOwnPolicyExpenseChat value - it should be false instead of true.

Why the issue is happened for Option 2 just for new workspaces - answer is simple: When you create a workspace, immediately invite member to your workspace and go back to main screen - you will automatically landed on Welcome to Admins screen (because you create a new workspace) Screenshot 2024-10-04 at 14 29 37 When user work with existed workspace, invite user and move back to main screen - user will automatically landed on new created chat (with invited member), OpenReport API will be called - and correct isOwnPolicyExpenseChat value will be set.

@ZhenjaHorbach let me know wdyt here.

Oh
Thanks for the detailed investigation
I'll check it out over the weekend !

@jliexpensify
Copy link
Contributor

Posted in the #convert room for a new Engineer: https://expensify.slack.com/archives/C07HPDRELLD/p1731896542353939

@melvin-bot melvin-bot bot added the Overdue label Nov 20, 2024
@jliexpensify
Copy link
Contributor

Bumped thread again

@melvin-bot melvin-bot bot removed the Overdue label Nov 21, 2024
@ZhenjaHorbach
Copy link
Contributor

@jliexpensify
I can add a random engineer using 🎀🎀

@jliexpensify
Copy link
Contributor

@ZhenjaHorbach could you do that? It's probably easier than trying to source an Engineer through the Slack channel 😅

@ZhenjaHorbach
Copy link
Contributor

🎀👀🎀

Copy link

melvin-bot bot commented Nov 21, 2024

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

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

melvin-bot bot commented Nov 25, 2024

@narefyev91, @jliexpensify, @jasperhuangg, @ZhenjaHorbach Whoops! This issue is 2 days overdue. Let's get this updated quick!

@jliexpensify
Copy link
Contributor

Jasper is OOO

Copy link

melvin-bot bot commented Dec 2, 2024

@narefyev91, @jliexpensify, @jasperhuangg, @ZhenjaHorbach Huh... This is 4 days overdue. Who can take care of this?

@ZhenjaHorbach
Copy link
Contributor

Not overdue
But if needed I can add a new random engineer

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

@jasperhuangg - just checking, you're back from medical leave right?

@melvin-bot melvin-bot bot added the Overdue label Dec 5, 2024
@jasperhuangg
Copy link
Contributor

Sorry for the delay here, been catching up with other issues after coming back from OOO. I was not on medical leave btw, just on holiday 😆

@melvin-bot melvin-bot bot removed the Overdue label Dec 5, 2024
@jasperhuangg
Copy link
Contributor

Have other issues I still need to work on that take priority over this

@jliexpensify
Copy link
Contributor

Ah sorry about that! Shall we drop this to a weekly then, or you want to keep at daily for focus?

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

melvin-bot bot commented Dec 9, 2024

@narefyev91, @jliexpensify, @jasperhuangg, @ZhenjaHorbach Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@muttmuure muttmuure moved this to MEDIUM in [#whatsnext] #quality Dec 9, 2024
@jasperhuangg jasperhuangg added Weekly KSv2 and removed Daily KSv2 labels Dec 9, 2024
@melvin-bot melvin-bot bot removed the Overdue label Dec 9, 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. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
Development

No branches or pull requests

8 participants