update for adding multiple members (#25128)
* update for adding multiple members
* fix unit test
* more test fixes
* add another unit test
* fix object passed by client4
* revert package-lock.json
* revert package-lock.json
* add length check
* limit size of lists in API requests
* revert package-lock
* add batching to front end
* add batching to front end
* fix bad merge
* update return type
* remove unnecessary permisssion check, add unit test
* fixes and add tests from review
* revert changes adding limits to other apis
* fixes
* clean-up from code review
* fix unit test call
* revert back to interface{}, fix unit test
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4f68dbb96e
Коммит
6fd894953c
@@ -180,7 +180,9 @@
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: User ids to be in the group message channel
|
||||
minItems: 3
|
||||
maxItems: 8
|
||||
description: User ids to be in the group message channel.
|
||||
required: true
|
||||
responses:
|
||||
"201":
|
||||
@@ -408,7 +410,7 @@
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: List of channel ids
|
||||
description: List of channel ids.
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
@@ -1329,8 +1331,8 @@
|
||||
post:
|
||||
tags:
|
||||
- channels
|
||||
summary: Add user to channel
|
||||
description: Add a user to a channel by creating a channel member object.
|
||||
summary: Add user(s) to channel
|
||||
description: Add a user(s) to a channel by creating a channel member object(s).
|
||||
operationId: AddChannelMember
|
||||
parameters:
|
||||
- name: channel_id
|
||||
@@ -1344,12 +1346,17 @@
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- user_id
|
||||
properties:
|
||||
user_id:
|
||||
type: string
|
||||
description: The ID of user to add into the channel
|
||||
description: The ID of user to add into the channel, for backwards compatibility.
|
||||
user_ids:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
minItems: 1
|
||||
maxItems: 1000
|
||||
description: The IDs of users to add into the channel, required if 'user_id' doess not exist.
|
||||
post_root_id:
|
||||
type: string
|
||||
description: The ID of root post where link to add channel member
|
||||
@@ -1392,7 +1399,7 @@
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: List of user ids
|
||||
description: List of user ids.
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
|
||||
Ссылка в новой задаче
Block a user