Merge pull request #19873 from gustavotrott/graphql-meeting-missing-fields

Graphql: Add missing fields to lockSettings and endWhenNoModerator
This commit is contained in:
Gustavo Trott 2024-03-21 13:23:03 -03:00 committed by GitHub
commit 46afd7583a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 26 additions and 10 deletions

View File

@ -25,6 +25,8 @@ case class MeetingDbModel(
bannerColor: Option[String],
createdTime: Long,
durationInSeconds: Int,
endWhenNoModerator: Boolean,
endWhenNoModeratorDelayInMinutes: Int,
endedAt: Option[java.sql.Timestamp],
endedReasonCode: Option[String],
endedBy: Option[String],
@ -49,6 +51,8 @@ class MeetingDbTableDef(tag: Tag) extends Table[MeetingDbModel](tag, None, "meet
bannerColor,
createdTime,
durationInSeconds,
endWhenNoModerator,
endWhenNoModeratorDelayInMinutes,
endedAt,
endedReasonCode,
endedBy
@ -70,6 +74,8 @@ class MeetingDbTableDef(tag: Tag) extends Table[MeetingDbModel](tag, None, "meet
val bannerColor = column[Option[String]]("bannerColor")
val createdTime = column[Long]("createdTime")
val durationInSeconds = column[Int]("durationInSeconds")
val endWhenNoModerator = column[Boolean]("endWhenNoModerator")
val endWhenNoModeratorDelayInMinutes = column[Int]("endWhenNoModeratorDelayInMinutes")
val endedAt = column[Option[java.sql.Timestamp]]("endedAt")
val endedReasonCode = column[Option[String]]("endedReasonCode")
val endedBy = column[Option[String]]("endedBy")
@ -106,6 +112,8 @@ object MeetingDAO {
},
createdTime = meetingProps.durationProps.createdTime,
durationInSeconds = meetingProps.durationProps.duration * 60,
endWhenNoModerator = meetingProps.durationProps.endWhenNoModerator,
endWhenNoModeratorDelayInMinutes = meetingProps.durationProps.endWhenNoModeratorDelayInMinutes,
endedAt = None,
endedReasonCode = None,
endedBy = None

View File

@ -26,6 +26,8 @@ create table "meeting" (
"bannerColor" varchar(50),
"createdTime" bigint,
"durationInSeconds" integer,
"endWhenNoModerator" boolean,
"endWhenNoModeratorDelayInMinutes" integer,
"endedAt" timestamp with time zone,
"endedReasonCode" varchar(200),
"endedBy" varchar(50)
@ -126,16 +128,16 @@ create view "v_meeting_voiceSettings" as select * from meeting_voice;
create table "meeting_usersPolicies" (
"meetingId" varchar(100) primary key references "meeting"("meetingId") ON DELETE CASCADE,
"maxUsers" integer,
"maxUsers" integer,
"maxUserConcurrentAccesses" integer,
"webcamsOnlyForModerator" boolean,
"userCameraCap" integer,
"guestPolicy" varchar(100),
"guestLobbyMessage" text,
"meetingLayout" varchar(100),
"allowModsToUnmuteUsers" boolean,
"allowModsToEjectCameras" boolean,
"authenticatedGuest" boolean
"webcamsOnlyForModerator" boolean,
"userCameraCap" integer,
"guestPolicy" varchar(100),
"guestLobbyMessage" text,
"meetingLayout" varchar(100),
"allowModsToUnmuteUsers" boolean,
"allowModsToEjectCameras" boolean,
"authenticatedGuest" boolean
);
create index "idx_meeting_usersPolicies_meetingId" on "meeting_usersPolicies"("meetingId");
@ -196,6 +198,8 @@ SELECT
mls."hideUserList",
mls."hideViewersCursor",
mls."hideViewersAnnotation",
mls."lockOnJoin",
mls."lockOnJoinConfigurable",
mup."webcamsOnlyForModerator",
CASE WHEN
mls."disableCam" IS TRUE THEN TRUE

View File

@ -163,6 +163,8 @@ select_permissions:
- customLogoUrl
- disabledFeatures
- durationInSeconds
- endWhenNoModerator
- endWhenNoModeratorDelayInMinutes
- ended
- endedAt
- endedBy

View File

@ -17,8 +17,10 @@ select_permissions:
- disablePublicChat
- hasActiveLockSetting
- hideUserList
- hideViewersCursor
- hideViewersAnnotation
- hideViewersCursor
- lockOnJoin
- lockOnJoinConfigurable
- webcamsOnlyForModerator
filter:
meetingId: