Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/utils/experiment-provider.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion unitylibs/utils/experiment-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Loading