Skip to content
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

test: PDF #30661

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci-test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ jobs:
- name: Show server logs if E2E test failed
if: failure()
run: docker compose -f docker-compose-ci.yml logs rocketchat

- name: Show PDF transcript service logs if E2E test failed
if: failure()
run: docker compose -f docker-compose-ci.yml logs omnichannel-transcript-service

- name: Extract e2e:ee:coverage
if: inputs.type == 'ui' && inputs.release == 'ee'
Expand Down
3 changes: 3 additions & 0 deletions ee/packages/omnichannel-services/src/OmnichannelTranscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export class OmnichannelTranscript extends ServiceClass implements IOmnichannelT
this.log = new loggerClass('OmnichannelTranscript');

this.onEvent('license.module', ({ module, valid }) => {
console.log('OmnichannelTranscript', module, valid);
if (module === 'scalability') {
this.shouldWork = valid;
}
Expand All @@ -79,6 +80,7 @@ export class OmnichannelTranscript extends ServiceClass implements IOmnichannelT
async started(): Promise<void> {
try {
this.shouldWork = await licenseService.hasModule('scalability');
console.log('OmnichannelTranscript.enabled', this.shouldWork);
} catch (e: unknown) {
// ignore
}
Expand Down Expand Up @@ -109,6 +111,7 @@ export class OmnichannelTranscript extends ServiceClass implements IOmnichannelT
}

async requestTranscript({ details }: { details: WorkDetails }): Promise<void> {
console.log('OmnichannelTranscript.requestTranscript', details, this.shouldWork);
if (!this.shouldWork) {
this.log.info(`Not requesting transcript for room ${details.rid} because scalability module is not enabled`);
return;
Expand Down
Loading