Skip to content
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

Navneeth create see teams management tab custom permission #556

Conversation

navneeeth
Copy link
Contributor

@navneeeth navneeeth commented Sep 30, 2023

Description

feature description

Related PRs:

This PR is linked to the FE PR #1359.

Main changes explained:

  • Updated the permission checks for not allowing listing users (used while adding members) and adding new teams and adding new members if the user also does not have the seeTeamsManagementTab permissions.
  • Added comments to define the permission checks.
  • Fixed the regex check in src/models/team.js to allow team creation without a team code from the Teams page.
  • Updated the hasPermission function call based on the latest update in its definition.

How to test:

  1. check into current branch
  2. do npm install and npm run build and npm run start successively to run this PR locally

Shiwani99
Shiwani99 previously approved these changes Oct 6, 2023
Copy link
Contributor

@Shiwani99 Shiwani99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
Great Work. Left comments at frontend PR#1359.

@lacnoskillz
Copy link
Contributor

Hi I'm trying to test your changes and having trouble creating an account with a Owner role.
Below I don't see the option to make a owner account to test. I'm currently logged in as the [email protected] when attempting to create

image

Copy link

@malikjahanzaib malikjahanzaib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @navneeeth, I have tested the features implemented in this PR and everything seems to work fine. Detailed review in the FE PR #1359. Nice work!

JYXiao-2021
JYXiao-2021 previously approved these changes Oct 7, 2023
Copy link

@JYXiao-2021 JYXiao-2021 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, great job. I left my comment on FE.

@RheaWu1212
Copy link
Contributor

Hi I'm trying to test your changes and having trouble creating an account with a Owner role. Below I don't see the option to make a owner account to test. I'm currently logged in as the [email protected] when attempting to create

image

Hi I have the same issue here:
Screen Shot 2023-10-07 at 08 35 20

Copy link
Contributor

@StrawberryCalpico StrawberryCalpico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! I just reviewed the PR, it works as expected. Great job! I can assign the permission, create/edit team, and delete successfully. Details in #1359

wantingxu7
wantingxu7 previously approved these changes Oct 13, 2023
Copy link
Contributor

@wantingxu7 wantingxu7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, the PR LGTM, left detailed comment in FE 1359. Good job!

@RheaWu1212
Copy link
Contributor

Hi I'm trying to test your changes and having trouble creating an account with a Owner role. Below I don't see the option to make a owner account to test. I'm currently logged in as the [email protected] when attempting to create
image

Hi I have the same issue here: Screen Shot 2023-10-07 at 08 35 20

@RheaWu1212 RheaWu1212 closed this Oct 14, 2023
@navneeeth navneeeth reopened this Oct 14, 2023
@navneeeth
Copy link
Contributor Author

@lacnoskillz @RheaWu1212 Hi, you cannot create an Owner account. You need to contact Jae to upgrade one of your test accounts to an Owner account in order to test this PR. Thank you!

@palakgosalia
Copy link

Hi! I just reviewed the PR, it works as expected. I have left a comment in #1359

@RheaWu1212
Copy link
Contributor

Hi! I reviewed the PR again after I had owner account and I have left a comment in FE.

@Lin1404 Lin1404 self-requested a review October 21, 2023 05:17
@Lin1404
Copy link
Contributor

Lin1404 commented Oct 21, 2023

Hi! I just reviewed the PR, it works as expected. I have left a comment in FE PR

@ChirayuRai
Copy link

Hey! I have left my comments on FE #1359

Copy link

@shubhankarval shubhankarval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @navneeeth, I’m getting an error while trying to run this PR.
Screenshot 2023-11-04 155423

@navneeeth
Copy link
Contributor Author

Hey @navneeeth, I’m getting an error while trying to run this PR. Screenshot 2023-11-04 155423

Hello, @shubhankarval! Thanks for your review. Since the code has not changed since the last set of reviewers successfully tested it, I believe that this is a caching issue.

I just tried running the backend again with this PR and it works as expected:
run build success

For the FE:

Switch to the navneeth-create-see-teams-management-tab-custom-permission branch if on VS Code.
In the terminal:

git pull navneeth-create-see-teams-management-tab-custom-permission
npm install
npm run start:local

For the BE:

Switch to the navneeth-create-see-teams-management-tab-custom-permission branch if on VS Code.
In the terminal:

git pull navneeth-create-see-teams-management-tab-custom-permission
npm install
npm run build
npm run start

Please try again with the above steps and let me know. Thank you!

@navneeeth navneeeth dismissed stale reviews from wantingxu7, StrawberryCalpico, JYXiao-2021, and Shiwani99 November 28, 2023 21:13

will re-request since the changes are significant

Copy link
Contributor

@tsunami776 tsunami776 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment and test video left in FE PR. Great work!

Copy link
Contributor

@Shiwani99 Shiwani99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
Left my comments at frontend PR#1359. Great work.

Copy link
Contributor

@wantingxu7 wantingxu7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment in FE, good work!

Copy link

@shubhankarval shubhankarval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @navneeeth, great job! Left a comment on FE PR #1359

Copy link

@Alforoan Alforoan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a comment on the fe pr.

Copy link
Contributor

@Pandani07 Pandani07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this PR and everything works as expected. Left a video of the testing on the frontend PR.

@XiaohanMeng XiaohanMeng self-requested a review February 17, 2024 03:54
Copy link
Contributor

@XiaohanMeng XiaohanMeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! I've completed my review of the PR and everything functions as anticipated. I've provided feedback directly on the FE.
OneCommunityGlobal/HighestGoodNetworkApp#1359 (review)

@navneeeth navneeeth closed this Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.