Adds default team to the remote cluster entity (#27863)

* Adds default team to the remote cluster entity

A new DefaultTeamId field is added to the RemoteCluster entity and its
endpoints, and used when receiving channel invites to choose in which
team to create a new channel.

This will be later extended with the ability for the system admin to
manually accept invites, choosing which team to create the channel on
each. This use case will be triggered when the DefaultTeamId field is
empty, which now simply chooses the first team it finds in the
database as a fallback.

* Fix migrations list

* Fixes channelinvite test case

* Fix i18n

* Fix migration list
Этот коммит содержится в:
Miguel de la Cruz
2024-08-08 16:36:27 +02:00
коммит произвёл GitHub
родитель 3d8d0f5e3e
Коммит 59873a2a50
14 изменённых файлов: 99 добавлений и 39 удалений

Просмотреть файл

@@ -3499,6 +3499,9 @@ components:
site_url:
description: URL of the remote cluster
type: string
default_team_id:
description: The team where channels from invites are created
type: string
create_at:
description: Time in milliseconds that the remote cluster was created
type: integer

Просмотреть файл

@@ -171,6 +171,9 @@
properties:
display_name:
type: string
default_team_id:
type: string
description: The team where channels from invites are created
responses:
"200":
description: Remote Cluster patch successful