-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 2024-06-03] [$250] Workspace - Admin can access member details side bar after member leaves workspace #40416
Comments
Triggered auto assignment to @madmax330 ( |
Triggered auto assignment to @laurenreidexpensify ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@laurenreidexpensify 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. |
We think this issue might be related to the #collect project. |
Production bandicam.2024-04-18.12-56-59-071.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Admin can access member details side bar after member leaves workspace What is the root cause of that problem?We don't have any logic to handle cases like these. What changes do you think we should make in order to solve the problem?We can pass accountID or MemberLogin and then use it in below comment to show NotFoundPage. Then we can check if the user is still the member of policy. If not then we can show the not found page
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.We show member details even when we the admin deletes the workspace. What is the root cause of that problem?This is surprising but in What changes do you think we should make in order to solve the problem?We need to make use of We need to wrap Then we need to pass const shouldShowNotFoundPage = !member || member.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE; And later pass it like: <FullPageNotFoundView
shouldShow={shouldShowNotFoundPage}
> ResultScreen.Recording.2024-04-19.at.2.49.27.AM.mov |
Doesn't look like it needs to be a blocker - I'm making it external though |
Job added to Upwork: https://www.upwork.com/jobs/~014967949b89818bfd |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
Implement a check to determine whether the content should be shown or blocked based on the pendingAction status of the member. You can set a boolean variable shouldShowNotFoundPage to true if the member doesn't exist or if their pendingAction is "delete."
Wrap the ScreenWrapper component with the FullPageNotFoundView component, passing the shouldShow prop to it.
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The side bar for the member remains open on the admin side after member leaves the workspace What is the root cause of that problem?We never have the logic to disallow accessing member details side bar when member leaves workspace, or even when the "account" is never a member of the workspace at all. As long as the account id and the policy id in the route is correct, we're showing the screen. What changes do you think we should make in order to solve the problem?
You might notice the So, if both
If we'd like to polish this too, we can again do the same as what we already do for the workspace initial page (see here):
This will make sure the other member details tab will be dismissed too when we remove the member in one tab. What alternative solutions did you explore? (Optional)NA |
@madmax330 yours to assign 👍 |
📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@tienifr is there a draft PR up yet? Thanks |
I'm back from the holiday, I'll create the PR in a few hours |
Not overdue, waiting on the PR |
@madmax330 @alitoshmatov @laurenreidexpensify @tienifr 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! |
👋 Looks like the PR linked to this issue might have caused a regression here: #42555 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.75-1 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 2024-06-03. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
|
Payment Summary:
|
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: 1.4.63-0
Reproducible in staging?: Y
Reproducible in production?: No, new feature
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
The side bar for the member should not be accessible after member leaves a workspace
Actual Result:
The side bar for the member remains open on the admin side after member leaves the workspace
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6453311_1713426320100.bandicam_2024-04-18_10-41-05-637.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @laurenreidexpensifyThe text was updated successfully, but these errors were encountered: