-
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
[$250] Workspace - "Remove members" and "Make admin" options are present for owner #46620
Comments
Triggered auto assignment to @cead22 ( |
Triggered auto assignment to @bfitzexpensify ( |
👋 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:
|
We think that this bug might be related to #wave-collect - Release 1 |
Job added to Upwork: https://www.upwork.com/jobs/~0110a7f901ae8b6a28 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - "Remove members" and "Make admin" options are present for owner What is the root cause of that problem?We allow the select modal to be present for options which have selection disabled. This results in user being able to select rows for which selection has been disabled What changes do you think we should make in order to solve the problem?We should use App/src/components/SelectionListWithModal/index.tsx Lines 44 to 45 in c46990b
if (!turnOnSelectionModeOnLongPress || !isSmallScreenWidth || item?.isDisabled || item?.isCheckBoxDisabled) {
return;
} This will also fix the issue in |
ProposalPlease re-state the problem that we are trying to solve in this issue.Owner can be selected and there are "Remove members" and "Make members" options which are not applicable to the owner. What is the root cause of that problem?We always call App/src/components/SelectionList/BaseListItem.tsx Lines 75 to 77 in 73f97c9
What changes do you think we should make in order to solve the problem?We should use:
What alternative solutions did you explore? (Optional)We can update the condition:
to:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - "Remove members" and "Make admin" options are present for owner What is the root cause of that problem?The problem is that the Hence, the policy owner option can always be selected and the "Remove members" and "Make admin" options are present for the owner. App/src/pages/workspace/WorkspaceMembersPage.tsx Lines 348 to 350 in ec38b05
What changes do you think we should make in order to solve the problem?We should disable the owner option being able to be selected by adding the following condition, The full condition will look like this.
|
@neonbhai why do we need |
Current assignee @cead22 is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
How is this one going @neonbhai? |
This issue has not been updated in over 15 days. @cead22, @bfitzexpensify, @neonbhai, @getusha eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Seems like automation failed on this one. @cead22 could you please check? thanks! |
@bfitzexpensify can you handle payment for this issue please? Automation failed here, but I think @neonbhai should be paid via https://www.upwork.com/jobs/~0110a7f901ae8b6a28, and I'm not sure about @getusha after a brief look at the code Below is the bug zero checklist for reference, in case we need to complete it. Let me know if I tagged the wrong people on some of the items. Thanks 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:
|
@cead22, @bfitzexpensify, @neonbhai, @getusha Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Bump @neonbhai @bfitzexpensify |
Back from OOO, handling this now Payment summary: @neonbhai to be paid $250 for contributor work - offer sent via Upwork @getusha can you complete the checklist in #46620 (comment)? Thanks! |
@cead22, @bfitzexpensify, @neonbhai, @getusha Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
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: [@getusha] The PR that introduced the bug has been identified. Link to the PR: #46096 |
Thanks! Let's close this out |
$250 approved for @getusha |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when validating #45732
Version Number: 9.0.15-4
Reproducible in staging?: y
Reproducible in production?: unable to check new feature
Issue reported by: applause internal team
Action Performed:
Expected Result:
Owner should not be able to be selected (production behavior).
Actual Result:
Owner can be selected and there are "Remove members" and "Make members" options which are not applicable to the owner.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @getushaThe text was updated successfully, but these errors were encountered: