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

Limit number of collaborators #911

Merged
merged 2 commits into from
Nov 28, 2022
Merged

Limit number of collaborators #911

merged 2 commits into from
Nov 28, 2022

Conversation

pdeziel
Copy link
Collaborator

@pdeziel pdeziel commented Nov 23, 2022

Scope of changes

This limits the number of collaborators on an organization by returning an error on AddCollaborator

SC-10883

Type of change

  • bug fix
  • new feature
  • documentation
  • other (describe)

Acceptance criteria

Describe how reviewers can test this change to be sure that it works correctly. Add a checklist if possible

Author checklist

  • I have manually tested the change and/or added automation in the form of unit tests or integration tests
  • I have updated the dependencies list
  • I have recompiled and included new protocol buffers to reflect changes I made
  • I have added new test fixtures as needed to support added tests
  • Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
  • I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

  • Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.

@pdeziel pdeziel requested a review from DanielSollis November 23, 2022 20:52
Copy link
Contributor

@DanielSollis DanielSollis left a comment

Choose a reason for hiding this comment

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

Pretty simple and clean, nice job!

@@ -17,6 +17,8 @@ import (
"github.com/trisacrypto/directory/pkg/gds/secrets"
)

const MaxCollaborators = 50
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason we're making this a constant 50 instead of putting it in config?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My thought is that it's not something we would need to change very often.

@pdeziel pdeziel merged commit 878cdcf into main Nov 28, 2022
@pdeziel pdeziel deleted the sc-10883 branch November 28, 2022 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants