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

[$500] [HOLD #33932] Workspace - The contact disappears but red dot shown next to "Members" #36806

Closed
1 of 6 tasks
lanitochka17 opened this issue Feb 19, 2024 · 12 comments
Closed
1 of 6 tasks
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

Comments

@lanitochka17
Copy link

lanitochka17 commented Feb 19, 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: 1.4.42-4
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4318764
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Launch app
  2. Tap settings
  3. Tap Workspaces --- Workspace
  4. Tap members
  5. Tap invite members
  6. Enter VOIP number +18183305290
  7. Select & invite the contact to workspace
  8. Note, there was a problem adding this workspace member shown
  9. Note contact number and error disappear after an second
  10. Tap app back button

Expected Result:

Using Voip number invited contact to WS, the contact disappears, so red dot must not be shown near members

Actual Result:

Using Voip number invited contact to WS, the contact disappears but red dot shown near members

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

Bug6384534_1708354668375.em.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b2eeb30b47a86301
  • Upwork Job ID: 1767932995867865088
  • Last Price Increase: 2024-03-13
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 19, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

Triggered auto assignment to @slafortune (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp
CC @quinthar

@lanitochka17
Copy link
Author

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

@dukenv0307
Copy link
Contributor

dukenv0307 commented Feb 20, 2024

Proposal

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

Using Voip number invited contact to WS, the contact disappears but red dot shown near members

What is the root cause of that problem?

We clear the optimistic personal detail data of the invited user in failureData.

...newPersonalDetailsOnyxData.finallyData,

personalDetailsCleanup[accountID] = null;

So when we invite some invalid users, these users disappear from the member page but policyMembers still stores this in failure data as an error member. And then the red dot still appears on the member section

const failureMembersState: OnyxCollection<PolicyMember> = {};
accountIDs.forEach((accountID) => {
optimisticMembersState[accountID] = {pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD};
failureMembersState[accountID] = {
errors: ErrorUtils.getMicroSecondOnyxError('workspace.people.error.genericAdd'),

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

We shouldn't clear the personal detail data of the invited users in failureData by removing this line. With this, the invalid member can be displayed with an error. That's helpful for the user to know why we cannot invite this user and when we clear all errors, the red dot in the member section will disappear automatically

...newPersonalDetailsOnyxData.finallyData,

What alternative solutions did you explore? (Optional)

We can remove the invited user from policyMembers in failureData

const failureMembersState: OnyxCollection<PolicyMember> = {};
accountIDs.forEach((accountID) => {
optimisticMembersState[accountID] = {pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD};
failureMembersState[accountID] = {
errors: ErrorUtils.getMicroSecondOnyxError('workspace.people.error.genericAdd'),

Result

Screen.Recording.2024-02-20.at.10.36.09.mov

@mallenexpensify mallenexpensify changed the title Workspace - The contact disappears but red dot shown next to "Members" [HOLD #33932] Workspace - The contact disappears but red dot shown next to "Members" Feb 20, 2024
@mallenexpensify mallenexpensify added Weekly KSv2 and removed Daily KSv2 labels Feb 20, 2024
@mallenexpensify
Copy link
Contributor

@slafortune put on hold pending

Bumped to weekly

@melvin-bot melvin-bot bot added the Overdue label Feb 29, 2024
@slafortune
Copy link
Contributor

Not overdue, on Hold

@melvin-bot melvin-bot bot removed the Overdue label Feb 29, 2024
@dukenv0307
Copy link
Contributor

@slafortune The issue #33932 is complete, I think we can off hold now and we can update the test step with another phone number like +18183305290 since now we accept to invite VOIP number.

@melvin-bot melvin-bot bot added the Overdue label Mar 11, 2024
@slafortune
Copy link
Contributor

I updated the test with the new number and was able to still recreate this issue. Adding the external tag

@melvin-bot melvin-bot bot removed the Overdue label Mar 13, 2024
@slafortune slafortune added the External Added to denote the issue can be worked on by a contributor label Mar 13, 2024
Copy link

melvin-bot bot commented Mar 13, 2024

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

@melvin-bot melvin-bot bot changed the title [HOLD #33932] Workspace - The contact disappears but red dot shown next to "Members" [$500] [HOLD #33932] Workspace - The contact disappears but red dot shown next to "Members" Mar 13, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 13, 2024
Copy link

melvin-bot bot commented Mar 13, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Mar 13, 2024
@slafortune slafortune removed Weekly KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Mar 13, 2024
@bernhardoj
Copy link
Contributor

This is already being handled in #37895

@slafortune
Copy link
Contributor

Thanks @bernhardoj - I'll close this 👍

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
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests

6 participants