mirror of https://github.com/apache/lucene.git
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:
parent
6a330e6304
commit
744934c826
|
@ -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
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue