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-14933: Ability to add T and P type replica from admin UI (Sayan Das via Eric Pugh)
|
||||
|
||||
Optimizations
|
||||
---------------------
|
||||
|
||||
|
|
|
@ -248,6 +248,7 @@ solrAdminApp.controller('CollectionsController',
|
|||
var params = {
|
||||
collection: shard.collection,
|
||||
shard: shard.name,
|
||||
type: shard.replicaType
|
||||
}
|
||||
if (shard.replicaNodeName && shard.replicaNodeName != "") {
|
||||
params.node = shard.replicaNodeName;
|
||||
|
|
|
@ -331,11 +331,23 @@ limitations under the License.
|
|||
|
||||
<form>
|
||||
|
||||
<p id="node-name" class="clearfix"><label for="node-name">Node:</label>
|
||||
<p id="node-name" class="clearfix">
|
||||
<p>
|
||||
<label for="node-name">Node:</label>
|
||||
<select chosen ng-model="shard.replicaNodeName" ng-options="node for node in nodes" class="other">
|
||||
<option value="">No specified node</option>
|
||||
</select>
|
||||
<span ng-if="shard.replicaNodeName">node: {{shard.replicaNodeName}}</span>
|
||||
</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 class="clearfix note error" ng-show="createReplicaMessage">
|
||||
|
|
Loading…
Reference in New Issue