From 22d1693f38b63b1a5c987d68853a6407f075bc47 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 10 Nov 2017 14:15:43 +0000 Subject: [PATCH] Add option to bypass percentage-based rollouts --- .../web/app/coffee/Features/Project/ProjectController.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/app/coffee/Features/Project/ProjectController.coffee b/services/web/app/coffee/Features/Project/ProjectController.coffee index bbfb47d6a1..0e8cd507af 100644 --- a/services/web/app/coffee/Features/Project/ProjectController.coffee +++ b/services/web/app/coffee/Features/Project/ProjectController.coffee @@ -28,6 +28,8 @@ CollaboratorsHandler = require '../Collaborators/CollaboratorsHandler' module.exports = ProjectController = _isInPercentageRollout: (objectId, percentage) -> + if Settings.bypassPercentageRollouts = true + return true counter = parseInt(objectId.toString().substring(18, 24), 16) return (counter % 100) < percentage