You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ar...@apache.org on 2016/08/16 01:27:17 UTC
lucene-solr:branch_6x: SOLR-9032: Fix Create Alias command in Admin UI
Repository: lucene-solr
Updated Branches:
refs/heads/branch_6x 481ae1286 -> 291ecb2d9
SOLR-9032: Fix Create Alias command 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/291ecb2d
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/291ecb2d
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/291ecb2d
Branch: refs/heads/branch_6x
Commit: 291ecb2d9e79e9d5c416a385b15adcfe0085522a
Parents: 481ae12
Author: Alexandre Rafalovitch <ar...@apache.org>
Authored: Tue Aug 16 11:26:41 2016 +1000
Committer: Alexandre Rafalovitch <ar...@apache.org>
Committed: Tue Aug 16 11:26:41 2016 +1000
----------------------------------------------------------------------
solr/CHANGES.txt | 2 ++
solr/webapp/web/js/angular/controllers/collections.js | 7 +++++--
2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/291ecb2d/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index a7f7e74..f7ca9da 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -181,6 +181,8 @@ Bug Fixes
* SOLR-8993: Admin UI now correctly supports multiple DIH handler end-points (Upayavira, Alexandre Rafalovitch)
+* SOLR-9032: Admin UI now correctly implements Create Alias command (Upayavira, Alexandre Rafalovitch)
+
Optimizations
----------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/291ecb2d/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 e622905..2bd6ab6 100644
--- a/solr/webapp/web/js/angular/controllers/collections.js
+++ b/solr/webapp/web/js/angular/controllers/collections.js
@@ -111,8 +111,11 @@ solrAdminApp.controller('CollectionsController',
}
$scope.createAlias = function() {
- var collections = $scope.aliasCollections.join(",");
- Collections.createAlias({name: $scope.aliasToCreate, collections: collections}, function(data) {
+ var collections = [];
+ for (var i in $scope.aliasCollections) {
+ collections.push($scope.aliasCollections[i].name);
+ }
+ Collections.createAlias({name: $scope.aliasToCreate, collections: collections.join(",")}, function(data) {
$scope.hideAll();
});
}