You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-06-29][$1000] Error message "Can't remove admin" isn't shown when selecting workspace admins #20809
In the latest migration, it seems we are using accountID for the WorkspaceMembersPage component but for the validate method we are comparing accountID with the email and that is causing the issue.
What changes do you think we should make in order to solve the problem?
We need to update the condition to consider accountID instead of the email property and for showing an error also we need to use accountID instead of login field.
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:
[@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:
[@sobitneupane] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@sobitneupane] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@sobitneupane] Determine if we should create a regression test for this bug.
[@sobitneupane] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@bfitzexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
changed the title [-][HOLD for payment 2023-06-29] [HOLD for payment 2023-06-28] [$1000] Error message "Can't remove admin" isn't shown when selecting workspace admins[/-][+][HOLD for payment 2023-06-29][$1000] Error message "Can't remove admin" isn't shown when selecting workspace admins[/+]on Jun 26, 2023
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:
[@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:
[@sobitneupane] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@sobitneupane] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
We were making transition (login->accountID) through multiple PRs and few cases might have missed out.
[@sobitneupane] Determine if we should create a regression test for this bug.
We have decided to disable the checkbox for admin recently. It is being worked on in another issue. So, error message is no longer needed.
Activity
melvin-bot commentedon Jun 15, 2023
Triggered auto assignment to @kadiealexander (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 15, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)dukenv0307 commentedon Jun 15, 2023
This issue will be fixed by My proposal in another issue
Pujan92 commentedon Jun 15, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Error message "Can't remove admin" isn't shown when selecting workspace admins
What is the root cause of that problem?
In the latest migration, it seems we are using
accountIDfor theWorkspaceMembersPagecomponent but for thevalidatemethod we are comparingaccountIDwith theemailand that is causing the issue.App/src/pages/workspace/WorkspaceMembersPage.js
Lines 289 to 290 in d396430
What changes do you think we should make in order to solve the problem?
We need to update the condition to consider
accountIDinstead of theemailproperty and for showing an error also we need to useaccountIDinstead ofloginfield.App/src/pages/workspace/WorkspaceMembersPage.js
Lines 371 to 376 in d396430
Result
Screen.Recording.2023-06-15.at.6.07.38.PM.mov
kadiealexander commentedon Jun 16, 2023
@sobitneupane could you please take a look at this issue and confirm if it's the same root cause/fix as #20719 as per @dukenv0307's comment here?
sobitneupane commentedon Jun 16, 2023
Nope @kadiealexander. It's a different issue.
I have reviewed @Pujan92's proposal. It will solve this issue. We can go with @Pujan92's proposal to solve this issue.
sobitneupane commentedon Jun 16, 2023
@kadiealexander I would like to take C+ role here if possible.
kadiealexander commentedon Jun 19, 2023
Reproduced this on desktop app. @sobitneupane happy to assign you here, thanks for volunteering!
54 remaining items
melvin-bot commentedon Jun 22, 2023
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:
kadiealexander commentedon Jun 26, 2023
Thanks for keeping an eye on this @bfitzexpensify!
[-][HOLD for payment 2023-06-29] [HOLD for payment 2023-06-28] [$1000] Error message "Can't remove admin" isn't shown when selecting workspace admins[/-][+][HOLD for payment 2023-06-29][$1000] Error message "Can't remove admin" isn't shown when selecting workspace admins[/+]kadiealexander commentedon Jun 28, 2023
Sent contracts to everybody. @sobitneupane please don't forget about the checklist!
kadiealexander commentedon Jun 30, 2023
Paid @Pujan92 including a bonus as per this
Paid @ashimsharma10 their reporting bonus
Once the checklist is complete I'll issue C+ payment and we can close this 🎉
sobitneupane commentedon Jul 3, 2023
#20506
#20506 (comment)
We were making transition (login->accountID) through multiple PRs and few cases might have missed out.
We have decided to disable the checkbox for admin recently. It is being worked on in another issue. So, error message is no longer needed.