Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
- Go to staging dot on web chrome and login with User A
- Create a new workspace and invite User B and click on the announce channel
- Login with User B on another web chrome and go to the announce channel
- Important step- Now close the browser for User B
- From User A, remove the User B from the workspace (members > remove User B)
- On user B, open the browser again so that User B is able to see 'Unavailable Workspace' on announce.
- From user B, go to 'Unavailable workspace' header and click on 'Notify me about messages' and try to select different options from there.
- Notice that even if you select other options, it switches back to the default option - Daily
Expected Result:
If settings can't be changed for unavailable workspace, we can either not show settings OR if we decide to show settings, then it should be updated if the user selects different options
Actual Result:
'Notify me' option doesn't update on the Unavailable workspace
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.33-4
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
Notes/Photos/Videos: Any additional supporting documentation
Recording.3305.mp4
green-2023-06-28_11.41.43.mp4
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687932409885299
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01c0766bb586cb325f
- Upwork Job ID: 1677141743908093952
- Last Price Increase: 2023-07-07
Activity
melvin-bot commentedon Jun 29, 2023
Triggered auto assignment to @adelekennedy (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 29, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)StevenKKC commentedon Jun 29, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
'Notify me' option doesn't update on Unavailable workspace.
What is the root cause of that problem?
Once a user is removed from a workspace, he cannot update workspace notification settings, and the server will respond "Report no longer exists".
App does not check to see if the workspace is available, and the UI does not reflect the server's response.
What changes do you think we should make in order to solve the problem?
The workspace details page can be blocked from being accessed by the removed user.
We can add a utility function
ReportUtils.isAvailableWorkspacethat checks if a workspace is available.And in this line, we can check whether workspace is available using a utility function.
What alternative solutions did you explore? (Optional)
None.
hungvu193 commentedon Jun 29, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Web - 'Notify me' option doesn't update on Unavailable workspace
What is the root cause of that problem?
We still receive information from a room that we aren't member from backend. This because if user didn't open the app when they didn't receive pusher event to remove announce report from their end.
What changes do you think we should make in order to solve the problem?
In this case, we can update our
canSeeDefaultRoomin here because it's used to filter our report in SidebarLinks also the current report to displayWhat alternative solutions did you explore? (Optional)
N/A
melvin-bot commentedon Jul 4, 2023
@adelekennedy Eep! 4 days overdue now. Issues have feelings too...
melvin-bot commentedon Jul 6, 2023
@adelekennedy 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
[-]Web - 'Notify me' option doesn't update on Unavailable workspace[/-][+][$1000] Web - 'Notify me' option doesn't update on Unavailable workspace[/+]melvin-bot commentedon Jul 7, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01c0766bb586cb325f
melvin-bot commentedon Jul 7, 2023
Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new.
9 remaining items
tienifr commentedon Jul 10, 2023
@sobitneupane I think we also need the front-end fix (2) mentioned in the proposal as well for existing users and also to prevent such issues occurring in the future.
What do you think?
melvin-bot commentedon Jul 10, 2023
Triggered auto assignment to @NikkiWines (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.adelekennedy commentedon Jul 10, 2023
@NikkiWines question above - can thi be fixed on the backend as suggested here?
adelekennedy commentedon Jul 11, 2023
Let's refocus this - after reproducing I don't think this is a true bug, when we remove someone from the workspace it doesn't matter that they can't update settings. I also wasn't able to reproduce the bug for re-added members 🤷♀️
I think we should actually close this as we're getting into backend fixes for something pretty insubstantial @NikkiWines @sobitneupane for thoughts
NikkiWines commentedon Jul 12, 2023
Yep, agreed - not saving user notification preferences for a workspace they don't have access to any longer sounds like expected behavior to me
sobitneupane commentedon Jul 12, 2023
IMO, those rooms from where user is removed should not be shown at all. It was the behavior previously and even now if user is removed when he/she is online, those rooms are not visible to the removed user.
According to @tienifr (#21859 (comment))
NikkiWines commentedon Jul 12, 2023
If it's a regression from previous behavior (i.e. we used to not show the rooms but now we do) that sounds like an issue, and should be reported separately if it hasn't been already. But I don't think this issue as it was reported is a real bug
adelekennedy commentedon Jul 13, 2023
Agree - I think we should open a separate issue and deal with the regression!
melvin-bot commentedon Jul 13, 2023
@NikkiWines @sobitneupane @adelekennedy 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!
NikkiWines commentedon Jul 13, 2023
Cool, in that case, I'm going to close this out. Thanks everyone 🙇
tienifr commentedon Jul 14, 2023
@NikkiWines @adelekennedy do you think we should modify the OP of this issue to reflect the correct behavior (not show the rooms) rather than create another issue for that?
NikkiWines commentedon Jul 14, 2023
@tienifr I personally think it should be a separately reported issue