[Gekidou] groups (#5593)

* Rename groups in channel/team to group channel/team

* Redefine groups schema

* Groups action and operator

* Add group at mentions

* fix uni test

* Update types/database/models/servers/group.d.ts

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
This commit is contained in:
Elias Nahum
2021-08-05 11:03:46 -04:00
committed by GitHub
parent 0ef1dd44ea
commit 65c3e05fd8
33 changed files with 386 additions and 209 deletions

View File

@@ -15,8 +15,8 @@ const {
DRAFT,
FILE,
GROUP,
GROUPS_IN_CHANNEL,
GROUPS_IN_TEAM,
GROUPS_CHANNEL,
GROUPS_TEAM,
GROUP_MEMBERSHIP,
MY_CHANNEL,
MY_CHANNEL_SETTINGS,
@@ -248,16 +248,20 @@ describe('*** Test schema for SERVER database ***', () => {
[GROUP]: {
name: GROUP,
columns: {
allow_reference: {name: 'allow_reference', type: 'boolean'},
delete_at: {name: 'delete_at', type: 'number'},
display_name: {name: 'display_name', type: 'string'},
name: {name: 'name', type: 'string'},
},
columnArray: [
{name: 'allow_reference', type: 'boolean'},
{name: 'delete_at', type: 'number'},
{name: 'display_name', type: 'string'},
{name: 'name', type: 'string'},
],
},
[GROUPS_IN_CHANNEL]: {
name: GROUPS_IN_CHANNEL,
[GROUPS_CHANNEL]: {
name: GROUPS_CHANNEL,
columns: {
channel_id: {name: 'channel_id', type: 'string', isIndexed: true},
group_id: {name: 'group_id', type: 'string', isIndexed: true},
@@ -271,8 +275,8 @@ describe('*** Test schema for SERVER database ***', () => {
{name: 'timezone_count', type: 'number'},
],
},
[GROUPS_IN_TEAM]: {
name: GROUPS_IN_TEAM,
[GROUPS_TEAM]: {
name: GROUPS_TEAM,
columns: {
group_id: {name: 'group_id', type: 'string', isIndexed: true},
team_id: {name: 'team_id', type: 'string', isIndexed: true},