mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-17 21:12:20 +01:00
fix(description): Increase description length to 2.000 characters
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
d1979824ec
commit
282540012a
26 changed files with 109 additions and 38 deletions
|
|
@ -174,3 +174,4 @@
|
|||
* `schedule-meeting` (local) - Whether logged-in participants can schedule meetings
|
||||
* `config => chat => has-translation-task-providers` (local) - When true, translations can be done using the [OCS TaskProcessing API](https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-taskprocessing-api.html).
|
||||
* `config => conversations => list-style` (local) - Whether conversation list should appear in certain way
|
||||
* `config => conversations => description-length` (local) - The maximum length for conversation descriptions, currently 2000. Before this config was added the implicit limit was 500, since the existance of the feature capability `room-description`.
|
||||
|
|
|
|||
|
|
@ -269,9 +269,9 @@ Get all (for moderators and in case of "free selection") or the assigned breakou
|
|||
* Endpoint: `/room/{token}/description`
|
||||
* Data:
|
||||
|
||||
| field | type | Description |
|
||||
|---------------|--------|--------------------------------------|
|
||||
| `description` | string | New description for the conversation |
|
||||
| field | type | Description |
|
||||
|---------------|--------|--------------------------------------------------------------------------------------------|
|
||||
| `description` | string | New description for the conversation (limited to 2.000 characters, was 500 before Talk 21) |
|
||||
|
||||
* Response:
|
||||
- Status code:
|
||||
|
|
|
|||
|
|
@ -158,6 +158,7 @@ class Capabilities implements IPublicCapability {
|
|||
'conversations' => [
|
||||
'can-create',
|
||||
'list-style',
|
||||
'description-length',
|
||||
],
|
||||
'federation' => [
|
||||
'enabled',
|
||||
|
|
@ -236,6 +237,7 @@ class Capabilities implements IPublicCapability {
|
|||
'can-create' => $user instanceof IUser && !$this->talkConfig->isNotAllowedToCreateConversations($user),
|
||||
'force-passwords' => $this->talkConfig->isPasswordEnforced(),
|
||||
'list-style' => $this->talkConfig->getConversationsListStyle($user?->getUID()),
|
||||
'description-length' => Room::DESCRIPTION_MAXIMUM_LENGTH,
|
||||
],
|
||||
'federation' => [
|
||||
'enabled' => false,
|
||||
|
|
|
|||
|
|
@ -836,7 +836,7 @@ class RoomController extends AEnvironmentAwareOCSController {
|
|||
/**
|
||||
* Update the description of a room
|
||||
*
|
||||
* @param string $description New description
|
||||
* @param string $description New description for the conversation (limited to 2.000 characters, was 500 before Talk 21)
|
||||
* @return DataResponse<Http::STATUS_OK, TalkRoom, array{}>|DataResponse<Http::STATUS_BAD_REQUEST, array{error: 'type'|'value'}, array{}>
|
||||
*
|
||||
* 200: Description updated successfully
|
||||
|
|
|
|||
|
|
@ -360,6 +360,7 @@ namespace OCA\Talk;
|
|||
* can-create: bool,
|
||||
* force-passwords: bool,
|
||||
* list-style: 'two-lines'|'compact',
|
||||
* description-length: positive-int,
|
||||
* },
|
||||
* federation: array{
|
||||
* enabled: bool,
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class Room {
|
|||
public const START_CALL_MODERATORS = 2;
|
||||
public const START_CALL_NOONE = 3;
|
||||
|
||||
public const DESCRIPTION_MAXIMUM_LENGTH = 500;
|
||||
public const DESCRIPTION_MAXIMUM_LENGTH = 2000;
|
||||
|
||||
public const HAS_FEDERATION_NONE = 0;
|
||||
public const HAS_FEDERATION_TALKv1 = 1;
|
||||
|
|
|
|||
|
|
@ -243,7 +243,8 @@
|
|||
"required": [
|
||||
"can-create",
|
||||
"force-passwords",
|
||||
"list-style"
|
||||
"list-style",
|
||||
"description-length"
|
||||
],
|
||||
"properties": {
|
||||
"can-create": {
|
||||
|
|
@ -258,6 +259,11 @@
|
|||
"two-lines",
|
||||
"compact"
|
||||
]
|
||||
},
|
||||
"description-length": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -176,7 +176,8 @@
|
|||
"required": [
|
||||
"can-create",
|
||||
"force-passwords",
|
||||
"list-style"
|
||||
"list-style",
|
||||
"description-length"
|
||||
],
|
||||
"properties": {
|
||||
"can-create": {
|
||||
|
|
@ -191,6 +192,11 @@
|
|||
"two-lines",
|
||||
"compact"
|
||||
]
|
||||
},
|
||||
"description-length": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -176,7 +176,8 @@
|
|||
"required": [
|
||||
"can-create",
|
||||
"force-passwords",
|
||||
"list-style"
|
||||
"list-style",
|
||||
"description-length"
|
||||
],
|
||||
"properties": {
|
||||
"can-create": {
|
||||
|
|
@ -191,6 +192,11 @@
|
|||
"two-lines",
|
||||
"compact"
|
||||
]
|
||||
},
|
||||
"description-length": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -219,7 +219,8 @@
|
|||
"required": [
|
||||
"can-create",
|
||||
"force-passwords",
|
||||
"list-style"
|
||||
"list-style",
|
||||
"description-length"
|
||||
],
|
||||
"properties": {
|
||||
"can-create": {
|
||||
|
|
@ -234,6 +235,11 @@
|
|||
"two-lines",
|
||||
"compact"
|
||||
]
|
||||
},
|
||||
"description-length": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -176,7 +176,8 @@
|
|||
"required": [
|
||||
"can-create",
|
||||
"force-passwords",
|
||||
"list-style"
|
||||
"list-style",
|
||||
"description-length"
|
||||
],
|
||||
"properties": {
|
||||
"can-create": {
|
||||
|
|
@ -191,6 +192,11 @@
|
|||
"two-lines",
|
||||
"compact"
|
||||
]
|
||||
},
|
||||
"description-length": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -219,7 +219,8 @@
|
|||
"required": [
|
||||
"can-create",
|
||||
"force-passwords",
|
||||
"list-style"
|
||||
"list-style",
|
||||
"description-length"
|
||||
],
|
||||
"properties": {
|
||||
"can-create": {
|
||||
|
|
@ -234,6 +235,11 @@
|
|||
"two-lines",
|
||||
"compact"
|
||||
]
|
||||
},
|
||||
"description-length": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -377,7 +377,8 @@
|
|||
"required": [
|
||||
"can-create",
|
||||
"force-passwords",
|
||||
"list-style"
|
||||
"list-style",
|
||||
"description-length"
|
||||
],
|
||||
"properties": {
|
||||
"can-create": {
|
||||
|
|
@ -392,6 +393,11 @@
|
|||
"two-lines",
|
||||
"compact"
|
||||
]
|
||||
},
|
||||
"description-length": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -12590,7 +12596,7 @@
|
|||
"properties": {
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "New description"
|
||||
"description": "New description for the conversation (limited to 2.000 characters, was 500 before Talk 21)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
10
openapi.json
10
openapi.json
|
|
@ -336,7 +336,8 @@
|
|||
"required": [
|
||||
"can-create",
|
||||
"force-passwords",
|
||||
"list-style"
|
||||
"list-style",
|
||||
"description-length"
|
||||
],
|
||||
"properties": {
|
||||
"can-create": {
|
||||
|
|
@ -351,6 +352,11 @@
|
|||
"two-lines",
|
||||
"compact"
|
||||
]
|
||||
},
|
||||
"description-length": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -12748,7 +12754,7 @@
|
|||
"properties": {
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "New description"
|
||||
"description": "New description for the conversation (limited to 2.000 characters, was 500 before Talk 21)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -139,6 +139,7 @@ export const mockedCapabilities: Capabilities = {
|
|||
'can-create': true,
|
||||
'force-passwords': false,
|
||||
'list-style': 'two-lines',
|
||||
'description-length': 2000,
|
||||
},
|
||||
federation: {
|
||||
enabled: false,
|
||||
|
|
|
|||
|
|
@ -250,6 +250,8 @@ export type components = {
|
|||
"force-passwords": boolean;
|
||||
/** @enum {string} */
|
||||
"list-style": "two-lines" | "compact";
|
||||
/** Format: int64 */
|
||||
"description-length": number;
|
||||
};
|
||||
federation: {
|
||||
enabled: boolean;
|
||||
|
|
|
|||
|
|
@ -84,6 +84,8 @@ export type components = {
|
|||
"force-passwords": boolean;
|
||||
/** @enum {string} */
|
||||
"list-style": "two-lines" | "compact";
|
||||
/** Format: int64 */
|
||||
"description-length": number;
|
||||
};
|
||||
federation: {
|
||||
enabled: boolean;
|
||||
|
|
|
|||
|
|
@ -70,6 +70,8 @@ export type components = {
|
|||
"force-passwords": boolean;
|
||||
/** @enum {string} */
|
||||
"list-style": "two-lines" | "compact";
|
||||
/** Format: int64 */
|
||||
"description-length": number;
|
||||
};
|
||||
federation: {
|
||||
enabled: boolean;
|
||||
|
|
|
|||
|
|
@ -165,6 +165,8 @@ export type components = {
|
|||
"force-passwords": boolean;
|
||||
/** @enum {string} */
|
||||
"list-style": "two-lines" | "compact";
|
||||
/** Format: int64 */
|
||||
"description-length": number;
|
||||
};
|
||||
federation: {
|
||||
enabled: boolean;
|
||||
|
|
|
|||
|
|
@ -88,6 +88,8 @@ export type components = {
|
|||
"force-passwords": boolean;
|
||||
/** @enum {string} */
|
||||
"list-style": "two-lines" | "compact";
|
||||
/** Format: int64 */
|
||||
"description-length": number;
|
||||
};
|
||||
federation: {
|
||||
enabled: boolean;
|
||||
|
|
|
|||
|
|
@ -196,6 +196,8 @@ export type components = {
|
|||
"force-passwords": boolean;
|
||||
/** @enum {string} */
|
||||
"list-style": "two-lines" | "compact";
|
||||
/** Format: int64 */
|
||||
"description-length": number;
|
||||
};
|
||||
federation: {
|
||||
enabled: boolean;
|
||||
|
|
|
|||
|
|
@ -2033,6 +2033,8 @@ export type components = {
|
|||
"force-passwords": boolean;
|
||||
/** @enum {string} */
|
||||
"list-style": "two-lines" | "compact";
|
||||
/** Format: int64 */
|
||||
"description-length": number;
|
||||
};
|
||||
federation: {
|
||||
enabled: boolean;
|
||||
|
|
@ -6752,7 +6754,7 @@ export interface operations {
|
|||
requestBody: {
|
||||
content: {
|
||||
"application/json": {
|
||||
/** @description New description */
|
||||
/** @description New description for the conversation (limited to 2.000 characters, was 500 before Talk 21) */
|
||||
description: string;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1533,6 +1533,8 @@ export type components = {
|
|||
"force-passwords": boolean;
|
||||
/** @enum {string} */
|
||||
"list-style": "two-lines" | "compact";
|
||||
/** Format: int64 */
|
||||
"description-length": number;
|
||||
};
|
||||
federation: {
|
||||
enabled: boolean;
|
||||
|
|
@ -6336,7 +6338,7 @@ export interface operations {
|
|||
requestBody: {
|
||||
content: {
|
||||
"application/json": {
|
||||
/** @description New description */
|
||||
/** @description New description for the conversation (limited to 2.000 characters, was 500 before Talk 21) */
|
||||
description: string;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -159,6 +159,7 @@ class CapabilitiesTest extends TestCase {
|
|||
'can-create' => false,
|
||||
'force-passwords' => false,
|
||||
'list-style' => 'two-lines',
|
||||
'description-length' => 2000,
|
||||
],
|
||||
'federation' => [
|
||||
'enabled' => false,
|
||||
|
|
@ -297,6 +298,7 @@ class CapabilitiesTest extends TestCase {
|
|||
'can-create' => $canCreate,
|
||||
'force-passwords' => false,
|
||||
'list-style' => 'two-lines',
|
||||
'description-length' => 2000,
|
||||
],
|
||||
'federation' => [
|
||||
'enabled' => false,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue