App icon indicating copy to clipboard operation
App copied to clipboard

[$500] Room - User automatically joins public room when accessing from search list

Open lanitochka17 opened this issue 1 year ago • 6 comments

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.38-1 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:

  • Admin and member are in the same workspace
  1. [Admin] Create a workspace and public room
  2. [Admin] Do not add the workspace member to the room
  3. [Employee] Open search list
  4. [Employee] Search for the workspace visibility room > Click on the room
  5. Note that employee does not automatically join the workspace visibility room
  6. [Employee] Search for the public room > Click on the room

Expected Result:

The employee does not automatically join the public room

Actual Result:

The employee joins the public room without consent

Workaround:

Unknowm

Platforms:

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

  • [x] Android: Native
  • [x] Android: mWeb Chrome
  • [x] iOS: Native
  • [x] iOS: mWeb Safari
  • [x] MacOS: Chrome / Safari
  • [x] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/0d1009b5-530b-4f19-b3ff-1bdfaf203c07

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016d79ffec2c5589c5
  • Upwork Job ID: 1755337783452950528
  • Last Price Increase: 2024-02-07

lanitochka17 avatar Feb 07 '24 21:02 lanitochka17

Job added to Upwork: https://www.upwork.com/jobs/~016d79ffec2c5589c5

melvin-bot[bot] avatar Feb 07 '24 21:02 melvin-bot[bot]

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

melvin-bot[bot] avatar Feb 07 '24 21:02 melvin-bot[bot]

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

melvin-bot[bot] avatar Feb 07 '24 21:02 melvin-bot[bot]

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

lanitochka17 avatar Feb 07 '24 21:02 lanitochka17

Can't reproduce on staging.

barros001 avatar Feb 07 '24 21:02 barros001

I can't reproduce this either, I'm unable to find the public room when searching as the employee.

Here's where I can get:

  1. Admin and member are in the same workspace
  2. [Admin] Create a workspace and public room
  3. [Admin] Do not add the workspace member to the room
  4. [Employee] Open search list
  5. [Employee] Search for the workspace visibility room > NO ROOM SHOWS

https://github.com/Expensify/App/assets/51066321/e92deb1a-aa05-47f8-96ed-365eea0c1dd9

@lanitochka17 can you help me understand what I might be doing wrong?

Christinadobrzyn avatar Feb 07 '24 23:02 Christinadobrzyn

@Christinadobrzyn Hello You are not testing with the same workspace. Admin, member and the room must be under the same workspace A. In your video, you using workspace A for admin and room, then workspace B for employee.

lanitochka17 avatar Feb 08 '24 14:02 lanitochka17

Screenshot 2024-02-08 at 09 47 17

lanitochka17 avatar Feb 08 '24 14:02 lanitochka17

Oh perfect! I can reproduce and I think this can be part of VSB. I think this can be external - collecting proposals!

Christinadobrzyn avatar Feb 08 '24 20:02 Christinadobrzyn

I believe this is a backend issue. When you click on the room from search, it will call the following API:

/api?command=OpenReport

If the report is a workspace room, this is what you get back:

{
...
                "notificationPreference": "hidden",
...
}

But when you call the same API on a public room, this is what you get:

{
...
                "notificationPreference": "daily",
...
}

It appears that the backend defaults the notificationPreference on public rooms to be daily instead of hidden, as it should (not entirely sure of the ramifications here). In other words, the BE is forcing a user to join a public room every time OpenReport is called.

barros001 avatar Feb 08 '24 22:02 barros001

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

melvin-bot[bot] avatar Feb 12 '24 15:02 melvin-bot[bot]

Thank you for the review @barros001!

@DylanDylann should we change this to an Internal job based on @barros001 review?

Christinadobrzyn avatar Feb 12 '24 18:02 Christinadobrzyn

I will check today, sorry for delay

DylanDylann avatar Feb 14 '24 09:02 DylanDylann

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

melvin-bot[bot] avatar Feb 14 '24 16:02 melvin-bot[bot]

@Christinadobrzyn This is a BE bug, please help to add an internal label

DylanDylann avatar Feb 14 '24 17:02 DylanDylann

Current assignee @DylanDylann is eligible for the Internal assigner, not assigning anyone new.

melvin-bot[bot] avatar Feb 14 '24 17:02 melvin-bot[bot]

Okay, changed the labels - waiting for this one to get picked! thanks for the review @DylanDylann

Christinadobrzyn avatar Feb 14 '24 17:02 Christinadobrzyn

hi! Sorry I'm ooo sick today - I'll follow up on this tomorrow

Christinadobrzyn avatar Feb 20 '24 15:02 Christinadobrzyn

@Christinadobrzyn, @DylanDylann Eep! 4 days overdue now. Issues have feelings too...

melvin-bot[bot] avatar Feb 20 '24 15:02 melvin-bot[bot]

@Christinadobrzyn @DylanDylann this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

melvin-bot[bot] avatar Feb 21 '24 15:02 melvin-bot[bot]

waiting for this to get picked up

Christinadobrzyn avatar Feb 21 '24 19:02 Christinadobrzyn

Testing again - this is happening. Asking the team if we want users to automatically join. https://expensify.slack.com/archives/C066HJM2CAZ/p1708732903429109

Christinadobrzyn avatar Feb 23 '24 23:02 Christinadobrzyn

Let's try to fix this before the next earnings call, which is the next time we will invite a lot of people to a public room.

quinthar avatar Feb 25 '24 08:02 quinthar

Confirmed with the team that we do not want to auto-join someone into a public room. So this will remain open to be fixed by someone internal

Christinadobrzyn avatar Feb 26 '24 21:02 Christinadobrzyn

reached out in Slack to see if someone might be able to grab this - https://expensify.slack.com/archives/C03TQ48KC/p1709064511759569

Christinadobrzyn avatar Feb 27 '24 20:02 Christinadobrzyn

@Christinadobrzyn @DylanDylann this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!

melvin-bot[bot] avatar Feb 28 '24 15:02 melvin-bot[bot]

This is waiting to get picked up internally

Christinadobrzyn avatar Feb 28 '24 18:02 Christinadobrzyn

waiting to be picket up internally

Christinadobrzyn avatar Mar 04 '24 20:03 Christinadobrzyn

@Christinadobrzyn @DylanDylann this issue is now 4 weeks old and preventing us from maintaining WAQ. This should now be your highest priority. Please post below what your plan is to get a PR in review ASAP. Thanks!

melvin-bot[bot] avatar Mar 06 '24 19:03 melvin-bot[bot]

asking what to do with this job - can it be moved to weekly so we don't need to update it everyday with the same comment - https://expensify.slack.com/archives/C01SKUP7QR0/p1709772958396869

Christinadobrzyn avatar Mar 07 '24 01:03 Christinadobrzyn