-
Notifications
You must be signed in to change notification settings - Fork 194
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
Teams improvements #417
Teams improvements #417
Conversation
Few samples broke |
The privacy field was previously commented out while the privacy level of a team was part of the `ironman` API preview. This feature is now part of the official v3 API, so this commit adds support for this field.
The `privacy` field is optional when creating/editing teams, but has a context dependent default value. When getting the team details, the field is expected to always be populated due to these default values.
91187f6
to
b2275d1
Compare
@phadej Good point, I've updated to make it optional when creating/editing teams. Since it always has a default value, it looks like the |
Makes team `privacy` and `permission` fields required when creating a team so users are forced to choose, but optional when editing a team.
@phadej Updated as requested. |
amended and merged as part of #446, thanks! |
Three changes:
Fix permission field in types for teams
Fixes a bug as the field is
permission
notpermissions
.Add privacy field to types for teams
The privacy field was previously commented out while the privacy level of a team was part of the
ironman
API preview. This feature is now part of the official v3 API, so this commit adds support for this field.Make privacy field non-optional in teams
The
privacy
field is optional when creating/editing teams, but has a context dependent default value. When getting the team details, the field is expected to always be populated due to these default values.I could also add the
ldap_dn
field mentioned in #416 as part of this pull request, but I chose not to as I suspect you may not want to support undocumented fields.