[Gekidou] Saves groups + group-channel for constrained channels (#6358)

* Rebases and addresses PR feedback

* Rebased and addresses PR feedback

* Checks group constraint in action instead

* Update method docs, parallel promises

* Parallel promises, method docs

* Cleans up method docs

* Method docs cleanup

* Update app/database/operator/server_data_operator/handlers/group.ts

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
Shaz MJ
2022-08-01 08:02:15 +10:00
committed by GitHub
parent f94dfc9adf
commit 4b698c7f41
7 changed files with 132 additions and 16 deletions

12
types/api/groups.d.ts vendored
View File

@@ -22,19 +22,9 @@ type GroupTeam = {
}
type GroupChannel = {
id?: string;
channel_id: string;
channel_display_name: string;
channel_type: string;
team_id: string;
team_display_name: string;
team_type: string;
group_id: string;
auto_add: boolean;
member_count?: number;
timezone_count?: number;
create_at: number;
delete_at: number;
update_at: number;
}
type GroupMembership = {

View File

@@ -222,6 +222,11 @@ export type HandleGroupArgs = PrepareOnly & {
groups?: Group[];
};
export type HandleGroupChannelsForChannelArgs = PrepareOnly & {
channelId: string;
groups?: Group[];
}
export type HandleGroupMembershipForMemberArgs = PrepareOnly & {
userId: string;
groups?: Group[];