SOLR-12077: Add support for autoAddReplicas in the collection creation dialog in Admin UI

This commit is contained in:
Shalin Shekhar Mangar 2018-03-10 06:44:51 +05:30
parent e47bf8b63a
commit 2eeed51cdf
3 changed files with 13 additions and 2 deletions

View File

@ -198,6 +198,8 @@ New Features
* SOLR-11670: Implement a periodic house-keeping task. This uses a scheduled autoscaling trigger and * SOLR-11670: Implement a periodic house-keeping task. This uses a scheduled autoscaling trigger and
currently performs cleanup of old inactive shards. (ab, shalin) 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 Bug Fixes
---------------------- ----------------------

View File

@ -83,7 +83,8 @@ solrAdminApp.controller('CollectionsController',
numShards: 1, numShards: 1,
configName: "", configName: "",
replicationFactor: 1, replicationFactor: 1,
maxShardsPerNode: 1 maxShardsPerNode: 1,
autoAddReplicas: 'false'
}; };
}; };
@ -137,7 +138,8 @@ solrAdminApp.controller('CollectionsController',
numShards: coll.numShards, numShards: coll.numShards,
"collection.configName": coll.configName, "collection.configName": coll.configName,
replicationFactor: coll.replicationFactor, replicationFactor: coll.replicationFactor,
maxShardsPerNode: coll.maxShardsPerNode maxShardsPerNode: coll.maxShardsPerNode,
autoAddReplicas: coll.autoAddReplicas
}; };
if (coll.shards) params.shards = coll.shards; if (coll.shards) params.shards = coll.shards;
if (coll.routerField) params["router.field"] = coll.routerField; if (coll.routerField) params["router.field"] = coll.routerField;

View File

@ -69,6 +69,13 @@ limitations under the License.
<p class="clearfix"><label for="add_routerField">router.field:</label> <p class="clearfix"><label for="add_routerField">router.field:</label>
<input type="text" name="routerField" id="add_routerField" ng-model="newCollection.routerField"></p> <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> </div>
<p class="clearfix note error" ng-show="addMessage"> <p class="clearfix note error" ng-show="addMessage">
<span>{{addMessage}}</span> <span>{{addMessage}}</span>