Skip to content

Commit

Permalink
Merge pull request #19856 from gustavotrott/graphql-meeting-metadata
Browse files Browse the repository at this point in the history
Graphql: Introduces meeting_metadata
  • Loading branch information
gustavotrott committed Mar 20, 2024
2 parents ac4899e + 304fc32 commit f2c48a3
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 2 deletions.
14 changes: 14 additions & 0 deletions bbb-graphql-server/bbb_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,20 @@ SELECT "meeting_usersPolicies"."meetingId",
FROM "meeting_usersPolicies"
JOIN "meeting" using("meetingId");

create table "meeting_metadata" (
"meetingId" varchar(100) references "meeting"("meetingId") ON DELETE CASCADE,
"name" varchar(100),
"value" varchar(100),
CONSTRAINT "meeting_metadata_pkey" PRIMARY KEY ("meetingId","name")
);
create index "idx_meeting_metadata_meetingId" on "meeting_metadata"("meetingId");

CREATE OR REPLACE VIEW "v_meeting_metadata" AS
SELECT "meeting_metadata"."meetingId",
"meeting_metadata"."name",
"meeting_metadata"."value"
FROM "meeting_metadata";

create table "meeting_lockSettings" (
"meetingId" varchar(100) primary key references "meeting"("meetingId") ON DELETE CASCADE,
"disableCam" boolean,
Expand Down
1 change: 1 addition & 0 deletions bbb-graphql-server/metadata/actions.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -562,3 +562,4 @@ input GuestUserApprovalStatus {
guest: String!
status: String!
}

1 change: 1 addition & 0 deletions bbb-graphql-server/metadata/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -504,4 +504,5 @@ custom_types:
input_objects:
- name: BreakoutRoom
- name: GuestUserApprovalStatus
objects: []
scalars: []
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@ array_relationships:
remote_table:
name: v_meeting_group
schema: public
- name: metadata
using:
manual_configuration:
column_mapping:
meetingId: meetingId
insertion_order: null
remote_table:
name: v_meeting_metadata
schema: public
- name: polls
using:
manual_configuration:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ select_permissions:
filter:
meetingId:
_eq: X-Hasura-MeetingId
comment: ""
comment: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
table:
name: v_meeting_metadata
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_name: meeting_metadata
custom_root_fields: {}
select_permissions:
- role: bbb_client
permission:
columns:
- name
- value
filter:
meetingId:
_eq: X-Hasura-MeetingId
comment: ""
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,4 @@ update_permissions:
_eq: X-Hasura-MeetingId
- userId:
_eq: X-Hasura-UserId
check: null
check: null
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- "!include public_v_meeting_group.yaml"
- "!include public_v_meeting_learningDashboard.yaml"
- "!include public_v_meeting_lockSettings.yaml"
- "!include public_v_meeting_metadata.yaml"
- "!include public_v_meeting_recording.yaml"
- "!include public_v_meeting_recordingPolicies.yaml"
- "!include public_v_meeting_usersPolicies.yaml"
Expand Down

0 comments on commit f2c48a3

Please sign in to comment.