Merge pull request #19995 from gustavotrott/graphql-provide-active-typed-captions

graphql-server: Add type `caption_typed_activeLocales`
This commit is contained in:
Gustavo Trott 2024-04-11 15:48:30 -03:00 committed by GitHub
commit a42b404543
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 35 additions and 0 deletions

View File

@ -1693,6 +1693,13 @@ SELECT *
FROM "caption"
WHERE "createdAt" > current_timestamp - INTERVAL '5 seconds';
CREATE OR REPLACE VIEW "v_caption_typed_activeLocales" AS
select distinct "meetingId", "lang", "userId"
from "caption"
where "captionType" = 'TYPED';
create index "idx_caption_typed_activeLocales" on caption("meetingId","lang","userId") where "captionType" = 'TYPED';
------------------------------------
----

View File

@ -0,0 +1,27 @@
table:
name: v_caption_typed_activeLocales
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_name: caption_typed_activeLocales
custom_root_fields: {}
object_relationships:
- name: userOwner
using:
manual_configuration:
column_mapping:
userId: userId
insertion_order: null
remote_table:
name: v_user_ref
schema: public
select_permissions:
- role: bbb_client
permission:
columns:
- lang
filter:
meetingId:
_eq: X-Hasura-MeetingId
comment: ""

View File

@ -3,6 +3,7 @@
- "!include public_v_breakoutRoom_participant.yaml"
- "!include public_v_breakoutRoom_user.yaml"
- "!include public_v_caption.yaml"
- "!include public_v_caption_typed_activeLocales.yaml"
- "!include public_v_chat.yaml"
- "!include public_v_chat_message_private.yaml"
- "!include public_v_chat_message_public.yaml"