From 0a5613741c2ef12f22a99f05fdb8e964127e530c Mon Sep 17 00:00:00 2001 From: pavolum Date: Fri, 9 Jul 2021 15:44:18 -0700 Subject: [PATCH 1/2] Updating feature flag doc --- docs/internal/FeatureFlags.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/internal/FeatureFlags.md b/docs/internal/FeatureFlags.md index 953fa42f2b..d9723b93c8 100644 --- a/docs/internal/FeatureFlags.md +++ b/docs/internal/FeatureFlags.md @@ -50,8 +50,17 @@ Feature flag state not yet surfaced to extensions. Non hidden feature flags are toggleable through the app settings page in Composer. Hidden feature flags can be configured by the end user in a few different ways depending on your environment. ### Electron app -Currently no way yet to set feature flags in downloaded electron app - +To toggle a hidden feature flag in electron you need to set the feature flag value as an enviornemnt variable in a command line and then open Composer through that same command line. + - Open a command line + - Navigate to where your electron executable is stored. + - Default location on Windows machines is `C:\Users\{user}\AppData\Local\Programs\Bot Framework Composer` + - sample command: `cd C:\Users\{user}\AppData\Local\Programs\Bot Framework Composer` + - In the command line set the value of the hidden feautre flag you would like to enable. + - For example, if you want to enable the ADVANCED_TEMPLATE_OPTIONS feature flag you would run the following sample command in the command line + - sample command:`set ADVANCED_TEMPLATE_OPTIONS=true` + - Then in the Composer dir run the Composer executable and it should open Composer with that hidden feature flag enabled + - sample command: `"Bot Framework Composer.exe"` + ### Dev env Feature flag values are stored in data.json. In a development environment where you have direct access to this file you can toggle the value for hidden and non hidden feature flags directly in data.json. Next iteration task items: From 68ad6dcf362ea2434d1fb03ca66f31be8f2a6b7a Mon Sep 17 00:00:00 2001 From: pavolum Date: Fri, 9 Jul 2021 15:52:44 -0700 Subject: [PATCH 2/2] Adding mac considerations --- docs/internal/FeatureFlags.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/internal/FeatureFlags.md b/docs/internal/FeatureFlags.md index d9723b93c8..a6d03b0623 100644 --- a/docs/internal/FeatureFlags.md +++ b/docs/internal/FeatureFlags.md @@ -50,14 +50,17 @@ Feature flag state not yet surfaced to extensions. Non hidden feature flags are toggleable through the app settings page in Composer. Hidden feature flags can be configured by the end user in a few different ways depending on your environment. ### Electron app -To toggle a hidden feature flag in electron you need to set the feature flag value as an enviornemnt variable in a command line and then open Composer through that same command line. +To toggle a hidden feature flag in electron you need to set the feature flag value as an environment variable in a command line and then open Composer through that same command line. + #### Windows - Open a command line - Navigate to where your electron executable is stored. - Default location on Windows machines is `C:\Users\{user}\AppData\Local\Programs\Bot Framework Composer` + - Default location on mac is `/Applications/Bot Framework Composer.app/Contents/MacOS` - sample command: `cd C:\Users\{user}\AppData\Local\Programs\Bot Framework Composer` - In the command line set the value of the hidden feautre flag you would like to enable. - For example, if you want to enable the ADVANCED_TEMPLATE_OPTIONS feature flag you would run the following sample command in the command line - - sample command:`set ADVANCED_TEMPLATE_OPTIONS=true` + - sample command on widnows:`set ADVANCED_TEMPLATE_OPTIONS=true` + - sample command on mac: `ADVANCED_TEMPLATE_OPTIONS=true ./Bot\ Framework\ Composer` - Then in the Composer dir run the Composer executable and it should open Composer with that hidden feature flag enabled - sample command: `"Bot Framework Composer.exe"`