Skip to content

[HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Workspace chat - Unable to remove member from workspace chat #42928

Closed

Description

@lanitochka17

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.78-0
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
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Account Settings > Workspace > click on a workspace > Invite Member > Invite a test account as a member
  3. Go to workspace chat
  4. Click on the chat header
  5. Go to Members
  6. Remove the new users - verify you see the "removed" notification in the chat
  7. Notice the list of members is greater than the number of members (as if the removed member wasn't removed)

Expected Result:

User should be able to remove a member from the workspace
The member count should match the number of members

Actual Result:

When refreshing the browser the user isn't removed from the Members list
The member count isn't accurate

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

Bug6497346_1717152407197.20240531_184248.mp4
2024-06-04_14-44-07.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01008c963ec6d29d78
  • Upwork Job ID: 1798248796400459776
  • Last Price Increase: 2024-06-05
Issue OwnerCurrent Issue Owner: @Christinadobrzyn / @Christinadobrzyn
Issue OwnerCurrent Issue Owner: @strepanier03 / @Christinadobrzyn

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on May 31, 2024
  2. melvin-bot commented on May 31, 2024

    @melvin-bot

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

  3. lanitochka17 commented on May 31, 2024

    @lanitochka17
    Author

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

  4. lanitochka17 commented on May 31, 2024

    @lanitochka17
    Author

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

  5. bernhardoj commented on Jun 1, 2024

    @bernhardoj
    Contributor

    Proposal

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

    Unable to remove qa.guide@team.expensify.com from workspace chat members.

    What is the root cause of that problem?

    The BE gives us a successful response when removing it, but shows again after refresh.

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

    I think we should either disable it or not show the qa.guide@team.expensify.com at all like on the workspace members page,

    // If this policy is owned by Expensify then show all support (expensify.com or team.expensify.com) emails
    // We don't want to show guides as policy members unless the user is a guide. Some customers get confused when they
    // see random people added to their policy, but guides having access to the policies help set them up.
    if (PolicyUtils.isExpensifyTeam(details?.login ?? details?.displayName)) {
    if (policyOwner && currentUserLogin && !PolicyUtils.isExpensifyTeam(policyOwner) && !PolicyUtils.isExpensifyTeam(currentUserLogin)) {
    return;
    }
    }

    but with an additional check of the owner of the report.

    if (!PolicyUtils.isExpensifyTeam(reportOwner) && !PolicyUtils.isExpensifyTeam(policyOwner) && !PolicyUtils.isExpensifyTeam(currentUserPersonalDetails.login)) {
    

    If we want to disable it, we can use the condition and apply it here

    isDisabled: accountID === session?.accountID || pendingChatMember?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE,

    If we don't want to show it, we need to use the condition in ReportUtils.getVisibleChatMemberAccountIDs.

    so it will affect the member count too.

  6. kpadmanabhan commented on Jun 3, 2024

    @kpadmanabhan

    Proposal

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

    Unable to remove qa.guide@team.expensify.com from members list in a workspace. The same is the case with removing myself from my workspace. I see this behaviour for any user removal.

    What is the root cause of that problem?

    Behaviour seen in main branch HEAD.

    OpenReport API returns list of members.
    image
    Though the RemoveFromRoom API returns 200 response, refresh of page returns back the removed user in the list.
    This needs to be fixed in the backend.

    However, proposing frontend fixes below.

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

    Similar the first user in the screenshot below (with a disabled checkbox), owner of the account and qa.guide@team.expensify.com users can be marked disabled, if they are not to be removable.
    image

    This is a call the product has to take. Accordingly frontend changes can be implemented.

    What alternative solutions did you explore? (Optional)

  7. melvin-bot commented on Jun 3, 2024

    @melvin-bot

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

  8. Christinadobrzyn commented on Jun 4, 2024

    @Christinadobrzyn
    Contributor

    Hum, what I'm able to reproduce is slightly different - the member doesn't always appear again in the chat but the member count is off. Asking QA to confirm what they see. https://expensify.slack.com/archives/C9YU7BX5M/p1717483892088549

  9. MelvinBot commented on Jun 4, 2024

    @MelvinBot
    Contributor

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

  10. kavimuru commented on Jun 4, 2024

    @kavimuru

    Tester is seeing the same result as in the OP.

    bandicam.2024-06-05.03-52-21-698.mp4
  11. 101 remaining items

  12. Christinadobrzyn commented on Jul 17, 2024

    @Christinadobrzyn
  13. jayeshmangwani commented on Jul 17, 2024

    @jayeshmangwani
    Contributor

    Regression Test Proposal

    1. Add a new member to a workspace
    2. Go to the workspace chat created for that member
    3. Press report details -> Members
    4. Verify you cannot remove that member from the workspace chat

    Do we agree 👍 or 👎

  14. strepanier03 commented on Jul 17, 2024

    @strepanier03
    Contributor

    @Christinadobrzyn - I didn't realize we were both assigned to this until I'd already done the the reg test so that parts is finished 😂.

  15. strepanier03 commented on Jul 19, 2024

    @strepanier03
    Contributor

    It doesn't look like @bernhardoj is due payment so I think we can just post the payment summary for this.

  16. strepanier03 commented on Jul 19, 2024

    @strepanier03
    Contributor

    Payment Summary

    • Contributor: $250 @tienifr (payment through New Expensify)
    • Contributor+: $250 @jayeshmangwani (payment through New Expensify)

    @JmillsExpensify - Two requests incoming via New Expensify.

  17. melvin-bot commented on Jul 22, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@JmillsExpensify)

    • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1798248796400459776/hired)
      - [ ] I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  18. melvin-bot commented on Jul 22, 2024

    @melvin-bot

    @JmillsExpensify, @strepanier03, @jayeshmangwani, @techievivek, @Christinadobrzyn, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  19. Christinadobrzyn commented on Jul 22, 2024

    @Christinadobrzyn
    Contributor

    I think we can close this since payment will be through New Expensify-

    NewDot Payment summary - #42928 (comment)
    Regression test - https://github.com/Expensify/Expensify/issues/413575

  20. jayeshmangwani commented on Jul 25, 2024

    @jayeshmangwani
    Contributor

    Requested $250

  21. JmillsExpensify commented on Jul 25, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @jayeshmangwani

  22. JmillsExpensify commented on Aug 5, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @tienifr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2Hot PickReady for an engineer to pick up and run with

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions