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] Group chat-Member invited, made admin & removed in offline is showed on returning online. #47686

Closed
3 of 6 tasks
IuliiaHerets opened this issue Aug 20, 2024 · 19 comments
Closed
3 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 Monthly KSv2 Reviewing Has a PR in review

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Aug 20, 2024

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: 9.0.22
Reproducible in staging?:
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4872013
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/home
  2. Tap fab -- start chat -- select a user
  3. Create a group
  4. Tap header -- member
  5. Go offline
  6. Invite a member
  7. Make him admin by long pressing the member and selecting make admin
  8. Then remove the same user by long pressing the member and selecting remove member
  9. Go online
  10. Tap back

Expected Result:

In group chat, member removed in offline must not be showed on returning online.

Actual Result:

In group chat, member invited, made admin & removed in offline is showed on returning online.

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

Bug6576435_1724097752273.Screenrecorder-2024-08-20-01-23-47-366_compress_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015e13003200e6f595
  • Upwork Job ID: 1825933817898137464
  • Last Price Increase: 2024-08-20
  • Automatic offers:
    • dominictb | Contributor | 103626792
Issue OwnerCurrent Issue Owner: @aimane-chnaif
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 20, 2024
Copy link

melvin-bot bot commented Aug 20, 2024

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

@IuliiaHerets
Copy link
Author

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

@IuliiaHerets
Copy link
Author

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

@dominictb
Copy link
Contributor

Proposal

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

  • In group chat, member invited, made admin & removed in offline is showed on returning online.

What is the root cause of that problem?

  • In offline, when we invite a new user, we create a random accountID for it.

  • Then if we try to remove that user, we just tell BE to remove that random accountID, so the real accountID that BE returns is not removed.

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

  • We should disable member that have isOptimisticPersonalDetail. So we cannot "Make admin" or "Remove" that user as we did in:

    isDisabled:
    !!details.isOptimisticPersonalDetail ||
    (isPolicyAdmin && (policyEmployee.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE || !isEmptyObject(policyEmployee.errors))),

  • So:

    isDisabled: pendingChatMember?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE,

    will be:

                isDisabled: pendingChatMember?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE || !!details.isOptimisticPersonalDetail,

@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label Aug 20, 2024
Copy link

melvin-bot bot commented Aug 20, 2024

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

@melvin-bot melvin-bot bot changed the title Group chat-Member invited, made admin & removed in offline is showed on returning online. [$250] Group chat-Member invited, made admin & removed in offline is showed on returning online. Aug 20, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 20, 2024
Copy link

melvin-bot bot commented Aug 20, 2024

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

@aimane-chnaif
Copy link
Contributor

@dominictb's proposal looks good.
We should disable removing/making admin for optimistic members in group chat, as we did in workspace members.

🎀👀🎀 C+ reviewed

workspace.members.mp4

Copy link

melvin-bot bot commented Aug 21, 2024

Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 21, 2024
Copy link

melvin-bot bot commented Aug 21, 2024

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

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

Copy link

melvin-bot bot commented Sep 16, 2024

This issue has not been updated in over 15 days. @puneetlath, @aimane-chnaif, @dominictb eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@melvin-bot melvin-bot bot added the Monthly KSv2 label Sep 16, 2024
@puneetlath
Copy link
Contributor

What happened with this issue @dominictb @aimane-chnaif? Did we finish it?

@dominictb
Copy link
Contributor

PR merged but Melvin did not send deploy notifications :/ I think it was merged around 3 weeks ago #48035 (comment) so we should issue payment now.

@puneetlath
Copy link
Contributor

Got it. I've paid @dominictb.

@aimane-chnaif can you complete the checklist?

@aimane-chnaif
Copy link
Contributor

@puneetlath
Copy link
Contributor

Payment summary:

Thanks y'all!

@aimane-chnaif
Copy link
Contributor

@puneetlath I am still using upwork. Can you please reopen and sort payment? Thanks

@puneetlath puneetlath reopened this Oct 6, 2024
@puneetlath
Copy link
Contributor

Ah ok got it. Offer is here: https://www.upwork.com/nx/wm/offer/104341792. Please ping me on this issue when you've accepted.

@aimane-chnaif
Copy link
Contributor

Accepted thanks

@puneetlath
Copy link
Contributor

Paid!

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 Monthly KSv2 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

4 participants