SOLR-14933: Ability to add T and P type replica from admin UI (#1991)

* added UI and js changes

* track which committer convoyed in the change

Co-authored-by: epugh <epugh@opensourceconnections.com>
This commit is contained in:
Sayan Das 2020-10-16 20:31:48 +05:30 committed by GitHub
parent 6a330e6304
commit 744934c826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 5 deletions

View File

@ -198,6 +198,8 @@ Improvements
* SOLR-14691: Metrics reporting should avoid creating objects. (ab, noble) * SOLR-14691: Metrics reporting should avoid creating objects. (ab, noble)
* SOLR-14933: Ability to add T and P type replica from admin UI (Sayan Das via Eric Pugh)
Optimizations Optimizations
--------------------- ---------------------

View File

@ -248,6 +248,7 @@ solrAdminApp.controller('CollectionsController',
var params = { var params = {
collection: shard.collection, collection: shard.collection,
shard: shard.name, shard: shard.name,
type: shard.replicaType
} }
if (shard.replicaNodeName && shard.replicaNodeName != "") { if (shard.replicaNodeName && shard.replicaNodeName != "") {
params.node = shard.replicaNodeName; params.node = shard.replicaNodeName;

View File

@ -331,11 +331,23 @@ limitations under the License.
<form> <form>
<p id="node-name" class="clearfix"><label for="node-name">Node:</label> <p id="node-name" class="clearfix">
<select chosen ng-model="shard.replicaNodeName" ng-options="node for node in nodes" class="other"> <p>
<option value="">No specified node</option> <label for="node-name">Node:</label>
</select> <select chosen ng-model="shard.replicaNodeName" ng-options="node for node in nodes" class="other">
<span ng-if="shard.replicaNodeName">node: {{shard.replicaNodeName}}</span> <option value="">No specified node</option>
</select>
</p>
<p>
<label for="node-name">Type:</label>
<select chosen ng-model="shard.replicaType" ng-init="shard.replicaType='NRT'" ng-options="node for node in ['NRT', 'TLOG', 'PULL']" class="other">
</select>
</p>
<div ng-if="shard.replicaNodeName">node: {{shard.replicaNodeName}}</div>
<div ng-if="shard.replicaNodeName">node: {{shard.replicaType}}</div>
</p> </p>
<p class="clearfix note error" ng-show="createReplicaMessage"> <p class="clearfix note error" ng-show="createReplicaMessage">