You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] Inviting a secondary login to a workspace appears as Hidden in the members table. #52517
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsReviewingHas a PR in review
Version Number: v9.0.61-3 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A 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 Expensify/Expensify Issue URL: Issue reported by:@danielrvidal Slack conversation (hyperlinked to channel name): #convert
Action Performed:
Invite two users to a workspace
Make sure one of the users you invite is a secondary login to an existing account.
Expected Result:
The user with a secondary login should only appear once in the table, and their primaryLogin should be displayed.
Actual Result:
The secondary login invitee appears as Hidden in the members table, and there appears to be two entries in the workspace's employeeList.
Workaround:
Not that I'm aware of.
Platforms:
Which of our officially supported platforms is this issue occurring on?
Edited by proposal-police: This proposal was edited at 2024-11-14 05:25:56 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
The secondary login invitee appears as Hidden in the members table, and there appears to be two entries in the workspace's employeeList.
What is the root cause of that problem?
When we invite an account that is a secondary login to an existing account, we optimistically merge the secondary email to policy.employeeList. And BE returns the policy.employeeList containing primary email. Now the policyEmployeeList contains both primary and secondary emails. But only the primary email has detail data in personalDetailsList because the secondary email data has been cleared when the API is called successfully.
in case of secondary email, its policyMemberEmailsToAccountIDs[email] is undefined and Number(policyMemberEmailsToAccountIDs[email] ?? '') is 0. And in personalDetailsList data, we has 0 as valid key and its data is not empty so the condition:
changed the title [-]Inviting a secondary login to a workspace appears as `Hidden` in the members table. [/-][+][$250] Inviting a secondary login to a workspace appears as `Hidden` in the members table. [/+]on Dec 9, 2024
We want to close this issue because the PRs not needed anymore, right? Cuz we hired @truph01 , full compensation is due to both the contributor and C+, per internal SO
100% due if contributor drafted a PR and requested a review.
100% due to C+ if they reviewed the PR.
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsReviewingHas a PR in review
Activity
melvin-bot commentedon Nov 14, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf (
External)melvin-bot commentedon Nov 14, 2024
Triggered auto assignment to @lschurr (
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.truph01 commentedon Nov 14, 2024
Edited by proposal-police: This proposal was edited at 2024-11-14 05:25:56 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
The secondary login invitee appears as Hidden in the members table, and there appears to be two entries in the workspace's employeeList.
What is the root cause of that problem?
When we invite an account that is a secondary login to an existing account, we optimistically merge the secondary email to
policy.employeeList. And BE returns thepolicy.employeeListcontaining primary email. Now thepolicyEmployeeListcontains both primary and secondary emails. But only the primary email has detail data in personalDetailsList because the secondary email data has been cleared when the API is called successfully.The data in here:
App/src/pages/workspace/WorkspaceMembersPage.tsx
Line 69 in 04402e9
only contains the accountID for primary email.
App/src/pages/workspace/WorkspaceMembersPage.tsx
Line 328 in 04402e9
in case of secondary email, its
policyMemberEmailsToAccountIDs[email]isundefinedandNumber(policyMemberEmailsToAccountIDs[email] ?? '')is0. And in personalDetailsList data, we has 0 as valid key and its data is not empty so the condition:App/src/pages/workspace/WorkspaceMembersPage.tsx
Line 335 in 04402e9
is false.
What changes do you think we should make in order to solve the problem?
App/src/pages/workspace/WorkspaceMembersPage.tsx
Line 328 in 04402e9
What alternative solutions did you explore? (Optional)
App/src/pages/workspace/WorkspaceMembersPage.tsx
Line 328 in 04402e9
twisterdotcom commentedon Nov 18, 2024
Relabelling as Lauren is OOO now.
19 remaining items
allgandalf commentedon Nov 25, 2024
@truph01 left some comments please check :))
NikkiWines commentedon Dec 9, 2024
@mallenexpensify, I raised this here for discussion on closing this issue out.
[-]Inviting a secondary login to a workspace appears as `Hidden` in the members table. [/-][+][$250] Inviting a secondary login to a workspace appears as `Hidden` in the members table. [/+]melvin-bot commentedon Dec 9, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021866191811810677468
melvin-bot commentedon Dec 9, 2024
Current assignee @allgandalf is eligible for the External assigner, not assigning anyone new.
mallenexpensify commentedon Dec 9, 2024
We want to close this issue because the PRs not needed anymore, right? Cuz we hired @truph01 , full compensation is due to both the contributor and C+, per internal SO
@truph01 @allgandalf can you please accept the job and reply here once you have?
https://www.upwork.com/jobs/~021866191811810677468
truph01 commentedon Dec 10, 2024
@mallenexpensify I accepted the job. Appreciate it 🙏
mallenexpensify commentedon Dec 10, 2024
Contributor: @truph01 paid $250 via Upwork
Contributor+: @allgandalf paid $250 via Upwork