-
Notifications
You must be signed in to change notification settings - Fork 282
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
support max member limit on roles and groups #2424
Conversation
Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
@@ -90,6 +90,7 @@ CREATE TABLE IF NOT EXISTS `zms_server`.`role` ( | |||
`group_expiry_days` INT NOT NULL DEFAULT 0, | |||
`description` VARCHAR(4096) NOT NULL DEFAULT '', | |||
`delete_protection` TINYINT(1) NOT NULL DEFAULT 0, | |||
`max_members` INT NOT NULL DEFAULT 0, |
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.
Should we have some other numbers as the default value instead of 0?
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.
No, we can't introduce backward incompatible changes. Value of 0 indicates there is no limit which is the current behavior.
Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
// so at this point we know that we'll be adding a new member to the | ||
// role. so first let's count the number of role members | ||
|
||
int roleMemberCount = con.countRoleMembers(domainName, roleName); |
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.
Is it meant to count the expired members also as valid role/group member in terms of count?
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.
yes, the count includes everyone regardless if they're expired or not
Description
support max member limit on roles and groups
Contribution Checklist:
Attach Screenshots (Optional)