-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$1000] Web - 'Notify me' option doesn't update on Unavailable workspace #21859
Comments
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease 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". 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. And in this line, we can check whether workspace is available using a utility function. What alternative solutions did you explore? (Optional)None. |
ProposalPlease 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 const policy = allPolicies[`${ONYXKEYS.COLLECTION.POLICY}${report.policyID}`];
// place this below isDomainRoom
if (isChatRoom(report) && !policy) {
return false;
} What alternative solutions did you explore? (Optional)N/A |
@adelekennedy Eep! 4 days overdue now. Issues have feelings too... |
@adelekennedy 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Job added to Upwork: https://www.upwork.com/jobs/~01c0766bb586cb325f |
Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
moving this along |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.'Notify me' option doesn't update on the Unavailable workspace. Also the user can still see the workspace chat. What is the root cause of that problem?The above proposals have touched the surface of the root cause, however the issue is deeper than that. This problem doesn't happen before, that's because earlier the However, after this PR, we no longer call After the user is removed from the workspace and the user loads the page, the So that's the root cause. This not only happens when the the user is removed from the workspace and the user loads the page, it also happens when the user is re-added to the workspace and loads the page, the default chat reports will not show (because it's not sent back in What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)In 2, another solution is in the |
I agree with @tienifr. It looks like something that should be fixed in backend. @adelekennedy Can we add an internal engineer to see if it can be fixed in backend as suggested here. |
@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? |
Triggered auto assignment to @NikkiWines ( |
@NikkiWines question above - can thi be fixed on the backend as suggested here? |
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 |
Yep, agreed - not saving user notification preferences for a workspace they don't have access to any longer sounds like expected behavior to me |
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))
|
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 |
Agree - I think we should open a separate issue and deal with the regression! |
@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! |
Cool, in that case, I'm going to close this out. Thanks everyone 🙇 |
@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? |
@tienifr I personally think it should be a separately reported issue |
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:
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?
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
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: