mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
no forced whereby recording indicator
This commit is contained in:
@@ -112,7 +112,7 @@ def get_transcript(func):
|
|||||||
transcript_id = kwargs.pop("transcript_id")
|
transcript_id = kwargs.pop("transcript_id")
|
||||||
transcript = await transcripts_controller.get_by_id(transcript_id=transcript_id)
|
transcript = await transcripts_controller.get_by_id(transcript_id=transcript_id)
|
||||||
if not transcript:
|
if not transcript:
|
||||||
raise Exception("Transcript {transcript_id} not found")
|
raise Exception(f"Transcript {transcript_id} not found")
|
||||||
|
|
||||||
# Enhanced logger with Celery task context
|
# Enhanced logger with Celery task context
|
||||||
tlogger = logger.bind(transcript_id=transcript.id)
|
tlogger = logger.bind(transcript_id=transcript.id)
|
||||||
|
|||||||
@@ -7,6 +7,12 @@ from reflector.settings import settings
|
|||||||
logger = structlog.get_logger(__name__)
|
logger = structlog.get_logger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@shared_task(name="celery.ping")
|
||||||
|
def celery_ping():
|
||||||
|
"""Compatibility task for Celery 5.x - celery.ping was removed but monitoring tools still call it."""
|
||||||
|
return "pong"
|
||||||
|
|
||||||
|
|
||||||
@shared_task
|
@shared_task
|
||||||
def healthcheck_ping():
|
def healthcheck_ping():
|
||||||
url = settings.HEALTHCHECK_URL
|
url = settings.HEALTHCHECK_URL
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import { useAuth } from "../../lib/AuthProvider";
|
|||||||
import { getWherebyUrl, useWhereby } from "../../lib/wherebyClient";
|
import { getWherebyUrl, useWhereby } from "../../lib/wherebyClient";
|
||||||
import {
|
import {
|
||||||
ConsentDialogButton as BaseConsentDialogButton,
|
ConsentDialogButton as BaseConsentDialogButton,
|
||||||
RecordingIndicator,
|
|
||||||
useConsentDialog,
|
useConsentDialog,
|
||||||
} from "../../lib/consent";
|
} from "../../lib/consent";
|
||||||
import { assertMeetingId, MeetingId } from "../../lib/types";
|
import { assertMeetingId, MeetingId } from "../../lib/types";
|
||||||
@@ -71,7 +70,7 @@ export default function WherebyRoom({ meeting, room }: WherebyRoomProps) {
|
|||||||
const wherebyRoomUrl = getWherebyUrl(meeting);
|
const wherebyRoomUrl = getWherebyUrl(meeting);
|
||||||
const meetingId = meeting.id;
|
const meetingId = meeting.id;
|
||||||
|
|
||||||
const { showRecordingIndicator, showConsentButton } = useConsentDialog({
|
const { showConsentButton } = useConsentDialog({
|
||||||
meetingId: assertMeetingId(meetingId),
|
meetingId: assertMeetingId(meetingId),
|
||||||
recordingType: meeting.recording_type,
|
recordingType: meeting.recording_type,
|
||||||
skipConsent: room.skip_consent,
|
skipConsent: room.skip_consent,
|
||||||
@@ -105,7 +104,6 @@ export default function WherebyRoom({ meeting, room }: WherebyRoomProps) {
|
|||||||
room={wherebyRoomUrl}
|
room={wherebyRoomUrl}
|
||||||
style={{ width: "100vw", height: "100vh" }}
|
style={{ width: "100vw", height: "100vh" }}
|
||||||
/>
|
/>
|
||||||
{showRecordingIndicator && <RecordingIndicator />}
|
|
||||||
{showConsentButton && (
|
{showConsentButton && (
|
||||||
<WherebyConsentDialogButton
|
<WherebyConsentDialogButton
|
||||||
meetingId={assertMeetingId(meetingId)}
|
meetingId={assertMeetingId(meetingId)}
|
||||||
|
|||||||
Reference in New Issue
Block a user