feat(server): description support for team hierarchy (#12638)

This commit is contained in:
Chirag Madlani 2023-08-01 11:25:42 +05:30 committed by GitHub
parent 9ed9fb172e
commit 098625c549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -245,7 +245,8 @@ public class TeamRepository extends EntityRepository<Team> {
.withHref(team.getHref()) .withHref(team.getHref())
.withFullyQualifiedName(team.getFullyQualifiedName()) .withFullyQualifiedName(team.getFullyQualifiedName())
.withIsJoinable(team.getIsJoinable()) .withIsJoinable(team.getIsJoinable())
.withChildren(null); .withChildren(null)
.withDescription(team.getDescription());
} }
private TeamHierarchy deepCopy(TeamHierarchy team) { private TeamHierarchy deepCopy(TeamHierarchy team) {

View File

@ -26,6 +26,10 @@
"description": "A unique name of the team typically the team ID from an identity provider. Example - group Id from LDAP.", "description": "A unique name of the team typically the team ID from an identity provider. Example - group Id from LDAP.",
"$ref": "../../type/basic.json#/definitions/entityName" "$ref": "../../type/basic.json#/definitions/entityName"
}, },
"description": {
"description": "Description of the team.",
"$ref": "../../type/basic.json#/definitions/markdown"
},
"fullyQualifiedName": { "fullyQualifiedName": {
"description": "FullyQualifiedName same as `name`.", "description": "FullyQualifiedName same as `name`.",
"$ref": "../../type/basic.json#/definitions/fullyQualifiedEntityName" "$ref": "../../type/basic.json#/definitions/fullyQualifiedEntityName"