FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Directory Synchronisation Tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Information Services
DevOps
Google WorkSpace (aka G-Suite)
Directory Synchronisation Tool
Merge requests
!8
Limit group descriptions to 300 characters.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Limit group descriptions to 300 characters.
issue-12-limit-group-description-length
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Dean Rasheed
requested to merge
issue-12-limit-group-description-length
into
master
4 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#12 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
9e49e4b2
1 commit,
4 years ago
1 file
+
6
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
gsuitesync/sync.py
+
6
−
3
Options
@@ -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