)]}'
{"horizon/static/framework/widgets/magic-search/hz-magic-search-context.directive.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"de57377c9126bcd4cf5b2a6a83ea25ec412abb23","unresolved":false,"context_lines":[{"line_number":131,"context_line":"      // For example, if the parent sets filter-facets\u003d\u0027ctrl.myFilters\u0027, then this watch"},{"line_number":132,"context_line":"      // is equivalent to:"},{"line_number":133,"context_line":"      // scope.filterFacets \u003d scope.ctrl.myFilters"},{"line_number":134,"context_line":"      if (angular.isUndefined(scope.filterFacets)) {"},{"line_number":135,"context_line":"        scope.$watch(attrs.filterFacets, function (newValue) {"},{"line_number":136,"context_line":"          scope.filterFacets \u003d newValue;"},{"line_number":137,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_d185a4cf","line":134,"updated":"2016-08-03 18:33:33.000000000","message":"filter facets may change.  Watch for them. This was uncovered when I attempted to use hz-resource-panel with dynamic resource type.","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"}],"horizon/static/framework/widgets/table/hz-detail-row.directive.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"de57377c9126bcd4cf5b2a6a83ea25ec412abb23","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    return directive;"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    function link(scope, element, attrs) {"},{"line_number":85,"context_line":"      // Watch for changes to the template URL to allow the template to change"},{"line_number":86,"context_line":"      // at run-time, or to support late binding where we display part of the"},{"line_number":87,"context_line":"      // table before knowing the type of each row"},{"line_number":88,"context_line":"      scope.$watch(attrs.templateUrl, function(templateUrl) {"}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_b15f5074","line":85,"updated":"2016-08-03 18:33:33.000000000","message":"again, notice how the old code has a link function that uses an attribute value...but didn\u0027t watch for changes? This caused problems when the binding interpolation doesn\u0027t happen in just the right order.","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"}],"horizon/static/framework/widgets/table/hz-dynamic-table.controller.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"de57377c9126bcd4cf5b2a6a83ea25ec412abb23","unresolved":false,"context_lines":[{"line_number":1,"context_line":"/*"},{"line_number":2,"context_line":" * (c) Copyright 2016 Hewlett Packard Enterprise Development Company LP"},{"line_number":3,"context_line":" *"},{"line_number":4,"context_line":" * Licensed under the Apache License, Version 2.0 (the \"License\");"}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_91c96c28","line":1,"updated":"2016-08-03 18:33:33.000000000","message":"we have isolate scope in this directive. Therefore, get logic out of a link function and into a controller where it is easier to understand and maintain.","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"de57377c9126bcd4cf5b2a6a83ea25ec412abb23","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    var allowedColumns \u003d {};"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    // Deep watch for changes to the table config"},{"line_number":36,"context_line":"    $scope.$watch("},{"line_number":37,"context_line":"      \"config\","},{"line_number":38,"context_line":"      onConfigChange,"},{"line_number":39,"context_line":"      true"}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_11f3bca0","line":36,"updated":"2016-08-03 18:33:33.000000000","message":"This simple change to allow the table config to be dynamic (or to be set by a late binding) uncovered numerous bugs in hz-table-* components that used link functions to get the value of an attribute...but didn\u0027t update their local data when/if that value changed.","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"de57377c9126bcd4cf5b2a6a83ea25ec412abb23","unresolved":false,"context_lines":[{"line_number":47,"context_line":"     * @param newValue {string}"},{"line_number":48,"context_line":"     * new resource type name"},{"line_number":49,"context_line":"     */"},{"line_number":50,"context_line":"    function onConfigChange (newConfig) {"},{"line_number":51,"context_line":"      if (angular.isDefined(newConfig)) {"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        // if selectAll and expand are not set in the config, default set to true"}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_b11110b2","line":50,"updated":"2016-08-03 18:33:33.000000000","message":"this moves out of the link function for two reasons. First, since we have isolated scope, we don\u0027t need to use link function to watch attributes. Second, the checkPermissions part now keeps its own dictionary of allowed columns rather than muck with the callers data.","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"59916921c87a21ad7db2bacc0ff0d95638e40510","unresolved":false,"context_lines":[{"line_number":47,"context_line":"     * @param newValue {string}"},{"line_number":48,"context_line":"     * new resource type name"},{"line_number":49,"context_line":"     */"},{"line_number":50,"context_line":"    function onConfigChange (newConfig) {"},{"line_number":51,"context_line":"      if (angular.isDefined(newConfig)) {"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        // if selectAll and expand are not set in the config, default set to true"}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_6c8b371f","line":50,"in_reply_to":"bacf61ea_1320d99a","updated":"2016-08-03 23:16:37.000000000","message":"LOL...good point! In my defense, \"selectAll\" and \"expand\" are part of the documented options for the table config, and this is setting a default if the caller didn\u0027t provide them.  Allowed columns I think it a little different because it is state that is internal to this component. That was my thinking anyhow :)","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"530ce7bb12f123dd0d2f3dab9a9fc187b7842cc7","unresolved":false,"context_lines":[{"line_number":47,"context_line":"     * @param newValue {string}"},{"line_number":48,"context_line":"     * new resource type name"},{"line_number":49,"context_line":"     */"},{"line_number":50,"context_line":"    function onConfigChange (newConfig) {"},{"line_number":51,"context_line":"      if (angular.isDefined(newConfig)) {"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        // if selectAll and expand are not set in the config, default set to true"}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_1320d99a","line":50,"in_reply_to":"bacf61ea_b11110b2","updated":"2016-08-03 21:52:35.000000000","message":"given that line 55 and line 58 \"muck with the callers data\" I don\u0027t quite understand the commentary and differentiation for columns.  But i\u0027m fine with this approach for columns.","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"}],"horizon/static/framework/widgets/table/hz-dynamic-table.directive.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"de57377c9126bcd4cf5b2a6a83ea25ec412abb23","unresolved":false,"context_lines":[{"line_number":123,"context_line":"        filterFacets: \u0027\u003d?\u0027,"},{"line_number":124,"context_line":"        resultHandler: \u0027\u003d?\u0027"},{"line_number":125,"context_line":"      },"},{"line_number":126,"context_line":"      controller: \u0027horizon.framework.widgets.table.HzDynamicTableController\u0027,"},{"line_number":127,"context_line":"      templateUrl: basePath + \u0027table/hz-dynamic-table.html\u0027"},{"line_number":128,"context_line":"    };"},{"line_number":129,"context_line":""}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_518ed4d0","line":126,"updated":"2016-08-03 18:33:33.000000000","message":"we have isolate scope, so logic moved into controller. A link function IS needed if we have to watch attributes on a SHARED scope. Link is the only place where we can inspect other attributes on the directive...however that is NOT the case here, so IMHO a controller function is easier to understand and maintain.","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"}],"horizon/static/framework/widgets/table/hz-dynamic-table.html":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"de57377c9126bcd4cf5b2a6a83ea25ec412abb23","unresolved":false,"context_lines":[{"line_number":39,"context_line":"            st-sort\u003d\"{$ column.id $}\""},{"line_number":40,"context_line":"            ng-attr-st-sort-default\u003d\"{$ column.sortDefault $}\""},{"line_number":41,"context_line":"            translate"},{"line_number":42,"context_line":"            ng-if\u003d\"columnAllowed(column)\"\u003e"},{"line_number":43,"context_line":"            {$ column.title $}"},{"line_number":44,"context_line":"          \u003c/th\u003e"},{"line_number":45,"context_line":"          \u003cth ng-if\u003d\"itemActions\"\u003e\u003c/th\u003e"}],"source_content_type":"text/html","patch_set":6,"id":"bacf61ea_b1491091","line":42,"updated":"2016-08-03 18:33:33.000000000","message":"Now uses a controller getter instead of inserting a synthetic attributes into the column data from the caller.  IMHO, if one should wrap or facade data not owned by this component if at all possible, rather than inject attributes into it.","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"59916921c87a21ad7db2bacc0ff0d95638e40510","unresolved":false,"context_lines":[{"line_number":39,"context_line":"            st-sort\u003d\"{$ column.id $}\""},{"line_number":40,"context_line":"            ng-attr-st-sort-default\u003d\"{$ column.sortDefault $}\""},{"line_number":41,"context_line":"            translate"},{"line_number":42,"context_line":"            ng-if\u003d\"columnAllowed(column)\"\u003e"},{"line_number":43,"context_line":"            {$ column.title $}"},{"line_number":44,"context_line":"          \u003c/th\u003e"},{"line_number":45,"context_line":"          \u003cth ng-if\u003d\"itemActions\"\u003e\u003c/th\u003e"}],"source_content_type":"text/html","patch_set":6,"id":"bacf61ea_0cf9db80","line":42,"in_reply_to":"bacf61ea_33635ddf","updated":"2016-08-03 23:16:37.000000000","message":"You are probably right. fwiw, I did double check that the function is only executed when building the table, and not on every digest. In my experience having controller getters like this leads to code that is easier to maintain that if I were to put the dictionary lookup directly into the view expression.","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"530ce7bb12f123dd0d2f3dab9a9fc187b7842cc7","unresolved":false,"context_lines":[{"line_number":39,"context_line":"            st-sort\u003d\"{$ column.id $}\""},{"line_number":40,"context_line":"            ng-attr-st-sort-default\u003d\"{$ column.sortDefault $}\""},{"line_number":41,"context_line":"            translate"},{"line_number":42,"context_line":"            ng-if\u003d\"columnAllowed(column)\"\u003e"},{"line_number":43,"context_line":"            {$ column.title $}"},{"line_number":44,"context_line":"          \u003c/th\u003e"},{"line_number":45,"context_line":"          \u003cth ng-if\u003d\"itemActions\"\u003e\u003c/th\u003e"}],"source_content_type":"text/html","patch_set":6,"id":"bacf61ea_33635ddf","line":42,"in_reply_to":"bacf61ea_b1491091","updated":"2016-08-03 21:52:35.000000000","message":"I\u0027m fine with this approach, although I believe it does incur more overhead. It goes from a quick boolean property check to a function lookup that then does a dictionary lookup. I\u0027m not going to code profile this though and doubt it makes any noticeable difference.","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"}],"horizon/static/framework/widgets/table/hz-resource-table.controller.js":[{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"33353d334c2048b0e6ac74ccbd775f6f0b13893c","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    // Watch for changes to resourceTypeName"},{"line_number":48,"context_line":"    $scope.$watch("},{"line_number":49,"context_line":"      \"ctrl.resourceTypeName\","},{"line_number":50,"context_line":"      onResourceTypeNameChange"},{"line_number":51,"context_line":"    );"},{"line_number":52,"context_line":""}],"source_content_type":"text/javascript","patch_set":2,"id":"dada55a8_f52fd685","line":49,"updated":"2016-07-25 21:04:27.000000000","message":"make a constant?","commit_id":"00fc7572cbcc23f5c53f9e3042bc5477efde8bef"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c64874c8369739b7546eeaab96b041568e1c01be","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    // Watch for changes to resourceTypeName"},{"line_number":48,"context_line":"    $scope.$watch("},{"line_number":49,"context_line":"      \"ctrl.resourceTypeName\","},{"line_number":50,"context_line":"      onResourceTypeNameChange"},{"line_number":51,"context_line":"    );"},{"line_number":52,"context_line":""}],"source_content_type":"text/javascript","patch_set":2,"id":"dada55a8_49f6dd8f","line":49,"in_reply_to":"dada55a8_f52fd685","updated":"2016-07-26 22:28:14.000000000","message":"Hi Cindy!\n\nCan you elaborate on your comment? In this case, line 49 is the expression that the $watch should evaluate against the scope.  Since the resourceTypeName is set by the parent, I don\u0027t see how I could use a constant value.","commit_id":"00fc7572cbcc23f5c53f9e3042bc5477efde8bef"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"42fc955a161e5fab730940b4f7fa54326b5c2e57","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    // Watch for changes to resourceTypeName"},{"line_number":48,"context_line":"    $scope.$watch("},{"line_number":49,"context_line":"      \"ctrl.resourceTypeName\","},{"line_number":50,"context_line":"      onResourceTypeNameChange"},{"line_number":51,"context_line":"    );"},{"line_number":52,"context_line":""}],"source_content_type":"text/javascript","patch_set":2,"id":"dada55a8_4cb25de6","line":49,"in_reply_to":"dada55a8_f52fd685","updated":"2016-07-26 19:55:25.000000000","message":"I wouldn\u0027t make this a constant as it\u0027s pretty local to the controller.","commit_id":"00fc7572cbcc23f5c53f9e3042bc5477efde8bef"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"33353d334c2048b0e6ac74ccbd775f6f0b13893c","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    // Watch for changes to listFunctionExtraParams"},{"line_number":54,"context_line":"    $scope.$watch("},{"line_number":55,"context_line":"      \"ctrl.listFunctionExtraParams\","},{"line_number":56,"context_line":"      onListFunctionExtraParamsChange"},{"line_number":57,"context_line":"    );"},{"line_number":58,"context_line":""}],"source_content_type":"text/javascript","patch_set":2,"id":"dada55a8_554d0271","line":55,"updated":"2016-07-25 21:04:27.000000000","message":"make a constant?","commit_id":"00fc7572cbcc23f5c53f9e3042bc5477efde8bef"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"42fc955a161e5fab730940b4f7fa54326b5c2e57","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    // Watch for changes to listFunctionExtraParams"},{"line_number":54,"context_line":"    $scope.$watch("},{"line_number":55,"context_line":"      \"ctrl.listFunctionExtraParams\","},{"line_number":56,"context_line":"      onListFunctionExtraParamsChange"},{"line_number":57,"context_line":"    );"},{"line_number":58,"context_line":""}],"source_content_type":"text/javascript","patch_set":2,"id":"dada55a8_ecc19130","line":55,"in_reply_to":"dada55a8_554d0271","updated":"2016-07-26 19:55:25.000000000","message":"Same as above.","commit_id":"00fc7572cbcc23f5c53f9e3042bc5477efde8bef"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"68b6c35c035ebe68037a24e206bbb18587efd3e7","unresolved":false,"context_lines":[{"line_number":65,"context_line":"     * new resource type name"},{"line_number":66,"context_line":"     */"},{"line_number":67,"context_line":"    function onResourceTypeNameChange (newValue) {"},{"line_number":68,"context_line":"      if (!angular.isUndefined(newValue)) {"},{"line_number":69,"context_line":"        ctrl.resourceType \u003d registry.getResourceType(newValue);"},{"line_number":70,"context_line":"        ctrl.resourceType.initActions($scope);"},{"line_number":71,"context_line":"        ctrl.searchFacets \u003d ctrl.resourceType.filterFacets;"}],"source_content_type":"text/javascript","patch_set":2,"id":"dada55a8_a43b72ea","line":68,"range":{"start_line":68,"start_character":10,"end_line":68,"end_character":30},"updated":"2016-07-25 20:22:59.000000000","message":"use angular.isDefined()","commit_id":"00fc7572cbcc23f5c53f9e3042bc5477efde8bef"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"33353d334c2048b0e6ac74ccbd775f6f0b13893c","unresolved":false,"context_lines":[{"line_number":65,"context_line":"     * new resource type name"},{"line_number":66,"context_line":"     */"},{"line_number":67,"context_line":"    function onResourceTypeNameChange (newValue) {"},{"line_number":68,"context_line":"      if (!angular.isUndefined(newValue)) {"},{"line_number":69,"context_line":"        ctrl.resourceType \u003d registry.getResourceType(newValue);"},{"line_number":70,"context_line":"        ctrl.resourceType.initActions($scope);"},{"line_number":71,"context_line":"        ctrl.searchFacets \u003d ctrl.resourceType.filterFacets;"}],"source_content_type":"text/javascript","patch_set":2,"id":"dada55a8_b5355edc","line":68,"range":{"start_line":68,"start_character":10,"end_line":68,"end_character":30},"in_reply_to":"dada55a8_a43b72ea","updated":"2016-07-25 21:04:27.000000000","message":"+1","commit_id":"00fc7572cbcc23f5c53f9e3042bc5477efde8bef"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c64874c8369739b7546eeaab96b041568e1c01be","unresolved":false,"context_lines":[{"line_number":65,"context_line":"     * new resource type name"},{"line_number":66,"context_line":"     */"},{"line_number":67,"context_line":"    function onResourceTypeNameChange (newValue) {"},{"line_number":68,"context_line":"      if (!angular.isUndefined(newValue)) {"},{"line_number":69,"context_line":"        ctrl.resourceType \u003d registry.getResourceType(newValue);"},{"line_number":70,"context_line":"        ctrl.resourceType.initActions($scope);"},{"line_number":71,"context_line":"        ctrl.searchFacets \u003d ctrl.resourceType.filterFacets;"}],"source_content_type":"text/javascript","patch_set":2,"id":"dada55a8_095ce57b","line":68,"range":{"start_line":68,"start_character":10,"end_line":68,"end_character":30},"in_reply_to":"dada55a8_b5355edc","updated":"2016-07-26 22:28:14.000000000","message":"Done","commit_id":"00fc7572cbcc23f5c53f9e3042bc5477efde8bef"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"68b6c35c035ebe68037a24e206bbb18587efd3e7","unresolved":false,"context_lines":[{"line_number":89,"context_line":"     * new list function extra params"},{"line_number":90,"context_line":"     */"},{"line_number":91,"context_line":"    function onListFunctionExtraParamsChange (newValue) {"},{"line_number":92,"context_line":"      if (!angular.isUndefined(newValue)) {"},{"line_number":93,"context_line":"        listResources();"},{"line_number":94,"context_line":"      }"},{"line_number":95,"context_line":"    }"}],"source_content_type":"text/javascript","patch_set":2,"id":"dada55a8_0fbff7fb","line":92,"range":{"start_line":92,"start_character":9,"end_line":92,"end_character":30},"updated":"2016-07-25 20:22:59.000000000","message":"angular.isDefined()","commit_id":"00fc7572cbcc23f5c53f9e3042bc5477efde8bef"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"c64874c8369739b7546eeaab96b041568e1c01be","unresolved":false,"context_lines":[{"line_number":89,"context_line":"     * new list function extra params"},{"line_number":90,"context_line":"     */"},{"line_number":91,"context_line":"    function onListFunctionExtraParamsChange (newValue) {"},{"line_number":92,"context_line":"      if (!angular.isUndefined(newValue)) {"},{"line_number":93,"context_line":"        listResources();"},{"line_number":94,"context_line":"      }"},{"line_number":95,"context_line":"    }"}],"source_content_type":"text/javascript","patch_set":2,"id":"dada55a8_49525d68","line":92,"range":{"start_line":92,"start_character":9,"end_line":92,"end_character":30},"in_reply_to":"dada55a8_0fbff7fb","updated":"2016-07-26 22:28:14.000000000","message":"Done","commit_id":"00fc7572cbcc23f5c53f9e3042bc5477efde8bef"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"68b6c35c035ebe68037a24e206bbb18587efd3e7","unresolved":false,"context_lines":[{"line_number":99,"context_line":"     * In the call to the list function, include the current search terms (if any)"},{"line_number":100,"context_line":"     * and any extra list function params supplied by the parent (if any)."},{"line_number":101,"context_line":"     */"},{"line_number":102,"context_line":"    function listResources() {"},{"line_number":103,"context_line":"      if (ctrl.resourceType) {"},{"line_number":104,"context_line":"        ctrl.resourceType"},{"line_number":105,"context_line":"          .list(angular.extend({}, lastSearchQuery, ctrl.listFunctionExtraParams))"}],"source_content_type":"text/javascript","patch_set":2,"id":"dada55a8_4fff2f01","line":102,"range":{"start_line":102,"start_character":4,"end_line":102,"end_character":30},"updated":"2016-07-25 20:22:59.000000000","message":"This is nice to have as its own function, thanks!","commit_id":"00fc7572cbcc23f5c53f9e3042bc5477efde8bef"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"68b6c35c035ebe68037a24e206bbb18587efd3e7","unresolved":false,"context_lines":[{"line_number":102,"context_line":"    function listResources() {"},{"line_number":103,"context_line":"      if (ctrl.resourceType) {"},{"line_number":104,"context_line":"        ctrl.resourceType"},{"line_number":105,"context_line":"          .list(angular.extend({}, lastSearchQuery, ctrl.listFunctionExtraParams))"},{"line_number":106,"context_line":"          .then(onLoad);"},{"line_number":107,"context_line":"      }"},{"line_number":108,"context_line":"    }"}],"source_content_type":"text/javascript","patch_set":2,"id":"dada55a8_cf967f93","line":105,"range":{"start_line":105,"start_character":31,"end_line":105,"end_character":34},"updated":"2016-07-25 20:22:59.000000000","message":"Yep, this is right, don\u0027t want to change the lastSearchQuery, etc., so we have to use the odd notation.","commit_id":"00fc7572cbcc23f5c53f9e3042bc5477efde8bef"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"aee1d46b412a4a0d4e662e322405fbfcff1fbf51","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"  function controller($q, $scope, events, searchService, actionResultService, registry) {"},{"line_number":33,"context_line":"    var ctrl \u003d this;"},{"line_number":34,"context_line":"    var lastSearchQuery \u003d {};"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    // \u0027Public\u0027 Controller members"},{"line_number":37,"context_line":"    ctrl.actionResultHandler \u003d actionResultHandler;"}],"source_content_type":"text/javascript","patch_set":3,"id":"bacf61ea_a6dfbc67","line":34,"updated":"2016-08-01 02:47:18.000000000","message":"Please include doc here \"Server-side search parameters from magic search\". I think the name should be \"magicSearchQuery\".","commit_id":"b2a6d3a3ffd49ab8b2e34046f8ac87c25d2a0357"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"aee1d46b412a4a0d4e662e322405fbfcff1fbf51","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    /**"},{"line_number":98,"context_line":"     * If a resource type has been set, list all resources for this resource type."},{"line_number":99,"context_line":"     * In the call to the list function, include the current search terms (if any)"},{"line_number":100,"context_line":"     * and any extra list function params supplied by the parent (if any)."},{"line_number":101,"context_line":"     */"},{"line_number":102,"context_line":"    function listResources() {"},{"line_number":103,"context_line":"      if (ctrl.resourceType) {"}],"source_content_type":"text/javascript","patch_set":3,"id":"bacf61ea_e6bc1408","line":100,"updated":"2016-08-01 02:47:18.000000000","message":"s/by the parent/in the directive/","commit_id":"b2a6d3a3ffd49ab8b2e34046f8ac87c25d2a0357"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"de57377c9126bcd4cf5b2a6a83ea25ec412abb23","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    $scope.$on(events.SERVER_SEARCH_UPDATED, handleServerSearch);"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    // Watch for changes to resourceTypeName"},{"line_number":48,"context_line":"    $scope.$watch("},{"line_number":49,"context_line":"      \"ctrl.resourceTypeName\","},{"line_number":50,"context_line":"      onResourceTypeNameChange"},{"line_number":51,"context_line":"    );"}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_71067821","line":48,"updated":"2016-08-03 18:33:33.000000000","message":"allows the resource type name to be dynamic","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"de57377c9126bcd4cf5b2a6a83ea25ec412abb23","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    );"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    // Watch for changes to listFunctionExtraParams"},{"line_number":54,"context_line":"    $scope.$watch("},{"line_number":55,"context_line":"      \"ctrl.listFunctionExtraParams\","},{"line_number":56,"context_line":"      onListFunctionExtraParamsChange"},{"line_number":57,"context_line":"    );"}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_7c1daf65","line":54,"updated":"2016-08-03 18:33:33.000000000","message":"allows the resource list function parameters to be dynamic","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"}],"horizon/static/framework/widgets/table/hz-resource-table.controller.spec.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"de57377c9126bcd4cf5b2a6a83ea25ec412abb23","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        \u0027horizon.framework.conf.resource-type-registry.service\u0027: registry},"},{"line_number":52,"context_line":"        {resourceTypeName: \u0027OS::Test::Example\u0027});"},{"line_number":53,"context_line":"      $scope.ctrl \u003d ctrl;"},{"line_number":54,"context_line":"      $scope.$apply();"},{"line_number":55,"context_line":"    }));"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    it(\u0027exists\u0027, function() {"}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_bc73a7b3","line":54,"updated":"2016-08-03 18:33:33.000000000","message":"this gives our new watchers a chance to execute.","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"}],"horizon/static/framework/widgets/table/hz-resource-table.directive.js":[{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"aee1d46b412a4a0d4e662e322405fbfcff1fbf51","unresolved":false,"context_lines":[{"line_number":52,"context_line":"     \u003chz-resource-table"},{"line_number":53,"context_line":"        resource-type-name\u003d\"OS::Cinder::Volume\""},{"line_number":54,"context_line":"        track-by\u003d\"updated_at\""},{"line_number":55,"context_line":"        list-function-extra-params\u003d\"{region: 1234}\"\u003e"},{"line_number":56,"context_line":"     \u003c/hz-resource-table\u003e"},{"line_number":57,"context_line":"   \u003cdiv\u003eHere\u0027s some content below the table.\u003c/div\u003e"},{"line_number":58,"context_line":"   ```"}],"source_content_type":"text/javascript","patch_set":3,"id":"bacf61ea_a6985cc1","line":55,"updated":"2016-08-01 02:47:18.000000000","message":"nit: \"list-extra-params\" gets the message across just as well, I think, but that\u0027s just personal opinion :-)","commit_id":"b2a6d3a3ffd49ab8b2e34046f8ac87c25d2a0357"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"bc84a76d7432f23cfdafda4dba23a4e81e0202e4","unresolved":false,"context_lines":[{"line_number":52,"context_line":"     \u003chz-resource-table"},{"line_number":53,"context_line":"        resource-type-name\u003d\"OS::Cinder::Volume\""},{"line_number":54,"context_line":"        track-by\u003d\"updated_at\""},{"line_number":55,"context_line":"        list-function-extra-params\u003d\"{region: 1234}\"\u003e"},{"line_number":56,"context_line":"     \u003c/hz-resource-table\u003e"},{"line_number":57,"context_line":"   \u003cdiv\u003eHere\u0027s some content below the table.\u003c/div\u003e"},{"line_number":58,"context_line":"   ```"}],"source_content_type":"text/javascript","patch_set":3,"id":"bacf61ea_3b3d818f","line":55,"in_reply_to":"bacf61ea_a6985cc1","updated":"2016-08-01 16:11:05.000000000","message":"I agree with richard on this naming. In fact, it could just be list-params (there are no params passed right now so, why are these \"extra\" params?)","commit_id":"b2a6d3a3ffd49ab8b2e34046f8ac87c25d2a0357"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"de57377c9126bcd4cf5b2a6a83ea25ec412abb23","unresolved":false,"context_lines":[{"line_number":65,"context_line":"      scope: {"},{"line_number":66,"context_line":"        resourceTypeName: \u0027@\u0027,"},{"line_number":67,"context_line":"        trackBy: \u0027@?\u0027,"},{"line_number":68,"context_line":"        listFunctionExtraParams: \u0027\u003d?\u0027"},{"line_number":69,"context_line":"      },"},{"line_number":70,"context_line":"      bindToController: true,"},{"line_number":71,"context_line":"      templateUrl: basePath + \u0027table/hz-resource-table.html\u0027,"}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_dcf5bbed","line":68,"updated":"2016-08-03 18:33:33.000000000","message":"Here is the original purpose of this entire patch. To simply allow hz-resource-table to accept additional parameters that it should include in any calls to the registered list function. This allows a list function that requires an argument (such as a parent network id).","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"}],"horizon/static/framework/widgets/table/hz-table.directive.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"de57377c9126bcd4cf5b2a6a83ea25ec412abb23","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    ///////////////////"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    function link(scope, element, attrs) {"},{"line_number":81,"context_line":"      // By default, TableController sets trackId to \u0027id\u0027. Watch the"},{"line_number":82,"context_line":"      // track-rows-by attribute in case the parent wants to track items"},{"line_number":83,"context_line":"      // using a different key either at binding or at run-time."},{"line_number":84,"context_line":"      scope.$watch(attrs.trackRowsBy, function(newValue) {"}],"source_content_type":"text/javascript","patch_set":6,"id":"bacf61ea_7c55afc4","line":81,"updated":"2016-08-03 18:33:33.000000000","message":"If the caller uses anything other than \u0027id\u0027 as the track-rows-by value, the prior code broke the hz-select-all functionality because select all tracked selected items by \u0027id\u0027, but the checkboxes would check for is selected by whatever the parent track-by-id expression is.\n\nnotice a pattern? Another link function that has previously set scope data based on an attribute value AT LINK TIME...but doesn\u0027t respond to changes in that value which can easily occur if some parent doesn\u0027t initialize its data until some async event.","commit_id":"7339641fac40787dee8474be5cd6939291d55b0d"}]}
