You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2018/03/10 01:14:59 UTC
lucene-solr:master: SOLR-12077: Add support for autoAddReplicas in
the collection creation dialog in Admin UI
Repository: lucene-solr
Updated Branches:
refs/heads/master e47bf8b63 -> 2eeed51cd
SOLR-12077: Add support for autoAddReplicas in the collection creation dialog in Admin UI
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/2eeed51c
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/2eeed51c
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/2eeed51c
Branch: refs/heads/master
Commit: 2eeed51cdf006bdee7dec87b6adf144e7cc0d56e
Parents: e47bf8b
Author: Shalin Shekhar Mangar <sh...@apache.org>
Authored: Sat Mar 10 06:44:51 2018 +0530
Committer: Shalin Shekhar Mangar <sh...@apache.org>
Committed: Sat Mar 10 06:44:51 2018 +0530
----------------------------------------------------------------------
solr/CHANGES.txt | 2 ++
solr/webapp/web/js/angular/controllers/collections.js | 6 ++++--
solr/webapp/web/partials/collections.html | 7 +++++++
3 files changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/2eeed51c/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 4e96ca3..80d392c 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -198,6 +198,8 @@ New Features
* SOLR-11670: Implement a periodic house-keeping task. This uses a scheduled autoscaling trigger and
currently performs cleanup of old inactive shards. (ab, shalin)
+* SOLR-12077: Add support for autoAddReplicas in the collection creation dialog in Admin UI. (shalin)
+
Bug Fixes
----------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/2eeed51c/solr/webapp/web/js/angular/controllers/collections.js
----------------------------------------------------------------------
diff --git a/solr/webapp/web/js/angular/controllers/collections.js b/solr/webapp/web/js/angular/controllers/collections.js
index c67bc7e..111d7ea 100644
--- a/solr/webapp/web/js/angular/controllers/collections.js
+++ b/solr/webapp/web/js/angular/controllers/collections.js
@@ -83,7 +83,8 @@ solrAdminApp.controller('CollectionsController',
numShards: 1,
configName: "",
replicationFactor: 1,
- maxShardsPerNode: 1
+ maxShardsPerNode: 1,
+ autoAddReplicas: 'false'
};
};
@@ -137,7 +138,8 @@ solrAdminApp.controller('CollectionsController',
numShards: coll.numShards,
"collection.configName": coll.configName,
replicationFactor: coll.replicationFactor,
- maxShardsPerNode: coll.maxShardsPerNode
+ maxShardsPerNode: coll.maxShardsPerNode,
+ autoAddReplicas: coll.autoAddReplicas
};
if (coll.shards) params.shards = coll.shards;
if (coll.routerField) params["router.field"] = coll.routerField;
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/2eeed51c/solr/webapp/web/partials/collections.html
----------------------------------------------------------------------
diff --git a/solr/webapp/web/partials/collections.html b/solr/webapp/web/partials/collections.html
index 6f0c421..60ef47a 100644
--- a/solr/webapp/web/partials/collections.html
+++ b/solr/webapp/web/partials/collections.html
@@ -69,6 +69,13 @@ limitations under the License.
<p class="clearfix"><label for="add_routerField">router.field:</label>
<input type="text" name="routerField" id="add_routerField" ng-model="newCollection.routerField"></p>
+ <p class="clearfix"><label for="add_autoAddReplicas">autoAddReplicas:</label>
+ <select name="autoAddReplicas" id="add_autoAddReplicas" ng-model="newCollection.autoAddReplicas">
+ <option value="true">true</option>
+ <option value="false">false</option>
+ </select>
+ </p>
+
</div>
<p class="clearfix note error" ng-show="addMessage">
<span>{{addMessage}}</span>