This is an automated email from the ASF dual-hosted git repository.
amaranhao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git
The following commit(s) were added to refs/heads/master by this push:
new 33b10f3 Update detection of partitioned feature flag to match CouchDb
(#1174)
33b10f3 is described below
commit 33b10f34703837a33512c47ffba107cd36c1f81b
Author: garren smith <[email protected]>
AuthorDate: Mon Jan 28 17:23:57 2019 +0200
Update detection of partitioned feature flag to match CouchDb (#1174)
---
app/addons/databases/base.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/addons/databases/base.js b/app/addons/databases/base.js
index 31678eb..8cfd0d3 100644
--- a/app/addons/databases/base.js
+++ b/app/addons/databases/base.js
@@ -36,11 +36,11 @@ function partitionUrlComponent(partitionKey) {
function checkPartitionedDatabaseFeature () {
// Checks if the CouchDB server supports Partitioned Databases
return get(Helpers.getServerUrl("/")).then((couchdb) => {
- if (couchdb.features && couchdb.features.includes('partitions')) {
+ if (couchdb.features && couchdb.features.includes('partitioned')) {
return true;
}
// Check if it's enabled as an experimental feature
- if (couchdb.feature_flags && couchdb.feature_flags.includes('partitions'))
{
+ if (couchdb.features_flags &&
couchdb.features_flags.includes('partitioned')) {
return true;
}
return false;