kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhongj...@apache.org
Subject incubator-kylin git commit: KYLIN-829, add acl data for cube when list cubes
Date Mon, 15 Jun 2015 04:34:48 GMT
Repository: incubator-kylin
Updated Branches:
  refs/heads/0.7-staging ca48f47b2 -> 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/0.7-staging
Commit: 7a5a53b2dec1b770e39fca6d4ac8232399e79348
Parents: ca48f47
Author: jiazhong <jiazhong@ebay.com>
Authored: Mon Jun 15 12:30:28 2015 +0800
Committer: jiazhong <jiazhong@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) {


Mime
View raw message