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] Workspace - User account closed is not removed in real-time in Workspace members page #26593

Closed
1 of 6 tasks
lanitochka17 opened this issue Sep 2, 2023 · 72 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Sep 2, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Launch app
  2. Tap profile
  3. Tap workspaces
  4. Select a Workspace
  5. Tap members
  6. Enter a new non existing user
  7. Tap next
  8. Tap invite
  9. Open email link and validate the account(in other device or environment)
  10. Open validated account(in other device or environment)
  11. Tap profile
  12. Tap security
  13. Tap Close account
  14. Enter email and confirm close account.
  15. Note admin Workspace members page ie. 8th step(app)
  16. Tap back button
  17. Revisit Workspace members page

Expected Result:

When invited user closes the account, user must not be shown in admin Workspace members page

Actual Result:

When invited user closes the account, in real- time, user is not removed from admin Workspace members page. User has to navigate back from members page and revisit the page again to note the user of closed account to be removed from members list

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.62-1

Reproducible in staging?: Yes

Reproducible in production?: yes

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

Notes/Photos/Videos: Any additional supporting documentation

Bug6186548_real_time.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01da2cae35a2022fcb
  • Upwork Job ID: 1699326238020980736
  • Last Price Increase: 2023-11-22
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 2, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 2, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@greg-schroeder greg-schroeder added the External Added to denote the issue can be worked on by a contributor label Sep 6, 2023
@melvin-bot melvin-bot bot changed the title Workspace - User account closed is not removed in real-time in Workspace members page [$500] Workspace - User account closed is not removed in real-time in Workspace members page Sep 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

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

@melvin-bot melvin-bot bot added Overdue Help Wanted Apply this label when an issue is open to proposals by contributors labels Sep 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

Current assignee @greg-schroeder is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

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

@greg-schroeder
Copy link
Contributor

Applied External

@melvin-bot melvin-bot bot removed the Overdue label Sep 6, 2023
@ayazalavi
Copy link
Contributor

ayazalavi commented Sep 8, 2023

Proposal

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

Members list in workspace members page is not updated real time.

What is the root cause of that problem?

As soon as the invited user closes their account, we have no way of subscribing to fetch the fresh members' list from the server.

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

We need to update the user profile with custom data in the CloseAccount API callback. We can pass custom data, such as 'accountClosed,' like this:

{
    onyxMethod: Onyx.METHOD.MERGE,
    key: ONYXKEYS.PERSONAL_DETAILS_LIST,
    value: {
        [assigneeAccountID]: null,
    },
}

On the other end, in the workspace members component, it will refresh, and we can fetch a fresh members list. So, in essence, we're just updating the profile data of the user closing the account and then retrieving it on the other end to fetch the latest members list.

Result:
https://github.com/Expensify/App/assets/767439/8b3798f8-fada-44da-8830-6bb64a25ca04

What alternative solutions did you explore? (Optional)

N/A

@ayazalavi
Copy link
Contributor

ayazalavi commented Sep 8, 2023

@sobitneupane what do you think about my proposal #26593 (comment)?

@melvin-bot melvin-bot bot added the Overdue label Sep 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

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

@greg-schroeder
Copy link
Contributor

bump @sobitneupane

@melvin-bot melvin-bot bot removed the Overdue label Sep 11, 2023
@ayazalavi
Copy link
Contributor

@sobitneupane any update?

@sobitneupane
Copy link
Contributor

will review the proposal shortly.

@sobitneupane
Copy link
Contributor

Thanks for the proposal @ayazalavi.

Can you please add more details to your proposal? Why is SetInterval required here? I don't think it's good idea to fetch members repeatedly.

@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

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

@ayazalavi
Copy link
Contributor

ayazalavi commented Sep 13, 2023

Proposal

Updated

@melvin-bot melvin-bot bot added the Overdue label Sep 15, 2023
@ayazalavi
Copy link
Contributor

Proposal

Updated

@melvin-bot
Copy link

melvin-bot bot commented Sep 16, 2023

@sobitneupane @greg-schroeder 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!

@ayazalavi
Copy link
Contributor

Updating my proposal.

@melvin-bot melvin-bot bot removed the Overdue label Nov 1, 2023
Copy link

melvin-bot bot commented Nov 1, 2023

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

@melvin-bot melvin-bot bot added the Overdue label Nov 3, 2023
Copy link

melvin-bot bot commented Nov 6, 2023

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

Copy link

melvin-bot bot commented Nov 8, 2023

@sobitneupane, @greg-schroeder Still overdue 6 days?! Let's take care of this!

Copy link

melvin-bot bot commented Nov 8, 2023

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

@greg-schroeder
Copy link
Contributor

Awaiting proposals

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 9, 2023
@greg-schroeder
Copy link
Contributor

Same as above

@melvin-bot melvin-bot bot removed the Overdue label Nov 13, 2023
Copy link

melvin-bot bot commented Nov 15, 2023

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

@melvin-bot melvin-bot bot added the Overdue label Nov 15, 2023
@greg-schroeder
Copy link
Contributor

greg-schroeder commented Nov 16, 2023

Posting in Callstack slack:

https://expensify.slack.com/archives/C03UK30EA1Z/p1700093219774199

@melvin-bot melvin-bot bot removed the Overdue label Nov 16, 2023
@Piotrfj
Copy link
Contributor

Piotrfj commented Nov 17, 2023

Hey, I'm Piotr from Callstack - expert contributor group - I would like to help resolve this issue

@melvin-bot melvin-bot bot added the Overdue label Nov 20, 2023
@sobitneupane
Copy link
Contributor

@Piotrfj Could you kindly provide details on your approach to resolving the issue?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 20, 2023
Copy link

melvin-bot bot commented Nov 22, 2023

📣 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 23, 2023

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 26, 2023
Copy link

melvin-bot bot commented Nov 26, 2023

📣 @sobitneupane Please request via NewDot manual requests for the Reviewer role ($500)

@melvin-bot melvin-bot bot removed the Overdue label Nov 26, 2023
@greg-schroeder
Copy link
Contributor

Yes, @Piotrfj do you mind giving a breakdown of your approach here? Thanks!

@aimane-chnaif
Copy link
Contributor

This is dupe of #20264 but closed as edge case.
#20264 (comment)

@greg-schroeder
Copy link
Contributor

Okay then, guess we're closing

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants