diff --git a/services/web/app/src/Features/Compile/CompileController.js b/services/web/app/src/Features/Compile/CompileController.js index 8515e430bb..dbab01a8f4 100644 --- a/services/web/app/src/Features/Compile/CompileController.js +++ b/services/web/app/src/Features/Compile/CompileController.js @@ -160,7 +160,14 @@ module.exports = CompileController = { pdfDownloadDomain += outputUrlPrefix } - if (limits) { + if ( + limits && + SplitTestHandler.getPercentile( + AnalyticsManager.getIdsFromSession(req.session).analyticsId, + 'compile-result-backend', + 'release' + ) === 1 + ) { // For a compile request to be sent to clsi we need limits. // If we get here without having the limits object populated, it is // a reasonable assumption to make that nothing was compiled. diff --git a/services/web/app/src/Features/SplitTests/SplitTestHandler.js b/services/web/app/src/Features/SplitTests/SplitTestHandler.js index 1a5203f73a..963c8f970b 100644 --- a/services/web/app/src/Features/SplitTests/SplitTestHandler.js +++ b/services/web/app/src/Features/SplitTests/SplitTestHandler.js @@ -499,6 +499,7 @@ async function _getSplitTest(name) { } module.exports = { + getPercentile, getAssignment: callbackify(getAssignment), getAssignmentForMongoUser: callbackify(getAssignmentForMongoUser), getAssignmentForUser: callbackify(getAssignmentForUser),