-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MM-53432] Calls transcriptions (#549)
* handleBotGetProfileForSession * handleBotPostTranscriptions * Refactor job api, part I * Updates * Job status updates * Couple transcribing job with recording * Update offloader * Updates * Remove event * Bump Go version * Add some docs * Add e2e test for call transcriptions * Use leaner API request context * Verify transcription content * Bump calls-common * Fix error message * Rename param * Init transcriber runner only if enabled * Allow status failure report even after job has ended * Add public.JobInfo * Bump public module * Update recorder and transcriber deps * Update recording ended banner text * Add processing message * Update job info types * Fix transcription file access issues * Cache current date to avoid refetching * Update comment * [MM-53432] Improvements (#565) * Add Dismiss button to recording job post-processing message * Implement more human friendly filename for recordings and transcriptions * Support setting transcriber threads * Improvements * Include transcription post ID in metadata * Add config option to select model size (#566) * Update transcribing job max duration * Update strings * Update deps * Fix e2e imports * Use underscore to replace spaces in filenames
- Loading branch information
1 parent
ff80fe2
commit 53ab625
Showing
53 changed files
with
1,761 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import {expect, request} from '@playwright/test'; | ||
import {APIRequestContext} from 'playwright-core'; | ||
|
||
import {adminState, baseURL, pluginID} from './constants'; | ||
import {headers, newUserPage} from './utils'; | ||
|
||
type CallsConfig = { | ||
enabletranscriptions: boolean; | ||
}; | ||
|
||
export const apiPatchConfig = async (cfg: CallsConfig) => { | ||
const adminContext = await request.newContext({ | ||
baseURL, | ||
storageState: adminState.storageStatePath, | ||
}); | ||
const serverConfig = await (await adminContext.get(`${baseURL}/api/v4/config`)).json(); | ||
|
||
serverConfig.PluginSettings.Plugins = { | ||
...serverConfig.PluginSettings.Plugins, | ||
[`${pluginID}`]: { | ||
...serverConfig.PluginSettings.Plugins[pluginID], | ||
...cfg, | ||
}, | ||
}; | ||
|
||
const resp = await adminContext.put(`${baseURL}/api/v4/config`, { | ||
headers: {'X-Requested-With': 'XMLHttpRequest'}, | ||
data: serverConfig, | ||
}); | ||
await expect(resp.status()).toEqual(200); | ||
}; | ||
|
||
export const apiEnableTranscriptions = async () => { | ||
return apiPatchConfig({ | ||
enabletranscriptions: true, | ||
}); | ||
}; | ||
|
||
export const apiDisableTranscriptions = async () => { | ||
return apiPatchConfig({ | ||
enabletranscriptions: false, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.