FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

Limit group descriptions to 300 characters.

Merged Dean Rasheed requested to merge issue-12-limit-group-description-length into master
1 file
+ 6
3
Compare changes
  • Side-by-side
  • Inline
+ 6
3
@@ -378,13 +378,16 @@ def sync(configuration, *, read_only=True):
google_group_updates = {}
google_group_creations = {}
for groupID, managed_group_entry in managed_group_entries_by_groupID.items():
# Form expected group resource fields. Group names and descriptions can have a maximum of
# 73 and 4096 characters respectively in Google.
# Form expected group resource fields. The 2 Google APIs we use here to update groups in
# Google each have different maximum lengths for group names and descriptions, and
# empirically the APIs don't function properly if either limit is exceeded, so we use the
# minimum of the 2 documented maximum field lengths (73 characters for names and 300
# characters for descriptions).
expected_google_group = {
'name': _trim_text(
managed_group_entry.groupName, maxlen=73, suffix=sync_config.group_name_suffix
),
'description': _trim_text(managed_group_entry.description, maxlen=4096)
'description': _trim_text(managed_group_entry.description, maxlen=300)
}
# Find existing Google group (if any).
Loading