-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[aimane-chnaif please complete] [HOLD for payment 2023-07-26] [$1000] Web - The user added to workspace can see invite page but can't add the members #21998
Comments
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The user added to workspace can see invite page but can't add the members What is the root cause of that problem?There are two ways to go to invite members page in workspace -
What changes do you think we should make in order to solve the problem?We shall wrap the workspace invite page with What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - The user added to workspace can see invite page but can't add the members What is the root cause of that problem?In WorkspaceInitialPage, Let's see
We have a condition to check if the current user is admin or not and show FullPageNotFoundView The root cause, In WorkspaceMembersPage, we don't add the condition to check if the current user is workspace's admin
This bug also happen in WorkspaceInitialPage, WorkspaceInviteMessagePage, ReimbursementAccountPage, BankAccountStep, CompanyStep, RequestorStep What changes do you think we should make in order to solve the problem?In WorkspaceInitialPage, WorkspaceInviteMessagePage, ReimbursementAccountPage, We should add this condition to shouldShow prop
In BankAccountStep, CompanyStep, RequestorStep, We should wrap these component by
What alternative solutions did you explore? (Optional) |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
The code diff will be -
This is for Above will be the condition if we decide to only give access for admin of policy This proposal was written for expanding upon the proposal - |
Reproducible, triaging to external Expected result: only admin can access workspace settings, including the invite page. So anyone else who tries to follow the workspace link would get an error. |
We had a similar issue here for accessing the Workspace > Settings page via a copied URL. Linking in case it's useful to selecting a solution to this issue #18910 |
Job added to Upwork: https://www.upwork.com/jobs/~0148a57d74a819953e |
Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
@aimane-chnaif what do you think of the above proposals? |
@BhuvaneshPatil can you please list all workspace pages which have this issue? |
Sure @aimane-chnaif , I will look through the pages and will update you here. |
@aimane-chnaif
We can add conditions here, to check if the current user is policy owner. I have tried going every route related to workspace, this is how much I could find out. Will keep you posted here. |
@BhuvaneshPatil's proposal looks good to me. |
📣 @aimane-chnaif 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @BhuvaneshPatil 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Upwork job |
📣 @BhuvaneshPatil 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.42-26 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 2023-07-26. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
@BhuvaneshPatil report, fix, bonus ($1750) - paid ✔️ |
@aimane-chnaif please complete the checklist |
@AndrewGable, @sonialiap, @BhuvaneshPatil, @aimane-chnaif Huh... This is 4 days overdue. Who can take care of this? |
@aimane-chnaif bump to complete the checklist |
@AndrewGable, @sonialiap, @BhuvaneshPatil, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@aimane-chnaif waiting on you to complete the checklist |
No PRs caused regression. This case was missed while implementing policy pages.
So this is enough for regression test case |
Thanks! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
/workspace/<workspace id>/invite
https://staging.new.expensify.com/workspace/<workspace id>/invite
Expected Result:
If user doesn't have permission to invite new members to workspace, the page should provide the error message
Actual Result:
User can see the invite page and can invite the user but after adding gives the error
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.34-1
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
workspace.invite.link.error.mp4
Recording.3350.mp4
Expensify/Expensify Issue URL:
Issue reported by: @BhuvaneshPatil
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688059822067529
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: