Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mattermost-matchmaker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
Open Source
mattermost-matchmaker
Commits
c0c86a88
Commit
c0c86a88
authored
3 years ago
by
Tamas Kiss
Browse files
Options
Downloads
Patches
Plain Diff
doc: Clarifying how remainders handled
parent
ea3d7d8f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mattermost_matchmaker/matchmaking.py
+10
-1
10 additions, 1 deletion
mattermost_matchmaker/matchmaking.py
with
10 additions
and
1 deletion
mattermost_matchmaker/matchmaking.py
+
10
−
1
View file @
c0c86a88
...
@@ -63,9 +63,18 @@ def create_group(client: mattermost.MMApi, ids: Iterable[str]) -> None:
...
@@ -63,9 +63,18 @@ def create_group(client: mattermost.MMApi, ids: Iterable[str]) -> None:
def
make_matches_for_members
(
client
:
mattermost
.
MMApi
,
members
:
Iterable
[
dict
],
def
make_matches_for_members
(
client
:
mattermost
.
MMApi
,
members
:
Iterable
[
dict
],
group_size
:
int
=
2
)
->
Tuple
[
List
[
str
],
str
]:
group_size
:
int
=
2
)
->
Tuple
[
List
[
str
],
Optional
[
str
]
]
:
"""
"""
Making matches in a channel
Making matches in a channel
Side effects: A Groupchat Channel will be created for the paired groups.
A group chat would be created for the last group with less than group_size members (remainders)
if and only if there are more than 1 member in the remainder group. In this case, the second item
of the returned tuple would be None.
If the remainder group would only consist of one member, instead of creating a group for them, it is returned as
the second item in the tuple.
"""
"""
groups_created
=
[]
groups_created
=
[]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment