Skip to content

Commit

Permalink
Merge pull request #90 from Interhyp/89-create-owner-can-handle-groups
Browse files Browse the repository at this point in the history
feat(#89): create user can handle groups
  • Loading branch information
KRaffael authored Feb 1, 2023
2 parents 32854c5 + bb23616 commit 06833eb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/v1/apimodel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions docs/openapi-v3-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1976,6 +1976,20 @@
"someotheruser"
]
},
"groups": {
"type": "object",
"description": "Map of string (group name e.g. some-owner) of strings (list of usernames), one username for each group is required.",
"example": {
"some-owner": {
}
},
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"defaultJiraProject": {
"type": "string",
"description": "The default jira project that is used by this owner space",
Expand Down
1 change: 1 addition & 0 deletions internal/service/owners/owners.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func (s *Impl) mapOwnerCreateDtoToOwnerDto(ownerCreateDto openapi.OwnerCreateDto
JiraIssue: ownerCreateDto.JiraIssue,
DefaultJiraProject: ownerCreateDto.DefaultJiraProject,
Promoters: ownerCreateDto.Promoters,
Groups: ownerCreateDto.Groups,
}
}

Expand Down

0 comments on commit 06833eb

Please sign in to comment.