From 3d3f46b8d4da91d6c10fe9d6a8bc45a9dda3e729 Mon Sep 17 00:00:00 2001 From: Ruchika Sinha <69535463+Ruchika4@users.noreply.github.com> Date: Mon, 16 Mar 2026 11:25:12 -0700 Subject: [PATCH] =?UTF-8?q?Revert=20"Revert=20"[MWPW-189717]=20Unity=20cha?= =?UTF-8?q?nges=20to=20enable=20multi=20verb=20to=20single=20ca=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 6d4ec6f292d4aaad8687d541c98f9b7893a12784. --- test/utils/experiment-provider.test.js | 4 ++-- unitylibs/core/workflow/workflow-acrobat/target-config.json | 2 +- unitylibs/utils/experiment-provider.js | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/utils/experiment-provider.test.js b/test/utils/experiment-provider.test.js index 4dfd546b..3a397cac 100644 --- a/test/utils/experiment-provider.test.js +++ b/test/utils/experiment-provider.test.js @@ -132,11 +132,11 @@ describe('getDecisionScopesForVerb', () => { it('should return decision scopes for known verb', async () => { const result = await getDecisionScopesForVerb('add-comment'); - expect(result).to.deep.equal(['acom_unity_acrobat_add-comment_us']); + expect(result).to.deep.equal(['acom_unity_acrobat_add-comment_us', 'acom_unity_acrobat_add-comment']); }); it('should return decision scopes for unknown verb using region', async () => { const result = await getDecisionScopesForVerb('unknown-verb'); - expect(result).to.deep.equal(['acom_unity_acrobat_unknown-verb_us']); + expect(result).to.deep.equal(['acom_unity_acrobat_unknown-verb_us', 'acom_unity_acrobat_unknown-verb']); }); }); diff --git a/unitylibs/core/workflow/workflow-acrobat/target-config.json b/unitylibs/core/workflow/workflow-acrobat/target-config.json index f5ff4661..9b9330ac 100644 --- a/unitylibs/core/workflow/workflow-acrobat/target-config.json +++ b/unitylibs/core/workflow/workflow-acrobat/target-config.json @@ -18,7 +18,7 @@ "nonpdfSfuProductScreen": ["word-to-pdf", "jpg-to-pdf", "ppt-to-pdf", "excel-to-pdf", "png-to-pdf", "createpdf", "chat-pdf", "chat-pdf-student", "summarize-pdf", "pdf-ai", "heic-to-pdf", "quiz-maker", "flashcard-maker"], "mfuUploadAllowed": ["combine-pdf", "rotate-pages", "chat-pdf", "chat-pdf-student", "summarize-pdf", "pdf-ai", "quiz-maker", "flashcard-maker"], "mfuUploadOnlyPdfAllowed": ["combine-pdf"], - "experimentationOn": ["add-comment"], + "experimentationOn": ["add-comment", "png-to-pdf", "jpg-to-pdf", "ppt-to-pdf", "excel-to-pdf", "createpdf"], "fetchApiConfig": { "finalizeAsset": { "retryType": "polling", diff --git a/unitylibs/utils/experiment-provider.js b/unitylibs/utils/experiment-provider.js index 32d54701..013755c2 100644 --- a/unitylibs/utils/experiment-provider.js +++ b/unitylibs/utils/experiment-provider.js @@ -2,7 +2,8 @@ export async function getDecisionScopesForVerb(verb) { const region = await getRegion().catch(() => undefined); - return [`acom_unity_acrobat_${verb}${region ? `_${region}` : ''}`]; + const verbScope = `acom_unity_acrobat_${verb}`; + return region ? [`${verbScope}_${region}`, verbScope] : [verbScope]; } export async function getRegion() {