From 0d5242d12bcb0eb2ab5811339105bdd3e22c7cb8 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Mon, 9 Mar 2015 14:42:47 +0100 Subject: [PATCH] Add enabledFeatures configuration to the example configuration files - Enables querytables from postgres as default --- config/environments/development.js.example | 6 ++++++ config/environments/production.js.example | 6 ++++++ config/environments/staging.js.example | 6 ++++++ config/environments/test.js.example | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 2c391dd1..1c036f67 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -174,6 +174,12 @@ var config = { x: 0, y: 0 } + + // Use this as a feature flags enabling/disabling mechanism + ,enabledFeatures: { + // whether the affected tables for a given SQL must query directly postgresql or use the SQL API + cdbQueryTablesFromPostgres: true + } }; module.exports = config; diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 0d4e999a..28f2ee95 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -183,6 +183,12 @@ var config = { x: 0, y: 0 } + + // Use this as a feature flags enabling/disabling mechanism + ,enabledFeatures: { + // whether the affected tables for a given SQL must query directly postgresql or use the SQL API + cdbQueryTablesFromPostgres: true + } }; module.exports = config; diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 0c88a9c7..88a0d8e7 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -183,6 +183,12 @@ var config = { x: 0, y: 0 } + + // Use this as a feature flags enabling/disabling mechanism + ,enabledFeatures: { + // whether the affected tables for a given SQL must query directly postgresql or use the SQL API + cdbQueryTablesFromPostgres: true + } }; module.exports = config; diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 67551249..066bf1d0 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -172,6 +172,12 @@ var config = { x: 0, y: 0 } + + // Use this as a feature flags enabling/disabling mechanism + ,enabledFeatures: { + // whether the affected tables for a given SQL must query directly postgresql or use the SQL API + cdbQueryTablesFromPostgres: true + } }; module.exports = config;