From 8dcd8aa9f86ccf4c969c2ee658982b4e7c437170 Mon Sep 17 00:00:00 2001 From: Daniel Silva Date: Tue, 5 Nov 2024 14:26:59 -0300 Subject: [PATCH 1/4] adding applause email to const --- src/CONST.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CONST.ts b/src/CONST.ts index ddf9ebad5b66..f976bed34e8e 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -1612,6 +1612,7 @@ const CONST = { CONTRIBUTORS: 'contributors@expensify.com', FIRST_RESPONDER: 'firstresponders@expensify.com', GUIDES_DOMAIN: 'team.expensify.com', + QA_DOMAIN: '@applause.expensifail.com', HELP: 'help@expensify.com', INTEGRATION_TESTING_CREDS: 'integrationtestingcreds@expensify.com', NOTIFICATIONS: 'notifications@expensify.com', From 60cd0ee2b83605794c77adb4b0f11695add68781 Mon Sep 17 00:00:00 2001 From: Daniel Silva Date: Tue, 5 Nov 2024 14:27:23 -0300 Subject: [PATCH 2/4] adding logic to fullstory web --- src/libs/Fullstory/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/Fullstory/index.ts b/src/libs/Fullstory/index.ts index df65af358a55..0aa0b2094591 100644 --- a/src/libs/Fullstory/index.ts +++ b/src/libs/Fullstory/index.ts @@ -57,7 +57,8 @@ const FS = { } try { Environment.getEnvironment().then((envName: string) => { - if (CONST.ENVIRONMENT.PRODUCTION !== envName) { + const isTestEmail = value.email !== undefined && value.email.startsWith('fullstory') && value.email.endsWith(CONST.EMAIL.QA_DOMAIN); + if (CONST.ENVIRONMENT.PRODUCTION !== envName && !isTestEmail) { return; } FS.onReady().then(() => { From 003b382120610ff87f04994d70ff69b7096f1d5c Mon Sep 17 00:00:00 2001 From: Daniel Silva Date: Tue, 5 Nov 2024 14:28:15 -0300 Subject: [PATCH 3/4] removing @ from domain --- src/CONST.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CONST.ts b/src/CONST.ts index f976bed34e8e..8a1e9cfbf67c 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -1612,7 +1612,7 @@ const CONST = { CONTRIBUTORS: 'contributors@expensify.com', FIRST_RESPONDER: 'firstresponders@expensify.com', GUIDES_DOMAIN: 'team.expensify.com', - QA_DOMAIN: '@applause.expensifail.com', + QA_DOMAIN: 'applause.expensifail.com', HELP: 'help@expensify.com', INTEGRATION_TESTING_CREDS: 'integrationtestingcreds@expensify.com', NOTIFICATIONS: 'notifications@expensify.com', From ce7179b93a161137d1679897c2856a98d07a300a Mon Sep 17 00:00:00 2001 From: Daniel Silva Date: Tue, 5 Nov 2024 14:28:25 -0300 Subject: [PATCH 4/4] adding logic to native --- src/libs/Fullstory/index.native.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/Fullstory/index.native.ts b/src/libs/Fullstory/index.native.ts index 8d97b8d4307e..30a5a77ae9f3 100644 --- a/src/libs/Fullstory/index.native.ts +++ b/src/libs/Fullstory/index.native.ts @@ -40,7 +40,8 @@ const FS = { // after the init function since this function is also called on updates for // UserMetadata onyx key. Environment.getEnvironment().then((envName: string) => { - if (envName !== CONST.ENVIRONMENT.PRODUCTION) { + const isTestEmail = value.email !== undefined && value.email.startsWith('fullstory') && value.email.endsWith(CONST.EMAIL.QA_DOMAIN); + if (CONST.ENVIRONMENT.PRODUCTION !== envName && !isTestEmail) { return; } FullStory.restart();