-
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-03-14] [HOLD for payment 2024-03-13] Workspace - "Free" user is able to see "Admin Role" when WS is made as "Default" #37779
Comments
👋 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:
|
Triggered auto assignment to @stitesExpensify ( |
We think that this bug might be related to #wave6-collect-submitters |
ProposalPlease re-state the problem that we are trying to solve in this issue."Free" user is able to see "Admin Role" when WS is made as "Default" What is the root cause of that problem?There is not condition to hide "make admin" button if the workspace is free. What changes do you think we should make in order to solve the problem?We need to add a condition to check if the workspace plan is free then we will not show the "make admin" button App/src/pages/workspace/WorkspaceMembersPage.tsx Lines 419 to 426 in 9c2f146
The if condition will become: + if (selectedEmployees.find((employee) => policyMembers?.[employee]?.role === CONST.POLICY.ROLE.USER) && policy?.type !== CONST.POLICY.TYPE.FREE)
- if (selectedEmployees.find((employee) => policyMembers?.[employee]?.role === CONST.POLICY.ROLE.USER)) What alternative solutions did you explore? (Optional)Result
|
ProposalPlease re-state the problem that we are trying to solve in this issue."Free" user is able to see "Admin Role" when WS is made as "Default" What is the root cause of that problem?We push the admin option for any type of workspace App/src/pages/workspace/WorkspaceMembersPage.tsx Lines 419 to 426 in 9c2f146
What changes do you think we should make in order to solve the problem?
We can update the if condition as follows: if (policy?.type === CONST.POLICY.TYPE.TEAM && selectedEmployees.find((employee) => policyMembers?.[employee]?.role === CONST.POLICY.ROLE.USER)) { What alternative solutions did you explore? (Optional)If we want to apply this for both |
Hi @usman-ghani564 and @GandalfGwaihir, I believe both of your proposals are the same but, have considered using the |
Thanks for bringing this up @Tony-MK , the bug description says that this should be limited to collect workspace but your suggestions are also solid if we want it for |
Triggered auto assignment to @stephanieelliott ( |
@luacmartins PR for this issue is ready for review #37808 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.47-10 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-03-13. 🎊 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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.48-0 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-03-14. 🎊 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:
|
I'm confused -- was there no C+ on this issue? it looks like multiple people reviewed the PR however none are assigned here. I'll assume the C+ role was covered internally since this was a deploy blocker but LMK if there is a C+ that needs to be paid here. Summarizing payment on this issue:
Upwork job is here: https://www.upwork.com/jobs/~01e675ca37df68cdf5 |
Also a reminder to complete the BZ checklist @luacmartins @usman-ghani564 |
@stephanieelliott Please find my Upwork profile here: https://www.upwork.com/freelancers/~01b5c4ee99eace8e60 |
Payment Summary
BugZero Checklist (@stephanieelliott)
|
Regression Test Proposal
Do we agree 👍 or 👎 |
We'll add regression tests when this feature is fully implemented. No need to add those now. |
@luacmartins, @stephanieelliott, @stitesExpensify, @usman-ghani564 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Sent the offer to you in Upwork @usman-ghani564! |
Accepted @stephanieelliott |
Thanks! All paid per the payment summary here. |
Hey @stephanieelliott @luacmartins I reviewed the PR here #37808 Can we reopen for payment please 🙇♂️ |
Oop, thanks @ishpaul777, i was confused about who reviewed this one. Sent the offer to you in Upwork. please accept when you get a chance! |
Thanks! I have accepted the offer |
All paid! New payment summary, updated from #37779 (comment): Contributor: @usman-ghani564 $500 PAID via Upwork (Upwork job https://www.upwork.com/jobs/~01e675ca37df68cdf5) |
Thank you! |
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: v1.4.47-2
Reproducible in staging?: y
Reproducible in production?: new feature
Issue found when executing PR: #37199
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
User does NOT expect to see "Make admin" option, as per the PR, seems this should be limited to "Collect Workspace"
Actual Result:
"Make admin" option is shown for a FREE Workspace
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6403169_1709663276853.Free_WS_shows_admin_option_.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: