)]}'
{"horizon/static/framework/widgets/property/hz-resource-property.directive.js":[{"author":{"_account_id":16352,"name":"Shu Muto","email":"shu.mutow@gmail.com","username":"shu.mutow"},"change_message_id":"c9927cd9c7abf7789e313a1cba568502328ff29f","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    function link(scope, element) {"},{"line_number":66,"context_line":"      var config \u003d scope.ctrl.config;"},{"line_number":67,"context_line":"      var priority \u003d config.priority ? config.priority : 1;"},{"line_number":68,"context_line":"      element.addClass(\u0027rsp-p\u0027 + priority);"},{"line_number":69,"context_line":"    }"},{"line_number":70,"context_line":"  }"}],"source_content_type":"text/javascript","patch_set":2,"id":"3a71b18c_96440b75","line":67,"updated":"2016-12-02 06:40:43.000000000","message":"the \"config\" doesn\u0027t have \"priority\" that was set in \"tableColumns\" in registry. So we can set the \"priority\" on controller[1] as follow[2]:\n\n[1] https://github.com/openstack/horizon/blob/master/horizon/static/framework/widgets/property/hz-resource-property.controller.js#L36\n\n[2]\n    angular.forEach(\n      registry.getResourceType(ctrl.resourceTypeName).tableColumns,\n      function(obj){\n        if(obj.id \u003d\u003d\u003d ctrl.propName) {\n          ctrl.config.priority \u003d obj.priority\n        }\n      }\n    );","commit_id":"ce053f70ff64b7927f7e723bb729d8d375c83233"},{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"bee11c184e3c3ed1321468c5eb5d14639f25a962","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    function link(scope, element) {"},{"line_number":66,"context_line":"      var config \u003d scope.ctrl.config;"},{"line_number":67,"context_line":"      var priority \u003d config.priority ? config.priority : 1;"},{"line_number":68,"context_line":"      element.addClass(\u0027rsp-p\u0027 + priority);"},{"line_number":69,"context_line":"    }"},{"line_number":70,"context_line":"  }"}],"source_content_type":"text/javascript","patch_set":2,"id":"3a71b18c_97423b3d","line":67,"in_reply_to":"3a71b18c_96440b75","updated":"2016-12-02 10:58:26.000000000","message":"Done","commit_id":"ce053f70ff64b7927f7e723bb729d8d375c83233"},{"author":{"_account_id":16352,"name":"Shu Muto","email":"shu.mutow@gmail.com","username":"shu.mutow"},"change_message_id":"c9927cd9c7abf7789e313a1cba568502328ff29f","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    function link(scope, element) {"},{"line_number":66,"context_line":"      var config \u003d scope.ctrl.config;"},{"line_number":67,"context_line":"      var priority \u003d config.priority ? config.priority : 1;"},{"line_number":68,"context_line":"      element.addClass(\u0027rsp-p\u0027 + priority);"},{"line_number":69,"context_line":"    }"},{"line_number":70,"context_line":"  }"},{"line_number":71,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":2,"id":"3a71b18c_b61107af","line":68,"range":{"start_line":68,"start_character":24,"end_line":68,"end_character":29},"updated":"2016-12-02 06:40:43.000000000","message":"rsp-alt-p","commit_id":"ce053f70ff64b7927f7e723bb729d8d375c83233"},{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"bee11c184e3c3ed1321468c5eb5d14639f25a962","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    function link(scope, element) {"},{"line_number":66,"context_line":"      var config \u003d scope.ctrl.config;"},{"line_number":67,"context_line":"      var priority \u003d config.priority ? config.priority : 1;"},{"line_number":68,"context_line":"      element.addClass(\u0027rsp-p\u0027 + priority);"},{"line_number":69,"context_line":"    }"},{"line_number":70,"context_line":"  }"},{"line_number":71,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":2,"id":"3a71b18c_b792d79d","line":68,"range":{"start_line":68,"start_character":24,"end_line":68,"end_character":29},"in_reply_to":"3a71b18c_b61107af","updated":"2016-12-02 10:58:26.000000000","message":"I confirmed that value but it didn\u0027t work well.\nI\u0027ll look into about it a little more.","commit_id":"ce053f70ff64b7927f7e723bb729d8d375c83233"}],"horizon/static/framework/widgets/property/hz-resource-property.directive.spec.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"837901c5a11787f57fac5c6256c1058b3613dbd6","unresolved":false,"context_lines":[{"line_number":28,"context_line":"      $scope \u003d $rootScope.$new();"},{"line_number":29,"context_line":"    }));"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    it(\"sets class when item\u0027s priority is set\", function() {"},{"line_number":32,"context_line":"      $scope.item \u003d {name: \u0027value of name\u0027};"},{"line_number":33,"context_line":"      var testResource \u003d {"},{"line_number":34,"context_line":"        getProperties: function() {"}],"source_content_type":"text/javascript","patch_set":6,"id":"3a71b18c_71776802","line":31,"updated":"2016-12-08 21:17:13.000000000","message":"Lets add a test to show that the default behavior is priority 1 is no priority is given.","commit_id":"bbf05a7a0cd44eeb7b11983f67be83235a4e6372"},{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"0534d21fc7dc01b7d60e083848d8f4cb8f0cf339","unresolved":false,"context_lines":[{"line_number":28,"context_line":"      $scope \u003d $rootScope.$new();"},{"line_number":29,"context_line":"    }));"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    it(\"sets class when item\u0027s priority is set\", function() {"},{"line_number":32,"context_line":"      $scope.item \u003d {name: \u0027value of name\u0027};"},{"line_number":33,"context_line":"      var testResource \u003d {"},{"line_number":34,"context_line":"        getProperties: function() {"}],"source_content_type":"text/javascript","patch_set":6,"id":"3a71b18c_08eb6579","line":31,"in_reply_to":"3a71b18c_71776802","updated":"2016-12-08 23:54:34.000000000","message":"Done","commit_id":"bbf05a7a0cd44eeb7b11983f67be83235a4e6372"}]}
