-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MM-53433] Use JobID to differentiate bot initiated sessions #462
Conversation
webapp/src/types/types.ts
Outdated
export type CallsClientJoinData = { | ||
channelID: string; | ||
title?: string; | ||
threadID?: string; | ||
|
||
// Calls bot only | ||
// contextID is the id used to track the context of the bot connection to | ||
// a call (e.g. recording, transcription). | ||
contextID?: string; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could fit in https://github.com/mattermost/calls-common since it's part of the public API. For this PR though it's practically unnecessary.
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #462 +/- ##
========================================
- Coverage 5.62% 5.57% -0.05%
========================================
Files 21 21
Lines 4178 4213 +35
========================================
Hits 235 235
- Misses 3926 3961 +35
Partials 17 17
☔ View full report in Codecov by Sentry. |
Will have to update the calls-recorder image we use in the Gitlab pipeline to make e2e pass. |
@cpoile Heads up, I applied the changes as suggested in mattermost/rtcd#115 (comment) |
Summary
With the introduction of new job types (e.g. transcriptions) we need a way to properly identify bot initiated sessions. So far we assumed all bot connections were recording related but that won't always be the case going forward. The idea is to pass a
ContextID
JobID
parameter that univocally identifies a resource/job type.Related PR
mattermost/calls-recorder#38
Ticket Link
https://mattermost.atlassian.net/browse/MM-53433