Skip to content

chore: Salesforce - optimize getContact method [CAL-4940] #42036

chore: Salesforce - optimize getContact method [CAL-4940]

chore: Salesforce - optimize getContact method [CAL-4940] #42036

Triggered via pull request December 20, 2024 07:34
@joeauyeungjoeauyeung
synchronize #18289
Status Failure
Total duration 6m 26s
Artifacts 1

pr.yml

on: pull_request_target
Detect changes
12s
Detect changes
Check for E2E label
5s
Check for E2E label
Install dependencies  /  Yarn install & cache
1m 33s
Install dependencies / Yarn install & cache
Production builds  /  Build Web App
Production builds / Build Web App
Production builds  /  Build API v1
Production builds / Build API v1
Production builds  /  Build API v2
Production builds / Build API v2
Type check  /  check-types
2m 24s
Type check / check-types
Linters  /  lint
1m 50s
Linters / lint
Tests  /  Unit
2m 43s
Tests / Unit
Production builds  /  Build Atoms
Production builds / Build Atoms
Production builds  /  Build Docs
Production builds / Build Docs
Analyze Build  /  analyze
Analyze Build / analyze
Matrix: Tests / e2e
Waiting for pending jobs
Tests  /  E2E App Store
Tests / E2E App Store
Tests  /  E2E Embed Core
Tests / E2E Embed Core
Tests  /  E2E Embed React
Tests / E2E Embed React
Tests  /  E2E API v2
Tests / E2E API v2
Tests  /  Integration
Tests / Integration
Merge reports  /  merge-reports
Merge reports / merge-reports
required
4s
required
Publish HTML report  /  publish-report
Publish HTML report / publish-report
Fit to window
Zoom out
Zoom in

Annotations

9 errors
Linters / lint
Process completed with exit code 1.
Type check / check-types
Process completed with exit code 2.
apps/web/lib/__tests__/getTeamMemberEmailFromCrm.test.ts > getTeamMemberEmailForResponseOrContactUsingUrlQuery > should return CRM owner email when valid: apps/web/lib/getTeamMemberEmailFromCrm.ts#L38
TypeError: Cannot read properties of undefined (reading 'find') ❯ findUserByEmailWhoIsAHostOfEventType apps/web/lib/getTeamMemberEmailFromCrm.ts:38:28 ❯ getOwnerEmailFromCrm apps/web/lib/getTeamMemberEmailFromCrm.ts:125:35 ❯ getTeamMemberEmailForResponseOrContact apps/web/lib/getTeamMemberEmailFromCrm.ts:217:12 ❯ Module.getTeamMemberEmailForResponseOrContactUsingUrlQuery apps/web/lib/getTeamMemberEmailFromCrm.ts:243:10 ❯ apps/web/lib/__tests__/getTeamMemberEmailFromCrm.test.ts:216:20
apps/web/lib/__tests__/getTeamMemberEmailFromCrm.test.ts > getTeamMemberEmailForResponseOrContactUsingUrlQuery > should return null when CRM owner is not found: apps/web/lib/getTeamMemberEmailFromCrm.ts#L38
TypeError: Cannot read properties of undefined (reading 'find') ❯ findUserByEmailWhoIsAHostOfEventType apps/web/lib/getTeamMemberEmailFromCrm.ts:38:28 ❯ getOwnerEmailFromCrm apps/web/lib/getTeamMemberEmailFromCrm.ts:125:35 ❯ getTeamMemberEmailForResponseOrContact apps/web/lib/getTeamMemberEmailFromCrm.ts:217:12 ❯ Module.getTeamMemberEmailForResponseOrContactUsingUrlQuery apps/web/lib/getTeamMemberEmailFromCrm.ts:243:10 ❯ apps/web/lib/__tests__/getTeamMemberEmailFromCrm.test.ts:229:20
apps/web/lib/__tests__/getTeamMemberEmailFromCrm.test.ts > getTeamMemberEmailForResponseOrContactUsingUrlQuery > should return null when CRM owner is not part of event type: apps/web/lib/getTeamMemberEmailFromCrm.ts#L38
TypeError: Cannot read properties of undefined (reading 'find') ❯ findUserByEmailWhoIsAHostOfEventType apps/web/lib/getTeamMemberEmailFromCrm.ts:38:28 ❯ getOwnerEmailFromCrm apps/web/lib/getTeamMemberEmailFromCrm.ts:125:35 ❯ getTeamMemberEmailForResponseOrContact apps/web/lib/getTeamMemberEmailFromCrm.ts:217:12 ❯ Module.getTeamMemberEmailForResponseOrContactUsingUrlQuery apps/web/lib/getTeamMemberEmailFromCrm.ts:243:10 ❯ apps/web/lib/__tests__/getTeamMemberEmailFromCrm.test.ts:242:20
apps/web/lib/__tests__/getTeamMemberEmailFromCrm.test.ts > getTeamMemberEmailForResponseOrContactUsingUrlQuery > Booking form handler > should return teamMember email through booking form handler when cal.routingFormResponseId and cal.salesforce.xxxx=true is provided: apps/web/lib/getTeamMemberEmailFromCrm.ts#L38
TypeError: Cannot read properties of undefined (reading 'find') ❯ findUserByEmailWhoIsAHostOfEventType apps/web/lib/getTeamMemberEmailFromCrm.ts:38:28 ❯ getTeamMemberEmailUsingRoutingFormHandler apps/web/lib/getTeamMemberEmailFromCrm.ts:166:27 ❯ getTeamMemberEmailForResponseOrContact apps/web/lib/getTeamMemberEmailFromCrm.ts:205:53 ❯ Module.getTeamMemberEmailForResponseOrContactUsingUrlQuery apps/web/lib/getTeamMemberEmailFromCrm.ts:243:10 ❯ apps/web/lib/__tests__/getTeamMemberEmailFromCrm.test.ts:279:22
apps/web/lib/__tests__/getTeamMemberEmailFromCrm.test.ts > getTeamMemberEmailForResponseOrContactUsingUrlQuery > Booking form handler > should return null when when cal.routingFormResponseId and cal.salesforce.xxxx=true is provided but the returned email isn't an event member: apps/web/lib/getTeamMemberEmailFromCrm.ts#L38
TypeError: Cannot read properties of undefined (reading 'find') ❯ findUserByEmailWhoIsAHostOfEventType apps/web/lib/getTeamMemberEmailFromCrm.ts:38:28 ❯ getTeamMemberEmailUsingRoutingFormHandler apps/web/lib/getTeamMemberEmailFromCrm.ts:166:27 ❯ getTeamMemberEmailForResponseOrContact apps/web/lib/getTeamMemberEmailFromCrm.ts:205:53 ❯ Module.getTeamMemberEmailForResponseOrContactUsingUrlQuery apps/web/lib/getTeamMemberEmailFromCrm.ts:243:10 ❯ apps/web/lib/__tests__/getTeamMemberEmailFromCrm.test.ts:361:22
Tests / Unit
Process completed with exit code 1.
required
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
lint-results
494 KB