From 4cf70bb4fc1f64424b2ff0884f57cd9be6634751 Mon Sep 17 00:00:00 2001 From: Minja Slavkovic Date: Tue, 9 Apr 2024 11:35:56 +0100 Subject: [PATCH 1/3] update references to support@algolia.com to new ticket link --- LICENSE.md | 2 +- .../src/__tests__/integration/with-hosts-cache-drivers.test.ts | 2 +- packages/transporter/src/__tests__/unit/stackTrace.test.ts | 2 +- packages/transporter/src/__tests__/unit/timeouts.test.ts | 2 +- packages/transporter/src/errors/createRetryError.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index a67ad2e5a..1d491c2cc 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) Algolia +Copyright (c) Algolia Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/transporter/src/__tests__/integration/with-hosts-cache-drivers.test.ts b/packages/transporter/src/__tests__/integration/with-hosts-cache-drivers.test.ts index 8b56671f1..e99ea8bee 100644 --- a/packages/transporter/src/__tests__/integration/with-hosts-cache-drivers.test.ts +++ b/packages/transporter/src/__tests__/integration/with-hosts-cache-drivers.test.ts @@ -63,7 +63,7 @@ describe('hosts cache integration with cache drivers', () => { const message = // eslint-disable-next-line max-len - 'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.'; + 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the [Algolia Support team](https://support.algolia.com/hc/en-us/requests/new).'; await expect(transporter.read(transporterRequest)).rejects.toMatchObject({ message, diff --git a/packages/transporter/src/__tests__/unit/stackTrace.test.ts b/packages/transporter/src/__tests__/unit/stackTrace.test.ts index 0254a00a1..6edfde76f 100644 --- a/packages/transporter/src/__tests__/unit/stackTrace.test.ts +++ b/packages/transporter/src/__tests__/unit/stackTrace.test.ts @@ -90,7 +90,7 @@ describe('transporter stack trace serialization', () => { await expect(transporter.read(transporterRequest)).rejects.toEqual({ name: 'RetryError', message: - 'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.', + 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the [Algolia Support team](https://support.algolia.com/hc/en-us/requests/new).', transporterStackTrace, }); diff --git a/packages/transporter/src/__tests__/unit/timeouts.test.ts b/packages/transporter/src/__tests__/unit/timeouts.test.ts index ee7454bc5..ff840cfb5 100644 --- a/packages/transporter/src/__tests__/unit/timeouts.test.ts +++ b/packages/transporter/src/__tests__/unit/timeouts.test.ts @@ -86,7 +86,7 @@ describe('the timeouts selection', () => { await expect(transporter.read(transporterRequest)).rejects.toMatchObject({ name: 'RetryError', message: - 'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.', + 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the [Algolia Support team](https://support.algolia.com/hc/en-us/requests/new).', }); assertRequest({ diff --git a/packages/transporter/src/errors/createRetryError.ts b/packages/transporter/src/errors/createRetryError.ts index b317aaa0e..4be7c7c69 100644 --- a/packages/transporter/src/errors/createRetryError.ts +++ b/packages/transporter/src/errors/createRetryError.ts @@ -4,7 +4,7 @@ export function createRetryError(transporterStackTrace: readonly StackFrame[]): return { name: 'RetryError', message: - 'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.', + 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the [Algolia Support team](https://support.algolia.com/hc/en-us/requests/new).', transporterStackTrace, }; } From 56ab2ae8dc488ea0ec80dc5499e4a8be002c054d Mon Sep 17 00:00:00 2001 From: Minja Slavkovic Date: Tue, 9 Apr 2024 11:43:55 +0100 Subject: [PATCH 2/3] additonal update references to support@algolia.com to new ticket link --- packages/transporter/src/__tests__/unit/timeouts.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/transporter/src/__tests__/unit/timeouts.test.ts b/packages/transporter/src/__tests__/unit/timeouts.test.ts index ff840cfb5..f15bbcc4e 100644 --- a/packages/transporter/src/__tests__/unit/timeouts.test.ts +++ b/packages/transporter/src/__tests__/unit/timeouts.test.ts @@ -111,7 +111,7 @@ describe('the timeouts selection', () => { await expect(transporter.read(transporterRequest)).rejects.toMatchObject({ name: 'RetryError', message: - 'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.', + 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the [Algolia Support team](https://support.algolia.com/hc/en-us/requests/new).', }); assertRequest({ @@ -142,7 +142,7 @@ describe('the timeouts selection', () => { await expect(transporter.read(transporterRequest)).rejects.toMatchObject({ name: 'RetryError', message: - 'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.', + 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the [Algolia Support team](https://support.algolia.com/hc/en-us/requests/new).', }); assertRequest({ From 6673d48ec5d552f05b3b6ada708daf9c216f90a3 Mon Sep 17 00:00:00 2001 From: Minja Slavkovic Date: Wed, 24 Apr 2024 14:44:21 +0100 Subject: [PATCH 3/3] updating the algolia support link --- .../__tests__/integration/with-hosts-cache-drivers.test.ts | 2 +- packages/transporter/src/__tests__/unit/stackTrace.test.ts | 2 +- packages/transporter/src/__tests__/unit/timeouts.test.ts | 6 +++--- packages/transporter/src/errors/createRetryError.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/transporter/src/__tests__/integration/with-hosts-cache-drivers.test.ts b/packages/transporter/src/__tests__/integration/with-hosts-cache-drivers.test.ts index e99ea8bee..e25bcd01b 100644 --- a/packages/transporter/src/__tests__/integration/with-hosts-cache-drivers.test.ts +++ b/packages/transporter/src/__tests__/integration/with-hosts-cache-drivers.test.ts @@ -63,7 +63,7 @@ describe('hosts cache integration with cache drivers', () => { const message = // eslint-disable-next-line max-len - 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the [Algolia Support team](https://support.algolia.com/hc/en-us/requests/new).'; + 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .'; await expect(transporter.read(transporterRequest)).rejects.toMatchObject({ message, diff --git a/packages/transporter/src/__tests__/unit/stackTrace.test.ts b/packages/transporter/src/__tests__/unit/stackTrace.test.ts index 6edfde76f..f49739317 100644 --- a/packages/transporter/src/__tests__/unit/stackTrace.test.ts +++ b/packages/transporter/src/__tests__/unit/stackTrace.test.ts @@ -90,7 +90,7 @@ describe('transporter stack trace serialization', () => { await expect(transporter.read(transporterRequest)).rejects.toEqual({ name: 'RetryError', message: - 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the [Algolia Support team](https://support.algolia.com/hc/en-us/requests/new).', + 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .', transporterStackTrace, }); diff --git a/packages/transporter/src/__tests__/unit/timeouts.test.ts b/packages/transporter/src/__tests__/unit/timeouts.test.ts index f15bbcc4e..17cecdcf9 100644 --- a/packages/transporter/src/__tests__/unit/timeouts.test.ts +++ b/packages/transporter/src/__tests__/unit/timeouts.test.ts @@ -86,7 +86,7 @@ describe('the timeouts selection', () => { await expect(transporter.read(transporterRequest)).rejects.toMatchObject({ name: 'RetryError', message: - 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the [Algolia Support team](https://support.algolia.com/hc/en-us/requests/new).', + 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .', }); assertRequest({ @@ -111,7 +111,7 @@ describe('the timeouts selection', () => { await expect(transporter.read(transporterRequest)).rejects.toMatchObject({ name: 'RetryError', message: - 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the [Algolia Support team](https://support.algolia.com/hc/en-us/requests/new).', + 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .', }); assertRequest({ @@ -142,7 +142,7 @@ describe('the timeouts selection', () => { await expect(transporter.read(transporterRequest)).rejects.toMatchObject({ name: 'RetryError', message: - 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the [Algolia Support team](https://support.algolia.com/hc/en-us/requests/new).', + 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .', }); assertRequest({ diff --git a/packages/transporter/src/errors/createRetryError.ts b/packages/transporter/src/errors/createRetryError.ts index 4be7c7c69..7ec7cdc98 100644 --- a/packages/transporter/src/errors/createRetryError.ts +++ b/packages/transporter/src/errors/createRetryError.ts @@ -4,7 +4,7 @@ export function createRetryError(transporterStackTrace: readonly StackFrame[]): return { name: 'RetryError', message: - 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the [Algolia Support team](https://support.algolia.com/hc/en-us/requests/new).', + 'Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .', transporterStackTrace, }; }