From 5efe81ab47d55133191b17f5f0ef817473710602 Mon Sep 17 00:00:00 2001 From: Sumit Kumar Date: Tue, 24 Aug 2021 17:11:13 +0530 Subject: [PATCH] Feature flags snippet and linting features. --- .../server/featureflags/FeatureFlagEnum.java | 4 +++- .../main/resources/features/init-flags.yml | 20 ++++++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/featureflags/FeatureFlagEnum.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/featureflags/FeatureFlagEnum.java index 86cca7a3a5c9..ff0edf7b6094 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/featureflags/FeatureFlagEnum.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/featureflags/FeatureFlagEnum.java @@ -25,6 +25,8 @@ public enum FeatureFlagEnum { // ------------------- These are actual feature flags meant to be used across the product ----------------------- // JS_EDITOR, - COMMENT; + COMMENT, + SNIPPET, + LINTING; } diff --git a/app/server/appsmith-server/src/main/resources/features/init-flags.yml b/app/server/appsmith-server/src/main/resources/features/init-flags.yml index c08ffbbb6014..6f465f0a0a1a 100644 --- a/app/server/appsmith-server/src/main/resources/features/init-flags.yml +++ b/app/server/appsmith-server/src/main/resources/features/init-flags.yml @@ -25,4 +25,22 @@ ff4j: class: com.appsmith.server.featureflags.strategies.EmailBasedRolloutStrategy param: - name: emailDomains - value: appsmith.com,wazirx.com,pharmeasy.in,allround.club \ No newline at end of file + value: appsmith.com,wazirx.com,pharmeasy.in,allround.club + + - uid: SNIPPET + enable: true + description: Enable snippets feature by email domain of the user + flipstrategy: + class: com.appsmith.server.featureflags.strategies.EmailBasedRolloutStrategy + param: + - name: emailDomains + value: appsmith.com,moolya.com + + - uid: LINTING + enable: true + description: Enable linting feature by email domain of the user + flipstrategy: + class: com.appsmith.server.featureflags.strategies.EmailBasedRolloutStrategy + param: + - name: emailDomains + value: appsmith.com,moolya.com \ No newline at end of file