-
Notifications
You must be signed in to change notification settings - Fork 82
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
List possible values when inviting a team within an environment #158
List possible values when inviting a team within an environment #158
Conversation
As an additional step, we could filter the groups in the dropdown to list all cognito groups, minus the groups that have already been invited @LEUNGUU |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final remarks:
- Environment and organization permissions. In the original implementation we used calls to the RDS DB that had been decorated and checked the permissions on the orga or environment. Now we do not check the permissions when listing the groups, but we still check the permissions when we invite the team. Therefore, we are not loosing control over the "invite" action.
- We removed the integration tests on the list environment groups. This one I think it is important (and I will add a test in the PR). This api call is essential for the use of data.all. Without it teams cannot be added and work on the environment/orga
Hi @LEUNGUU, I have added the integration test for the api. For the integration test it was easier to move the cognito calls to the handlers (for mocking). I also like having all AWS boto3 calls in the handlers, even if they are calling services in the central infra account |
@dlpzx Even though this 'list_cognito_groups' function is not so consistent with others in handlers folder, well, I agree with you. Let's put it there. |
…nviting-a-team-within-an-environment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the coverage integration tests and they succeded
Feature or Bugfix
Detail
Relates
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.