You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by zh...@apache.org on 2015/06/15 06:31:46 UTC

incubator-kylin git commit: KYLIN-829, add acl data for cube when list cubes

Repository: incubator-kylin
Updated Branches:
  refs/heads/origin/0.7-staging [created] 7a5a53b2d


KYLIN-829, add acl data for cube when list cubes


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/7a5a53b2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/7a5a53b2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/7a5a53b2

Branch: refs/heads/origin/0.7-staging
Commit: 7a5a53b2dec1b770e39fca6d4ac8232399e79348
Parents: ca48f47
Author: jiazhong <ji...@ebay.com>
Authored: Mon Jun 15 12:30:28 2015 +0800
Committer: jiazhong <ji...@ebay.com>
Committed: Mon Jun 15 12:31:13 2015 +0800

----------------------------------------------------------------------
 webapp/app/js/model/cubeListModel.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/7a5a53b2/webapp/app/js/model/cubeListModel.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/model/cubeListModel.js b/webapp/app/js/model/cubeListModel.js
index d385c8b..46b785d 100755
--- a/webapp/app/js/model/cubeListModel.js
+++ b/webapp/app/js/model/cubeListModel.js
@@ -16,7 +16,7 @@
  * limitations under the License.
  */
 
-KylinApp.service('CubeList', function (CubeService, $q) {
+KylinApp.service('CubeList', function (CubeService, $q,AccessService) {
   var cubes = [];
   var _this = this;
 
@@ -25,6 +25,12 @@ KylinApp.service('CubeList', function (CubeService, $q) {
     var defer = $q.defer();
     CubeService.list(queryParam, function (_cubes) {
       angular.forEach(_cubes, function (cube, index) {
+
+        // add acl data
+        AccessService.list({type: "CubeInstance", uuid: cube.uuid}, function (accessEntities) {
+          cube.accessEntities = accessEntities;
+        });
+
         if (cube.name) {
 //                    $scope.listAccess(cube, 'CubeInstance');
           if (cube.segments && cube.segments.length > 0) {