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

[HOLD for payment 2023-11-30] [$500] Room - Inconsistency in room member list when it is created offline and after returning online #31375

Closed
6 tasks done
lanitochka17 opened this issue Nov 15, 2023 · 25 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production 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 Nov 15, 2023

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.3.99-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:
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:

Precondition: Have a workspace with a few members

  1. Go offline
  2. Click + > New chat > Room
  3. Create a room under the workspace in the precondition and set the visibility to Workspace
  4. Click on the room header > Members
  5. Go online

Expected Result:

Member list in the room when created offline should only show the admin themselves

Actual Result:

Member list in the room when created offline shows all the workspace members. It shows only the admin after 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

Add any screenshot/video evidence

Bug6277612_1700057722582.20231115_135040.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0124f1a665a95a6c6e
  • Upwork Job ID: 1724807139956674560
  • Last Price Increase: 2023-11-15
  • Automatic offers:
    • dukenv0307 | Contributor | 27723102
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 15, 2023
@melvin-bot melvin-bot bot changed the title Room - Inconsistency in room member list when it is created offline and after returning online [$500] Room - Inconsistency in room member list when it is created offline and after returning online Nov 15, 2023
Copy link

melvin-bot bot commented Nov 15, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0124f1a665a95a6c6e

Copy link

melvin-bot bot commented Nov 15, 2023

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

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

melvin-bot bot commented Nov 15, 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

Copy link

melvin-bot bot commented Nov 15, 2023

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

@dukenv0307
Copy link
Contributor

dukenv0307 commented Nov 15, 2023

Proposal

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

Inconsistency in the room member list when it is created offline and after returning online

What is the root cause of that problem?

When we create a room with visibility as restricted, we add participants in optimistic data is the member list of the workspace. After going online, BE returns the data with participants of this room as only current user.

const members = visibility === CONST.REPORT.VISIBILITY.RESTRICTED ? policyMembersAccountIDs : [];

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

  1. If the expected is only the current user is participant when we create a new room, we can fix in FE to update the participant of optimistic data as the current user.

const members = visibility === CONST.REPORT.VISIBILITY.RESTRICTED ? policyMembersAccountIDs : [];

  1. If not we should fix in BE to return the correct participant.

What alternative solutions did you explore? (Optional)

@parasharrajat
Copy link
Member

parasharrajat commented Nov 15, 2023

I am not also not sure here about who should be participants. Going to ask on Slack https://expensify.slack.com/archives/C01GTK53T8Q/p1700077413329419

@parasharrajat

This comment was marked as outdated.

@parasharrajat
Copy link
Member

parasharrajat commented Nov 16, 2023

So there are more updates on Slack and it seems that only user who created should be the member of the room when created. Other users will have to join it.

In that case, @dukenv0307's proposal to update the FE makes sense.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Nov 16, 2023

Triggered auto assignment to @chiragsalian, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@chiragsalian
Copy link
Contributor

Proposal LGTM, feel free to create the PR @dukenv0307

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

melvin-bot bot commented Nov 17, 2023

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

Copy link

melvin-bot bot commented Nov 17, 2023

📣 @dukenv0307 🎉 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 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 20, 2023
@dukenv0307
Copy link
Contributor

@parasharrajat The PR is ready for review.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 23, 2023
@melvin-bot melvin-bot bot changed the title [$500] Room - Inconsistency in room member list when it is created offline and after returning online [HOLD for payment 2023-11-30] [$500] Room - Inconsistency in room member list when it is created offline and after returning online Nov 23, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 23, 2023
Copy link

melvin-bot bot commented Nov 23, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Nov 23, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.2-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-11-30. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Nov 23, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

@parasharrajat
Copy link
Member

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

Regression Test Steps

  1. Go offline
  2. Create a restricted room
  3. Click on the header on the newly created room > Open Members.
  4. Verify that the member list has only one member is the current user who created the room.
  5. Go online
  6. Verify that the member list is the same as in offline mode.

Do you agree 👍 or 👎 ?

@chiragsalian
Copy link
Contributor

regression test LGTM 👍

@kadiealexander
Copy link
Contributor

kadiealexander commented Nov 29, 2023

Nice! Payouts due:

Upwork job is here.

@kadiealexander
Copy link
Contributor

Adding a teammate to sort payment while I'm OOO.

@kadiealexander kadiealexander added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels Nov 29, 2023
@melvin-bot melvin-bot bot added Help Wanted Apply this label when an issue is open to proposals by contributors Daily KSv2 and removed Weekly KSv2 labels Nov 29, 2023
@Expensify Expensify deleted a comment from melvin-bot bot Nov 29, 2023
@kadiealexander kadiealexander added Bug Something is broken. Auto assigns a BugZero manager. and removed Help Wanted Apply this label when an issue is open to proposals by contributors Bug Something is broken. Auto assigns a BugZero manager. labels Nov 29, 2023
Copy link

melvin-bot bot commented Nov 29, 2023

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

@Expensify Expensify deleted a comment from melvin-bot bot Nov 29, 2023
@kadiealexander
Copy link
Contributor

Thanks for sorting payment @bfitzexpensify, the BugZero Checklist is complete here.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Daily KSv2 labels Nov 30, 2023
@bfitzexpensify
Copy link
Contributor

Payout complete, BZ checklist is done so we're all wrapped up here. Thanks everyone!

@parasharrajat
Copy link
Member

Payment requested as per #31375 (comment)

@JmillsExpensify
Copy link

$500 payment approved for @parasharrajat based on this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production 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
None yet
Development

No branches or pull requests

7 participants