From d96cd7d2512f1e093663ffe209d49802c2e2867f Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Tue, 9 Sep 2025 17:45:12 +0200 Subject: [PATCH] [web] bring back sampling for compile-result-backend event (#28383) GitOrigin-RevId: beec70b77d7ceb8b97d5cb4176bcde7c41cb073f --- .../web/app/src/Features/Compile/CompileController.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/services/web/app/src/Features/Compile/CompileController.js b/services/web/app/src/Features/Compile/CompileController.js index 4b4d09657f..27008d41ac 100644 --- a/services/web/app/src/Features/Compile/CompileController.js +++ b/services/web/app/src/Features/Compile/CompileController.js @@ -212,7 +212,14 @@ const _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.