From 32b2941c9d7c0f52b4553b31598ee771f4a4cd61 Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Wed, 11 Sep 2024 22:33:00 +0600 Subject: [PATCH 01/10] [FSSDK-10438] test --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d827a39..8528f1e 100644 --- a/README.md +++ b/README.md @@ -582,3 +582,5 @@ First-party code subject to copyrights held by Optimizely, Inc. and its contribu - Ruby - https://github.com/optimizely/ruby-sdk - Swift - https://github.com/optimizely/swift-sdk + +Test \ No newline at end of file From 86518bf056829c7c5ce1a1d3c0518b81bb833c06 Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Fri, 13 Sep 2024 21:49:27 +0600 Subject: [PATCH 02/10] [FSSDK-10438] fixing indentation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8528f1e..6095221 100644 --- a/README.md +++ b/README.md @@ -583,4 +583,4 @@ First-party code subject to copyrights held by Optimizely, Inc. and its contribu - Swift - https://github.com/optimizely/swift-sdk -Test \ No newline at end of file +Test 2 \ No newline at end of file From 7f56e2fc8a127a958db7114f045864cb0d2eddd9 Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Tue, 17 Sep 2024 21:26:30 +0600 Subject: [PATCH 03/10] Testing integration pipeline & log --- .github/workflows/integration_test.yml | 2 +- src/hooks.spec.tsx | 2 +- src/hooks.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 1def6cd..c63e67a 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -46,4 +46,4 @@ jobs: EVENT_MESSAGE: ${{ github.event.message }} HOME: 'home/runner' run: | - home/runner/travisci-tools/trigger-script-with-status-update.sh main + home/runner/travisci-tools/trigger-script-with-status-update.sh junaed/fssdk-10438-fix-integration-pipeline diff --git a/src/hooks.spec.tsx b/src/hooks.spec.tsx index d43042f..61eb8b1 100644 --- a/src/hooks.spec.tsx +++ b/src/hooks.spec.tsx @@ -678,7 +678,7 @@ describe('hooks', () => { }); }); - describe('useDecision', () => { + describe.skip('useDecision', () => { it('should handle no client promise response', async () => { getOnReadyPromise = () => new Promise((resolve) => { diff --git a/src/hooks.ts b/src/hooks.ts index a84b266..90fd117 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -547,8 +547,8 @@ export const useDecision: UseDecision = (flagKey, options = {}, overrides = {}) if (!optimizely) { hooksLogger.error(`Unable to use decision ${flagKey}. ${optimizelyPropError}`); } - - return [state.decision, state.clientReady, state.didTimeout]; + return [defaultDecision, false, false]; + // return [state.decision, state.clientReady, state.didTimeout]; }; export const useTrackEvent: UseTrackEvent = () => { From a467c646f82185f7ac2807861564b04d92de1fa3 Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Tue, 17 Sep 2024 22:06:08 +0600 Subject: [PATCH 04/10] Testing integration pipeline --- .github/workflows/integration_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index c63e67a..6d2aac2 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -46,4 +46,4 @@ jobs: EVENT_MESSAGE: ${{ github.event.message }} HOME: 'home/runner' run: | - home/runner/travisci-tools/trigger-script-with-status-update.sh junaed/fssdk-10438-fix-integration-pipeline + home/runner/travisci-tools/trigger-script-with-status-update.sh From d1efe5b3e8afd3581b29dc82a958d598e6492d13 Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:47:09 +0600 Subject: [PATCH 05/10] Testing integration pipeline 2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6095221..a7ff73a 100644 --- a/README.md +++ b/README.md @@ -583,4 +583,4 @@ First-party code subject to copyrights held by Optimizely, Inc. and its contribu - Swift - https://github.com/optimizely/swift-sdk -Test 2 \ No newline at end of file +Test 3 \ No newline at end of file From 26b6ef27de4ce0ee8389b973360c5c4c8b626e3d Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:57:38 +0600 Subject: [PATCH 06/10] Testing integration pipeline 3 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a7ff73a..c15818f 100644 --- a/README.md +++ b/README.md @@ -583,4 +583,4 @@ First-party code subject to copyrights held by Optimizely, Inc. and its contribu - Swift - https://github.com/optimizely/swift-sdk -Test 3 \ No newline at end of file +Test 4 \ No newline at end of file From fa2715310a48cf7eab99880973f5bf978c1054f6 Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Wed, 18 Sep 2024 18:02:35 +0600 Subject: [PATCH 07/10] testing integration pipeline 4 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c15818f..f3a67e5 100644 --- a/README.md +++ b/README.md @@ -583,4 +583,4 @@ First-party code subject to copyrights held by Optimizely, Inc. and its contribu - Swift - https://github.com/optimizely/swift-sdk -Test 4 \ No newline at end of file +Test 5 \ No newline at end of file From cdf992d50a4515bf14870f456fe29c737c692ba4 Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Fri, 20 Sep 2024 18:38:23 +0600 Subject: [PATCH 08/10] [FSSDK-10438] test the pipeline --- .github/workflows/integration_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 6d2aac2..1def6cd 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -46,4 +46,4 @@ jobs: EVENT_MESSAGE: ${{ github.event.message }} HOME: 'home/runner' run: | - home/runner/travisci-tools/trigger-script-with-status-update.sh + home/runner/travisci-tools/trigger-script-with-status-update.sh main From 5fe2e260a0e502d810558c6275dd989c6c3f5713 Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Fri, 20 Sep 2024 20:40:03 +0600 Subject: [PATCH 09/10] [FSSDK-10438] revert back to original state --- README.md | 4 +--- src/hooks.spec.tsx | 2 +- src/hooks.ts | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f3a67e5..4ddd9e7 100644 --- a/README.md +++ b/README.md @@ -581,6 +581,4 @@ First-party code subject to copyrights held by Optimizely, Inc. and its contribu - Ruby - https://github.com/optimizely/ruby-sdk -- Swift - https://github.com/optimizely/swift-sdk - -Test 5 \ No newline at end of file +- Swift - https://github.com/optimizely/swift-sdk \ No newline at end of file diff --git a/src/hooks.spec.tsx b/src/hooks.spec.tsx index 61eb8b1..d43042f 100644 --- a/src/hooks.spec.tsx +++ b/src/hooks.spec.tsx @@ -678,7 +678,7 @@ describe('hooks', () => { }); }); - describe.skip('useDecision', () => { + describe('useDecision', () => { it('should handle no client promise response', async () => { getOnReadyPromise = () => new Promise((resolve) => { diff --git a/src/hooks.ts b/src/hooks.ts index 90fd117..0e55028 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -547,8 +547,7 @@ export const useDecision: UseDecision = (flagKey, options = {}, overrides = {}) if (!optimizely) { hooksLogger.error(`Unable to use decision ${flagKey}. ${optimizelyPropError}`); } - return [defaultDecision, false, false]; - // return [state.decision, state.clientReady, state.didTimeout]; + return [state.decision, state.clientReady, state.didTimeout]; }; export const useTrackEvent: UseTrackEvent = () => { From fda7dd5f55811ac5ffbae7e6c6243a8b8cb30ab7 Mon Sep 17 00:00:00 2001 From: Md Junaed Hossain <169046794+junaed-optimizely@users.noreply.github.com> Date: Fri, 20 Sep 2024 21:10:50 +0600 Subject: [PATCH 10/10] test --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ddd9e7..9a96a0b 100644 --- a/README.md +++ b/README.md @@ -581,4 +581,6 @@ First-party code subject to copyrights held by Optimizely, Inc. and its contribu - Ruby - https://github.com/optimizely/ruby-sdk -- Swift - https://github.com/optimizely/swift-sdk \ No newline at end of file +- Swift - https://github.com/optimizely/swift-sdk + +Test 1 \ No newline at end of file