)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"29efa7e085cf5a09b4d0721c492a8c9ead3c85cc","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Adding Resource Type code/name registration"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch adds to the registry service to allow for resource types to have"},{"line_number":10,"context_line":"their codes registered with common names."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I71bebe253452944ff518f85b8840cfe921602544"},{"line_number":13,"context_line":"Partially-Implements: blueprint angularize-images-table"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"dae33548_27073a19","line":10,"updated":"2016-02-17 15:31:40.000000000","message":"registered with Translatable names","commit_id":"4da37cabab569ee3f500fc5215c19838d1128fdf"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"39692b3eae864731e2c1b52c758596938d431daf","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Adding Resource Type code/name registration"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch adds to the registry service to allow for resource types to have"},{"line_number":10,"context_line":"their codes registered with common names."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I71bebe253452944ff518f85b8840cfe921602544"},{"line_number":13,"context_line":"Partially-Implements: blueprint angularize-images-table"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"dae33548_828b9467","line":10,"in_reply_to":"dae33548_27073a19","updated":"2016-02-17 15:45:07.000000000","message":"So, which do we want:\na) names that are already translated\nb) names that need to be translated later?","commit_id":"4da37cabab569ee3f500fc5215c19838d1128fdf"}],"horizon/static/framework/conf/resource-type-registry.service.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"29efa7e085cf5a09b4d0721c492a8c9ead3c85cc","unresolved":false,"context_lines":[{"line_number":159,"context_line":"     * @description"},{"line_number":160,"context_line":"     * Appends a mapping of a type codes to a name, e.g.:"},{"line_number":161,"context_line":"     * key is \u0027OS::Glance::Image\u0027 and value is \u0027Image\u0027."},{"line_number":162,"context_line":"     * Can be chained to make other service calls."},{"line_number":163,"context_line":"     */"},{"line_number":164,"context_line":"    function addTypeName(key, value) {"},{"line_number":165,"context_line":"      typeNames[key] \u003d value;"}],"source_content_type":"text/javascript","patch_set":2,"id":"dae33548_c72c8e9b","line":162,"updated":"2016-02-17 15:31:40.000000000","message":"I think you should mention and add an example showing the gettext so that people realize they should input the translated name.","commit_id":"4da37cabab569ee3f500fc5215c19838d1128fdf"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"39692b3eae864731e2c1b52c758596938d431daf","unresolved":false,"context_lines":[{"line_number":159,"context_line":"     * @description"},{"line_number":160,"context_line":"     * Appends a mapping of a type codes to a name, e.g.:"},{"line_number":161,"context_line":"     * key is \u0027OS::Glance::Image\u0027 and value is \u0027Image\u0027."},{"line_number":162,"context_line":"     * Can be chained to make other service calls."},{"line_number":163,"context_line":"     */"},{"line_number":164,"context_line":"    function addTypeName(key, value) {"},{"line_number":165,"context_line":"      typeNames[key] \u003d value;"}],"source_content_type":"text/javascript","patch_set":2,"id":"dae33548_225568f9","line":162,"in_reply_to":"dae33548_c72c8e9b","updated":"2016-02-17 15:45:07.000000000","message":"Makes sense (the calling code should pass this in pre-translated).","commit_id":"4da37cabab569ee3f500fc5215c19838d1128fdf"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"32a62451e4d36d6b5c85536d6d046aaa438f9155","unresolved":false,"context_lines":[{"line_number":55,"context_line":"      this.addProperty \u003d addProperty;"},{"line_number":56,"context_line":"      this.getName \u003d getName;"},{"line_number":57,"context_line":"      this.propLabel \u003d propLabel;"},{"line_number":58,"context_line":"      this.propValue \u003d propValue;"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"      /**"},{"line_number":61,"context_line":"       * @ngdoc function"}],"source_content_type":"text/javascript","patch_set":7,"id":"9aed3d3a_ba4ceac8","line":58,"updated":"2016-02-29 22:46:19.000000000","message":"Initialize itemActions, etc. on construction.","commit_id":"961c54884491968668698d2950afaa85e096cf9c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"d234a11da3dbb19c9213a33933c5b2ea56fa3734","unresolved":false,"context_lines":[{"line_number":55,"context_line":"      this.addProperty \u003d addProperty;"},{"line_number":56,"context_line":"      this.getName \u003d getName;"},{"line_number":57,"context_line":"      this.propLabel \u003d propLabel;"},{"line_number":58,"context_line":"      this.propValue \u003d propValue;"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"      /**"},{"line_number":61,"context_line":"       * @ngdoc function"}],"source_content_type":"text/javascript","patch_set":7,"id":"7af24918_0ab9f8e9","line":58,"in_reply_to":"9aed3d3a_ba4ceac8","updated":"2016-03-01 14:39:25.000000000","message":"Did this, and removed getItemActions and getBatchActions since this now inits those as extensible and the extensible object is chainable.","commit_id":"961c54884491968668698d2950afaa85e096cf9c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"32d9902401fb17323f65aaef7e17078ad8340977","unresolved":false,"context_lines":[{"line_number":163,"context_line":"        } else if (prop.value_mapping) {"},{"line_number":164,"context_line":"          if (angular.isDefined(prop.value_mapping[value])) {"},{"line_number":165,"context_line":"            return prop.value_mapping[value];"},{"line_number":166,"context_line":"          } else if (angular.isDefined(prop.default_value)) {"},{"line_number":167,"context_line":"            return prop.default_value;"},{"line_number":168,"context_line":"          }"},{"line_number":169,"context_line":"        }"}],"source_content_type":"text/javascript","patch_set":7,"id":"9aed3d3a_df056011","line":166,"updated":"2016-02-29 22:34:04.000000000","message":"Perhaps also have a default_function option per Travis\u0027 notes.","commit_id":"961c54884491968668698d2950afaa85e096cf9c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"d234a11da3dbb19c9213a33933c5b2ea56fa3734","unresolved":false,"context_lines":[{"line_number":163,"context_line":"        } else if (prop.value_mapping) {"},{"line_number":164,"context_line":"          if (angular.isDefined(prop.value_mapping[value])) {"},{"line_number":165,"context_line":"            return prop.value_mapping[value];"},{"line_number":166,"context_line":"          } else if (angular.isDefined(prop.default_value)) {"},{"line_number":167,"context_line":"            return prop.default_value;"},{"line_number":168,"context_line":"          }"},{"line_number":169,"context_line":"        }"}],"source_content_type":"text/javascript","patch_set":7,"id":"7af24918_cce56da9","line":166,"in_reply_to":"9aed3d3a_df056011","updated":"2016-03-01 14:39:25.000000000","message":"Done","commit_id":"961c54884491968668698d2950afaa85e096cf9c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"c99701aee6154c41b3c3e7946a3936452250cc68","unresolved":false,"context_lines":[{"line_number":222,"context_line":"     * Retrieves all information about a resource type.  Does not"},{"line_number":223,"context_line":"     * produce a new object.  Returns \u0027undefined\u0027 value if none found."},{"line_number":224,"context_line":"     */"},{"line_number":225,"context_line":"    function getResourceType(type) {"},{"line_number":226,"context_line":"      return resourceTypes[type];"},{"line_number":227,"context_line":"    }"},{"line_number":228,"context_line":"    /*"}],"source_content_type":"text/javascript","patch_set":7,"id":"9aed3d3a_3aae1a81","line":225,"range":{"start_line":225,"start_character":13,"end_line":225,"end_character":28},"updated":"2016-02-29 22:35:25.000000000","message":"make this be the standard getter/creator for resource types, integrate with the concepts below, to extend config when provided.","commit_id":"961c54884491968668698d2950afaa85e096cf9c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"d234a11da3dbb19c9213a33933c5b2ea56fa3734","unresolved":false,"context_lines":[{"line_number":222,"context_line":"     * Retrieves all information about a resource type.  Does not"},{"line_number":223,"context_line":"     * produce a new object.  Returns \u0027undefined\u0027 value if none found."},{"line_number":224,"context_line":"     */"},{"line_number":225,"context_line":"    function getResourceType(type) {"},{"line_number":226,"context_line":"      return resourceTypes[type];"},{"line_number":227,"context_line":"    }"},{"line_number":228,"context_line":"    /*"}],"source_content_type":"text/javascript","patch_set":7,"id":"7af24918_ef5dbeed","line":225,"range":{"start_line":225,"start_character":13,"end_line":225,"end_character":28},"in_reply_to":"9aed3d3a_3aae1a81","updated":"2016-03-01 14:39:25.000000000","message":"Done","commit_id":"961c54884491968668698d2950afaa85e096cf9c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"5607bbd5e6a9a63939aac2e5988e31eb7e216c78","unresolved":false,"context_lines":[{"line_number":152,"context_line":"       * of multiple functions, will chain the output of one to the input of"},{"line_number":153,"context_line":"       * the next."},{"line_number":154,"context_line":"       * \u0027value_mapping\u0027 provides a hash where, if a matching key is found,"},{"line_number":155,"context_line":"       * the value is returned.  If \u0027default_value\u0027 is present and no"},{"line_number":156,"context_line":"       * matching key is found, the default value is used."},{"line_number":157,"context_line":"       * If these features are not present, the original value is returned."},{"line_number":158,"context_line":"       * value."}],"source_content_type":"text/javascript","patch_set":9,"id":"7af24918_52dd7641","line":155,"updated":"2016-03-01 15:03:10.000000000","message":"Add docs for default_function.","commit_id":"03bc37b36beb6376ef8602e78fbd621e2131c5de"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"5607bbd5e6a9a63939aac2e5988e31eb7e216c78","unresolved":false,"context_lines":[{"line_number":232,"context_line":"     * @description"},{"line_number":233,"context_line":"     * Retrieves a function returning the type\u0027s item actions."},{"line_number":234,"context_line":"     */"},{"line_number":235,"context_line":"    function getItemActionsFunction(type) {"},{"line_number":236,"context_line":"      return getMemberFunction(type, \u0027itemActions\u0027);"},{"line_number":237,"context_line":"    }"},{"line_number":238,"context_line":""}],"source_content_type":"text/javascript","patch_set":9,"id":"7af24918_32b0aaf4","line":235,"range":{"start_line":235,"start_character":13,"end_line":235,"end_character":35},"updated":"2016-03-01 15:03:10.000000000","message":"Probably should move this into the ResourceType object.","commit_id":"03bc37b36beb6376ef8602e78fbd621e2131c5de"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"5607bbd5e6a9a63939aac2e5988e31eb7e216c78","unresolved":false,"context_lines":[{"line_number":261,"context_line":"     * @description"},{"line_number":262,"context_line":"     * Retrieves a function returning the type\u0027s batch actions."},{"line_number":263,"context_line":"     */"},{"line_number":264,"context_line":"    function getBatchActionsFunction(type) {"},{"line_number":265,"context_line":"      return getMemberFunction(type, \u0027batchActions\u0027);"},{"line_number":266,"context_line":"    }"},{"line_number":267,"context_line":""}],"source_content_type":"text/javascript","patch_set":9,"id":"7af24918_b29cba6a","line":264,"range":{"start_line":264,"start_character":13,"end_line":264,"end_character":36},"updated":"2016-03-01 15:03:10.000000000","message":"Probably should move this into the ResourceType object.","commit_id":"03bc37b36beb6376ef8602e78fbd621e2131c5de"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"/*"},{"line_number":2,"context_line":" *    (c) Copyright 2015 Hewlett-Packard Development Company, L.P."},{"line_number":3,"context_line":" *"},{"line_number":4,"context_line":" * Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":5,"context_line":" * you may not use this file except in compliance with the License."}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_4268f6f5","line":2,"range":{"start_line":2,"start_character":0,"end_line":2,"end_character":66},"updated":"2016-03-01 19:01:27.000000000","message":"nit: change copyright to HPE\n\n© Copyright 2015 Hewlett Packard Enterprise Development Company LP","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":17,"context_line":"(function() {"},{"line_number":18,"context_line":"  \u0027use strict\u0027;"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"  angular.module(\u0027horizon.framework.conf\u0027)"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"  .factory(\u0027horizon.framework.conf.resource-type-registry.service\u0027, registryService);"},{"line_number":23,"context_line":""}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_e20ca244","line":20,"range":{"start_line":20,"start_character":36,"end_line":20,"end_character":40},"updated":"2016-03-01 19:01:27.000000000","message":"-1: I think this is a utility, not something that changes how the framework itself operates.  I\u0027d move to horizon.framework.util while it is still easy.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":46,"context_line":"   * during injection, meaning API calls would be executed as the module"},{"line_number":47,"context_line":"   * is initialized.  This would mean those calls would be executed on any"},{"line_number":48,"context_line":"   * Angular context initialization, such as going to the login page.  Actions"},{"line_number":49,"context_line":"   * should instead place such code in their initScope() functions."},{"line_number":50,"context_line":"   */"},{"line_number":51,"context_line":"  function registryService(extensibleService) {"},{"line_number":52,"context_line":""}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_88b97fec","line":49,"updated":"2016-03-01 19:01:27.000000000","message":"nit: Consider elaborating on how the ResourceType provides high level container for only widely shared things (like property labels, property value filters and actions).\n\nIt *can* be used to store other kinds of things...(like views) but one doesn\u0027t need to add a high level ResourceType attribute for it until its use is widespread.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":51,"context_line":"  function registryService(extensibleService) {"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    function ResourceType() {"},{"line_number":54,"context_line":"      var properties \u003d {};"},{"line_number":55,"context_line":"      this.setProperty \u003d setProperty;"},{"line_number":56,"context_line":"      this.getName \u003d getName;"},{"line_number":57,"context_line":"      this.propLabel \u003d propLabel;"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_08bc4f04","line":54,"updated":"2016-03-01 19:01:27.000000000","message":"-1: I think more description is needed. Consider adding comments for each high level ResourceType attribute to give a better sense of their purpose.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":56,"context_line":"      this.getName \u003d getName;"},{"line_number":57,"context_line":"      this.propLabel \u003d propLabel;"},{"line_number":58,"context_line":"      this.propValue \u003d propValue;"},{"line_number":59,"context_line":"      this.itemActions \u003d [];"},{"line_number":60,"context_line":"      extensibleService(this.itemActions, this.itemActions);"},{"line_number":61,"context_line":"      this.batchActions \u003d [];"},{"line_number":62,"context_line":"      extensibleService(this.batchActions, this.batchActions);"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_3691ac9a","line":59,"range":{"start_line":59,"start_character":11,"end_line":59,"end_character":22},"updated":"2016-03-01 19:01:27.000000000","message":"-1: I\u0027d like to see description or example for the structure of an \u0027action\u0027 that can be registered in this list. Similar to example in images/actions/actions.module.js.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":58,"context_line":"      this.propValue \u003d propValue;"},{"line_number":59,"context_line":"      this.itemActions \u003d [];"},{"line_number":60,"context_line":"      extensibleService(this.itemActions, this.itemActions);"},{"line_number":61,"context_line":"      this.batchActions \u003d [];"},{"line_number":62,"context_line":"      extensibleService(this.batchActions, this.batchActions);"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"      /**"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_563c3893","line":61,"range":{"start_line":61,"start_character":11,"end_line":61,"end_character":23},"updated":"2016-03-01 19:01:27.000000000","message":"-1: I\u0027d like to see description or example for the structure of an \u0027action\u0027 that can be registered in this list. Similar to example in images/actions/actions.module.js.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":65,"context_line":"       * @ngdoc function"},{"line_number":66,"context_line":"       * @name setProperty"},{"line_number":67,"context_line":"       * @description"},{"line_number":68,"context_line":"       * Adds a property to the resource type object.  Replaces any existing"},{"line_number":69,"context_line":"       * definition.  These calls can be chained to other ResourceType"},{"line_number":70,"context_line":"       * functions."},{"line_number":71,"context_line":"       * @example"},{"line_number":72,"context_line":"       ```"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_a8e8bb7d","line":69,"range":{"start_line":68,"start_character":8,"end_line":69,"end_character":70},"updated":"2016-03-01 19:01:27.000000000","message":"-1: clarify the currently supported property lookups.  The code example is great, but by itself it is difficult to understand the possible options. \n\nCan probably just by pointing the user at the doc for propValue.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":74,"context_line":"         label: gettext(\"Kernel ID\")  // just provides the label."},{"line_number":75,"context_line":"                                      // values will be shown directly"},{"line_number":76,"context_line":"       })"},{"line_number":77,"context_line":"         .setProperty(\"disk_size\", {"},{"line_number":78,"context_line":"           label: gettext(\"Disk Size\"),"},{"line_number":79,"context_line":"           value_function: function(size) {      // uses function to"},{"line_number":80,"context_line":"             return interpolate(\"%s GiB\", size); // display values."},{"line_number":81,"context_line":"           }"},{"line_number":82,"context_line":"         })"},{"line_number":83,"context_line":"         .setProperty(\"status\", {"},{"line_number":84,"context_line":"           label: gettext(\"Status\"),"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_28fdcb3a","line":81,"range":{"start_line":77,"start_character":9,"end_line":81,"end_character":12},"updated":"2016-03-01 19:01:27.000000000","message":"nit: consider adding an example that shows a list of functions","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":113,"context_line":"       * Given a count, returns the appropriate name (e.g. singular or plural)"},{"line_number":114,"context_line":"       * @example"},{"line_number":115,"context_line":"       ```"},{"line_number":116,"context_line":"       var singleName \u003d resourceType.getName(1); // returns singular"},{"line_number":117,"context_line":"       ```"},{"line_number":118,"context_line":"       */"},{"line_number":119,"context_line":"      function getName(count) {"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_cb6a611a","line":116,"updated":"2016-03-01 19:01:27.000000000","message":"-1: Please also add an example of how names are set, similar to what you did in core.module.js.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":116,"context_line":"       var singleName \u003d resourceType.getName(1); // returns singular"},{"line_number":117,"context_line":"       ```"},{"line_number":118,"context_line":"       */"},{"line_number":119,"context_line":"      function getName(count) {"},{"line_number":120,"context_line":"        if (this.names) {"},{"line_number":121,"context_line":"          return ngettext.apply(null, this.names.concat([count]));"},{"line_number":122,"context_line":"        }"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_684a3385","line":119,"range":{"start_line":119,"start_character":15,"end_line":119,"end_character":22},"updated":"2016-03-01 19:01:27.000000000","message":"-1: Since this is a passthrough for ngettext, consider  changing to \u0027ngettextName\u0027 or \u0027getPluralizedName\u0027 or similar to that it is easier to understand why a count parameter is needed to fetch a simple string.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":144,"context_line":"       * @ngdoc function"},{"line_number":145,"context_line":"       * @name propValue"},{"line_number":146,"context_line":"       * @description"},{"line_number":147,"context_line":"       * Returns a well-formatted value given a property name and a source."},{"line_number":148,"context_line":"       * The formatting is determined by evaluating various options on the"},{"line_number":149,"context_line":"       * property."},{"line_number":150,"context_line":"       * \u0027value_function\u0027 provides a single or a list of functions that will"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_6b26adbb","line":147,"range":{"start_line":147,"start_character":68,"end_line":147,"end_character":74},"updated":"2016-03-01 19:01:27.000000000","message":"-1: What is a \"source\"? Perhaps you mean something like \"...name and a data value\"?","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":147,"context_line":"       * Returns a well-formatted value given a property name and a source."},{"line_number":148,"context_line":"       * The formatting is determined by evaluating various options on the"},{"line_number":149,"context_line":"       * property."},{"line_number":150,"context_line":"       * \u0027value_function\u0027 provides a single or a list of functions that will"},{"line_number":151,"context_line":"       * evaluate the source value as input and return output; or in the case"},{"line_number":152,"context_line":"       * of multiple functions, will chain the output of one to the input of"},{"line_number":153,"context_line":"       * the next."}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_0b49e95f","line":150,"updated":"2016-03-01 19:01:27.000000000","message":"nit: a line of whitespace between each property option would make this much more readable.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":152,"context_line":"       * of multiple functions, will chain the output of one to the input of"},{"line_number":153,"context_line":"       * the next."},{"line_number":154,"context_line":"       * \u0027value_mapping\u0027 provides a hash where, if a matching key is found,"},{"line_number":155,"context_line":"       * the value is returned.  If \u0027default_function\u0027 is present, the value"},{"line_number":156,"context_line":"       * is passed to the function and the result is used.  Otherwise, if"},{"line_number":157,"context_line":"       * \u0027default_value\u0027 is present and no matching key is found, the default"},{"line_number":158,"context_line":"       * value is used."}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_6bd06d54","line":155,"updated":"2016-03-01 19:01:27.000000000","message":"-1: comment is misleading. If a matching value it not found in the mapping,  fall back on \u0027default_function\u0027 and then \u0027default_value\u0027, if they are set.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":157,"context_line":"       * \u0027default_value\u0027 is present and no matching key is found, the default"},{"line_number":158,"context_line":"       * value is used."},{"line_number":159,"context_line":"       * If these features are not present, the original value is returned."},{"line_number":160,"context_line":"       * value."},{"line_number":161,"context_line":"       * @example"},{"line_number":162,"context_line":"       ```"},{"line_number":163,"context_line":"       var value \u003d resourceType.propValue(\u0027disk_size\u0027, 12); // Yields \u002712 GiB\u0027"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_2bbf85fc","line":160,"range":{"start_line":160,"start_character":9,"end_line":160,"end_character":14},"updated":"2016-03-01 19:01:27.000000000","message":"-1: delete me","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":179,"context_line":"        } else if (prop.value_mapping) {"},{"line_number":180,"context_line":"          if (angular.isDefined(prop.value_mapping[value])) {"},{"line_number":181,"context_line":"            return prop.value_mapping[value];"},{"line_number":182,"context_line":"          } else if (angular.isDefined(prop.default_function)) {"},{"line_number":183,"context_line":"            return prop.default_function(value);"},{"line_number":184,"context_line":"          } else if (angular.isDefined(prop.default_value)) {"},{"line_number":185,"context_line":"            return prop.default_value;"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_0b01e9ae","line":182,"range":{"start_line":182,"start_character":44,"end_line":182,"end_character":60},"updated":"2016-03-01 19:01:27.000000000","message":"-1: this only has meaning IF a value_mapping is set. Consider changing to \"value_mapping_default_function\" or similar to make it more clear when it will be used.  For example, it is not used if neither value_function nor value_mapping are defined...however its name suggests it might be a peer to both of those options.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":181,"context_line":"            return prop.value_mapping[value];"},{"line_number":182,"context_line":"          } else if (angular.isDefined(prop.default_function)) {"},{"line_number":183,"context_line":"            return prop.default_function(value);"},{"line_number":184,"context_line":"          } else if (angular.isDefined(prop.default_value)) {"},{"line_number":185,"context_line":"            return prop.default_value;"},{"line_number":186,"context_line":"          }"},{"line_number":187,"context_line":"        }"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_ab26f565","line":184,"range":{"start_line":184,"start_character":44,"end_line":184,"end_character":57},"updated":"2016-03-01 19:01:27.000000000","message":"-1: consider value_mapping_default_value or similar","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"053ef1a9dc442e862ade3ecd3d6e67c48e843efb","unresolved":false,"context_lines":[{"line_number":149,"context_line":"       var singleName \u003d resourceType.getName(1); // returns singular"},{"line_number":150,"context_line":"       ```"},{"line_number":151,"context_line":"       */"},{"line_number":152,"context_line":"      function getName(count) {"},{"line_number":153,"context_line":"        if (this.names) {"},{"line_number":154,"context_line":"          return ngettext.apply(null, this.names.concat([count]));"},{"line_number":155,"context_line":"        }"}],"source_content_type":"text/javascript","patch_set":12,"id":"7af24918_9326c766","line":152,"updated":"2016-03-01 21:42:10.000000000","message":"should it default to 1 if count isn\u0027t specified?","commit_id":"eaa99f094d5f85f45e373db4f75c6a101f12e64b"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"053ef1a9dc442e862ade3ecd3d6e67c48e843efb","unresolved":false,"context_lines":[{"line_number":165,"context_line":"       var name \u003d resourceType.propLabel(\u0027disk_format\u0027); // Yields \u0027Disk Format\u0027"},{"line_number":166,"context_line":"       ```"},{"line_number":167,"context_line":"       */"},{"line_number":168,"context_line":"      function propLabel(name) {"},{"line_number":169,"context_line":"        var prop \u003d properties[name];"},{"line_number":170,"context_line":"        if (angular.isDefined(prop) \u0026\u0026 angular.isDefined(prop.label)) {"},{"line_number":171,"context_line":"          return prop.label;"}],"source_content_type":"text/javascript","patch_set":12,"id":"7af24918_33bff3d1","line":168,"updated":"2016-03-01 21:42:10.000000000","message":"how about\n  formatPropertyLabel","commit_id":"eaa99f094d5f85f45e373db4f75c6a101f12e64b"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"2552bacfd405c9c0793e7ab91d26f4703b0f6de9","unresolved":false,"context_lines":[{"line_number":165,"context_line":"       var name \u003d resourceType.propLabel(\u0027disk_format\u0027); // Yields \u0027Disk Format\u0027"},{"line_number":166,"context_line":"       ```"},{"line_number":167,"context_line":"       */"},{"line_number":168,"context_line":"      function propLabel(name) {"},{"line_number":169,"context_line":"        var prop \u003d properties[name];"},{"line_number":170,"context_line":"        if (angular.isDefined(prop) \u0026\u0026 angular.isDefined(prop.label)) {"},{"line_number":171,"context_line":"          return prop.label;"}],"source_content_type":"text/javascript","patch_set":12,"id":"7af24918_6ee23005","line":168,"in_reply_to":"7af24918_33bff3d1","updated":"2016-03-01 22:00:31.000000000","message":"-1 tooo looong :-)","commit_id":"eaa99f094d5f85f45e373db4f75c6a101f12e64b"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"053ef1a9dc442e862ade3ecd3d6e67c48e843efb","unresolved":false,"context_lines":[{"line_number":201,"context_line":"       var value \u003d resourceType.propValue(\u0027disk_size\u0027, 12); // Yields \u002712 GiB\u0027"},{"line_number":202,"context_line":"       ```"},{"line_number":203,"context_line":"       */"},{"line_number":204,"context_line":"      function propValue(name, value) {"},{"line_number":205,"context_line":"        var prop \u003d properties[name];"},{"line_number":206,"context_line":"        if (angular.isUndefined(prop)) {"},{"line_number":207,"context_line":"          // no property definition; return the original value."}],"source_content_type":"text/javascript","patch_set":12,"id":"7af24918_73b05bf5","line":204,"updated":"2016-03-01 21:42:10.000000000","message":"how about formatPropertyValue","commit_id":"eaa99f094d5f85f45e373db4f75c6a101f12e64b"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"2552bacfd405c9c0793e7ab91d26f4703b0f6de9","unresolved":false,"context_lines":[{"line_number":201,"context_line":"       var value \u003d resourceType.propValue(\u0027disk_size\u0027, 12); // Yields \u002712 GiB\u0027"},{"line_number":202,"context_line":"       ```"},{"line_number":203,"context_line":"       */"},{"line_number":204,"context_line":"      function propValue(name, value) {"},{"line_number":205,"context_line":"        var prop \u003d properties[name];"},{"line_number":206,"context_line":"        if (angular.isUndefined(prop)) {"},{"line_number":207,"context_line":"          // no property definition; return the original value."}],"source_content_type":"text/javascript","patch_set":12,"id":"7af24918_0e1bac1c","line":204,"in_reply_to":"7af24918_73b05bf5","updated":"2016-03-01 22:00:31.000000000","message":"I was going to comment the same thing - but looking at sample usage the invocation to get to this is already soo much typing :/","commit_id":"eaa99f094d5f85f45e373db4f75c6a101f12e64b"}],"horizon/static/framework/conf/resource-type-registry.service.spec.js":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"ec27ae172034748f7e7c321c1f5cf94844604472","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        expect(type.getName(2)).toBeUndefined();"},{"line_number":159,"context_line":"      });"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"      it(\u0027returns singluar if count not provided\u0027, function() {"},{"line_number":162,"context_line":"        var type \u003d service.getResourceType(\u0027something\u0027,"},{"line_number":163,"context_line":"          {names: [\u0027Name\u0027, \u0027Names\u0027]});"},{"line_number":164,"context_line":"        expect(type.getName()).toBe(\u0027Names\u0027);"}],"source_content_type":"text/javascript","patch_set":13,"id":"7af24918_eeaac06f","line":161,"range":{"start_line":161,"start_character":18,"end_line":161,"end_character":26},"updated":"2016-03-01 22:02:07.000000000","message":"plural","commit_id":"c9ac7f7fc01d7c06e0de809e8c26e218809f0042"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"cff643de503b85c8855901755ffccbae978302fd","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        expect(type.getName(2)).toBeUndefined();"},{"line_number":159,"context_line":"      });"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"      it(\u0027returns singluar if count not provided\u0027, function() {"},{"line_number":162,"context_line":"        var type \u003d service.getResourceType(\u0027something\u0027,"},{"line_number":163,"context_line":"          {names: [\u0027Name\u0027, \u0027Names\u0027]});"},{"line_number":164,"context_line":"        expect(type.getName()).toBe(\u0027Names\u0027);"}],"source_content_type":"text/javascript","patch_set":13,"id":"7af24918_f06d7e05","line":161,"range":{"start_line":161,"start_character":18,"end_line":161,"end_character":26},"in_reply_to":"7af24918_eeaac06f","updated":"2016-03-01 22:28:01.000000000","message":"Done","commit_id":"c9ac7f7fc01d7c06e0de809e8c26e218809f0042"}],"openstack_dashboard/static/app/core/core.module.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"29efa7e085cf5a09b4d0721c492a8c9ead3c85cc","unresolved":false,"context_lines":[{"line_number":57,"context_line":"      .addTypeName(\u0027OS::Nova::Flavor\u0027, gettext(\u0027Flavor\u0027))"},{"line_number":58,"context_line":"      .addTypeName(\u0027OS::Nova::Keypair\u0027, gettext(\u0027Key Pair\u0027))"},{"line_number":59,"context_line":"      .addTypeName(\u0027OS::Designate::Zone\u0027, gettext(\u0027DNS Domain\u0027))"},{"line_number":60,"context_line":"      .addTypeName(\u0027OS::Designate::Recordset\u0027, gettext(\u0027DNS Record\u0027));"},{"line_number":61,"context_line":"  }"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":2,"id":"dae33548_7c8ef9d0","line":60,"updated":"2016-02-17 15:31:40.000000000","message":"I added several yesterday. Can you add them:\n\nhttps://review.openstack.org/#/c/227036/35/openstack_dashboard/dashboards/project/static/dashboard/project/search/filters/resource-type-name.filter.js","commit_id":"4da37cabab569ee3f500fc5215c19838d1128fdf"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"f295a97520fd3481bfb69582f2650781dbc7c1c3","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"  function performRegistrations(registry) {"},{"line_number":54,"context_line":"    registry.addResourceType(\u0027OS::Glance::Metadef\u0027, {"},{"line_number":55,"context_line":"      name: gettext(\u0027Metadata Definition\u0027)"},{"line_number":56,"context_line":"    });"},{"line_number":57,"context_line":"    registry.addResourceType(\u0027OS::Nova::Server\u0027, {"},{"line_number":58,"context_line":"      name: gettext(\u0027Server\u0027)"}],"source_content_type":"text/javascript","patch_set":5,"id":"9aed3d3a_055af229","line":55,"range":{"start_line":55,"start_character":6,"end_line":55,"end_character":10},"updated":"2016-02-29 16:12:39.000000000","message":"Should use \u0027names\u0027 feature.","commit_id":"0d6cf034e4af049709d32639978c34bd55544fe2"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"b81900ee10c92cd596022c0dfe6471303031d9ab","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    });"},{"line_number":69,"context_line":"    registry.addResourceType(\u0027OS::Designate::Recordset\u0027, {"},{"line_number":70,"context_line":"      names: [gettext(\u0027DNS Record\u0027), gettext(\u0027DNS Records\u0027)]"},{"line_number":71,"context_line":"    });"},{"line_number":72,"context_line":"  }"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":6,"id":"9aed3d3a_9e9be817","line":71,"updated":"2016-02-29 18:19:14.000000000","message":"Need:\n\n      \u0027OS::Cinder::Backup\u0027: gettext(\u0027Volume Backup\u0027),\n      \u0027OS::Cinder::Snapshot\u0027: gettext(\u0027Volume Snapshot\u0027),\n      \u0027OS::Cinder::Volume\u0027: gettext(\u0027Volume\u0027),\n      \u0027OS::Nova::Flavor\u0027: gettext(\u0027Flavor\u0027),\n      \u0027OS::Swift::Account\u0027: gettext(\u0027Object Account\u0027),\n      \u0027OS::Swift::Container\u0027: gettext(\u0027Object Container\u0027),\n      \u0027OS::Swift::Object\u0027: gettext(\u0027Object\u0027),\n\n        \u0027OS::Neutron::HealthMonitor\u0027: Network Health Monitor\n        \u0027OS::Neutron::Net\u0027: Network\n        \u0027OS::Neutron::Pool\u0027: Load Balancer Pool\n        \u0027OS::Neutron::PoolMember\u0027: Load Balancer Pool Member\n        \u0027OS::Neutron::Port\u0027: Network Port\n        \u0027OS::Neutron::Router\u0027: Network Router\n        \u0027OS::Neutron::Subnet\u0027: Network Subnet","commit_id":"acb23befe1a11243bc72272c1089ebb2cccbf6de"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"e32cc625e569bb7b720f90894e33b28c2e838c1c","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    });"},{"line_number":69,"context_line":"    registry.addResourceType(\u0027OS::Designate::Recordset\u0027, {"},{"line_number":70,"context_line":"      names: [gettext(\u0027DNS Record\u0027), gettext(\u0027DNS Records\u0027)]"},{"line_number":71,"context_line":"    });"},{"line_number":72,"context_line":"  }"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"})();"}],"source_content_type":"text/javascript","patch_set":6,"id":"9aed3d3a_a6721d0f","line":71,"in_reply_to":"9aed3d3a_9e9be817","updated":"2016-02-29 21:18:05.000000000","message":"Done","commit_id":"acb23befe1a11243bc72272c1089ebb2cccbf6de"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    var path \u003d $windowProvider.$get().STATIC_URL + \u0027app/core/\u0027;"},{"line_number":50,"context_line":"    $provide.constant(\u0027horizon.app.core.basePath\u0027, path);"},{"line_number":51,"context_line":"  }"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"  function performRegistrations(registry) {"},{"line_number":54,"context_line":"    registry.getResourceType(\u0027OS::Glance::Metadef\u0027, {"},{"line_number":55,"context_line":"      names: [gettext(\u0027Metadata Definition\u0027), gettext(\u0027Metadata Definitions\u0027)]"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_36352cda","line":52,"updated":"2016-03-01 19:01:27.000000000","message":"-1: I *think* this is intended to provide default names for core-ish resource types...but once that resource type is fully supported client side, these registrations move to that module (like images)...right?\n\nIf so, at least a comment here explaining they are temporary...or perhaps just remove them since they are unused?\n\nIf they are used AND this is the spot to set them, then consider creating the constants as well so that there is one way to get the \"OS::Nova::Flavor\" string for example.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"92837134be539fceff2d8e5f29e9f888a398de6a","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    var path \u003d $windowProvider.$get().STATIC_URL + \u0027app/core/\u0027;"},{"line_number":50,"context_line":"    $provide.constant(\u0027horizon.app.core.basePath\u0027, path);"},{"line_number":51,"context_line":"  }"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"  function performRegistrations(registry) {"},{"line_number":54,"context_line":"    registry.getResourceType(\u0027OS::Glance::Metadef\u0027, {"},{"line_number":55,"context_line":"      names: [gettext(\u0027Metadata Definition\u0027), gettext(\u0027Metadata Definitions\u0027)]"}],"source_content_type":"text/javascript","patch_set":11,"id":"7af24918_89417e0e","line":52,"updated":"2016-03-01 19:54:53.000000000","message":"I just ran this through the searchlight code and switched to doing property lookups. We are missing all of the properties that have the property value set to \u0027not-registered\u0027.\n\nI\u0027d really like to see us register as many as possible or possibly have a way to make this load in easier:\n\nhttp://paste.openstack.org/show/488830/","commit_id":"3bcbce0070a46c816465585b88885526f517ec1b"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"64a78f4241348a5abd6b5e2e3be2cb716a2c0a2a","unresolved":false,"context_lines":[{"line_number":70,"context_line":"    registry.getResourceType(\u0027OS::Designate::Zone\u0027, {"},{"line_number":71,"context_line":"      names: [gettext(\u0027DNS Domain\u0027), gettext(\u0027DNS Domains\u0027)]"},{"line_number":72,"context_line":"    });"},{"line_number":73,"context_line":"    registry.getResourceType(\u0027OS::Designate::Recordset\u0027, {"},{"line_number":74,"context_line":"      names: [gettext(\u0027DNS Record\u0027), gettext(\u0027DNS Records\u0027)]"},{"line_number":75,"context_line":"    });"},{"line_number":76,"context_line":"    registry.getResourceType(\u0027OS::Cinder::Backup\u0027, {"}],"source_content_type":"text/javascript","patch_set":13,"id":"7af24918_5001d2ad","line":73,"updated":"2016-03-01 22:20:17.000000000","message":"Needs capital S.  Since the lookup is case sensitive:\n\nOS::Designate::RecordSet\n\nSee:\n\nhttp://pasteboard.co/1WXM7NTj.png","commit_id":"c9ac7f7fc01d7c06e0de809e8c26e218809f0042"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"cff643de503b85c8855901755ffccbae978302fd","unresolved":false,"context_lines":[{"line_number":70,"context_line":"    registry.getResourceType(\u0027OS::Designate::Zone\u0027, {"},{"line_number":71,"context_line":"      names: [gettext(\u0027DNS Domain\u0027), gettext(\u0027DNS Domains\u0027)]"},{"line_number":72,"context_line":"    });"},{"line_number":73,"context_line":"    registry.getResourceType(\u0027OS::Designate::Recordset\u0027, {"},{"line_number":74,"context_line":"      names: [gettext(\u0027DNS Record\u0027), gettext(\u0027DNS Records\u0027)]"},{"line_number":75,"context_line":"    });"},{"line_number":76,"context_line":"    registry.getResourceType(\u0027OS::Cinder::Backup\u0027, {"}],"source_content_type":"text/javascript","patch_set":13,"id":"7af24918_b063f619","line":73,"in_reply_to":"7af24918_5001d2ad","updated":"2016-03-01 22:28:01.000000000","message":"Done","commit_id":"c9ac7f7fc01d7c06e0de809e8c26e218809f0042"}],"openstack_dashboard/static/app/core/images/actions/actions.module.js":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"dd1590e423acd1878bc59be3287f0920c6e735eb","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        template: {"},{"line_number":53,"context_line":"          text: gettext(\u0027Launch\u0027)"},{"line_number":54,"context_line":"        }"},{"line_number":55,"context_line":"      }, 500)"},{"line_number":56,"context_line":"      .append({"},{"line_number":57,"context_line":"        id: \u0027createVolumeAction\u0027,"},{"line_number":58,"context_line":"        service: createVolumeService,"}],"source_content_type":"text/javascript","patch_set":9,"id":"7af24918_1bd669c5","line":55,"range":{"start_line":55,"start_character":7,"end_line":55,"end_character":12},"updated":"2016-03-01 15:39:07.000000000","message":"I should remove these priorities as part of this patch.","commit_id":"03bc37b36beb6376ef8602e78fbd621e2131c5de"}],"openstack_dashboard/static/app/core/images/detail/image-detail.controller.js":[{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"2552bacfd405c9c0793e7ab91d26f4703b0f6de9","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"  function ImageDetailController("},{"line_number":32,"context_line":"    tableRoute,"},{"line_number":33,"context_line":"    imageResourceTypeCode,"},{"line_number":34,"context_line":"    glanceAPI,"},{"line_number":35,"context_line":"    keystoneAPI,"},{"line_number":36,"context_line":"    registry,"}],"source_content_type":"text/javascript","patch_set":12,"id":"7af24918_2e0ae8d2","line":33,"updated":"2016-03-01 22:00:31.000000000","message":"IMAGE_RESOURCE_TYPE ?\n\nWe use all caps in other places for \"constant strings\" like this.","commit_id":"eaa99f094d5f85f45e373db4f75c6a101f12e64b"}],"openstack_dashboard/static/app/core/images/detail/image-detail.html":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"97fa075c7e165835e863b091dc285b17b3c4983f","unresolved":false,"context_lines":[{"line_number":94,"context_line":"          \u003cdl class\u003d\"dl-horizontal\"\u003e"},{"line_number":95,"context_line":"            \u003cdiv ng-repeat\u003d\"prop in ctrl.image.properties\"\u003e"},{"line_number":96,"context_line":"              \u003cdiv\u003e"},{"line_number":97,"context_line":"                \u003cdt data-toggle\u003d\"tooltip\" title\u003d\"{$ ctrl.resourceType.propLabel(prop.name) $}\"\u003e{$ ctrl.resourceType.propLabel(prop.name) $}\u003c/dt\u003e"},{"line_number":98,"context_line":"                \u003cdd\u003e{$ ctrl.resourceType.propLabel(prop.value) $}\u003c/dd\u003e"},{"line_number":99,"context_line":"              \u003c/div\u003e"},{"line_number":100,"context_line":"            \u003c/div\u003e"}],"source_content_type":"text/html","patch_set":9,"id":"7af24918_224cca6f","line":97,"updated":"2016-03-01 17:52:14.000000000","message":"Might line wrap this for reviewability?","commit_id":"03bc37b36beb6376ef8602e78fbd621e2131c5de"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":71,"context_line":"          \u003chr\u003e"},{"line_number":72,"context_line":"          \u003cdl class\u003d\"dl-horizontal\"\u003e"},{"line_number":73,"context_line":"            \u003cdiv ng-repeat\u003d\"prop in ctrl.image.properties\"\u003e"},{"line_number":74,"context_line":"              \u003cdt data-toggle\u003d\"tooltip\" title\u003d\"{$ ctrl.resourceType.propLabel(prop.name) $}\"\u003e{$ ctrl.resourceType.propLabel(prop.name) $}\u003c/dt\u003e"},{"line_number":75,"context_line":"              \u003cdd\u003e{$ ctrl.resourceType.propLabel(prop.value) $}\u003c/dd\u003e"},{"line_number":76,"context_line":"            \u003c/div\u003e"},{"line_number":77,"context_line":"          \u003c/dl\u003e"}],"source_content_type":"text/html","patch_set":10,"id":"7af24918_f672a47b","line":74,"range":{"start_line":74,"start_character":96,"end_line":74,"end_character":134},"updated":"2016-03-01 19:01:27.000000000","message":"+1 This is fantastic to enable a view to display data about types where it doesn\u0027t necessarily know all the human readable label names.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"7b8cad03f9e55d000e643ad2f53b51b1d8a2ebb4","unresolved":false,"context_lines":[{"line_number":71,"context_line":"          \u003chr\u003e"},{"line_number":72,"context_line":"          \u003cdl class\u003d\"dl-horizontal\"\u003e"},{"line_number":73,"context_line":"            \u003cdiv ng-repeat\u003d\"prop in ctrl.image.properties\"\u003e"},{"line_number":74,"context_line":"              \u003cdt data-toggle\u003d\"tooltip\" title\u003d\"{$ ctrl.resourceType.propLabel(prop.name) $}\"\u003e{$ ctrl.resourceType.propLabel(prop.name) $}\u003c/dt\u003e"},{"line_number":75,"context_line":"              \u003cdd\u003e{$ ctrl.resourceType.propLabel(prop.value) $}\u003c/dd\u003e"},{"line_number":76,"context_line":"            \u003c/div\u003e"},{"line_number":77,"context_line":"          \u003c/dl\u003e"}],"source_content_type":"text/html","patch_set":10,"id":"7af24918_4ba651c2","line":74,"updated":"2016-03-01 19:28:47.000000000","message":"The point of hover was to give the raw property name (sometimes useful).","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"a5353c1faf96e2a647781b2091e01a05d67ca3a2","unresolved":false,"context_lines":[{"line_number":72,"context_line":"          \u003cdl class\u003d\"dl-horizontal\"\u003e"},{"line_number":73,"context_line":"            \u003cdiv ng-repeat\u003d\"prop in ctrl.image.properties\"\u003e"},{"line_number":74,"context_line":"              \u003cdt data-toggle\u003d\"tooltip\" title\u003d\"{$ ctrl.resourceType.propLabel(prop.name) $}\"\u003e{$ ctrl.resourceType.propLabel(prop.name) $}\u003c/dt\u003e"},{"line_number":75,"context_line":"              \u003cdd\u003e{$ ctrl.resourceType.propLabel(prop.value) $}\u003c/dd\u003e"},{"line_number":76,"context_line":"            \u003c/div\u003e"},{"line_number":77,"context_line":"          \u003c/dl\u003e"},{"line_number":78,"context_line":"        \u003c/div\u003e"}],"source_content_type":"text/html","patch_set":10,"id":"7af24918_5c79f992","line":75,"range":{"start_line":75,"start_character":43,"end_line":75,"end_character":49},"updated":"2016-03-01 19:17:56.000000000","message":"Whoops!  This should be propValue!","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"}],"openstack_dashboard/static/app/core/images/images.module.js":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"39692b3eae864731e2c1b52c758596938d431daf","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    updateMetadataService,"},{"line_number":58,"context_line":"    imageResourceType)"},{"line_number":59,"context_line":"  {"},{"line_number":60,"context_line":"    registry.addTypeName(imageResourceType, \u0027Image\u0027);"},{"line_number":61,"context_line":"    registry.getRowActions(imageResourceType)"},{"line_number":62,"context_line":"      .append({"},{"line_number":63,"context_line":"        id: \u0027rowLaunchInstanceService\u0027,"}],"source_content_type":"text/javascript","patch_set":2,"id":"dae33548_c2059c11","line":60,"range":{"start_line":60,"start_character":44,"end_line":60,"end_character":51},"updated":"2016-02-17 15:45:07.000000000","message":"Needs to be translated.","commit_id":"4da37cabab569ee3f500fc5215c19838d1128fdf"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"f295a97520fd3481bfb69582f2650781dbc7c1c3","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    })"},{"line_number":46,"context_line":"      .addProperty(\u0027disk_format\u0027, {"},{"line_number":47,"context_line":"        label: gettext(\u0027Disk Format\u0027),"},{"line_number":48,"context_line":"        value_mapping: {"},{"line_number":49,"context_line":"          aki: gettext(\u0027AKI\u0027),"},{"line_number":50,"context_line":"          ami: gettext(\u0027AMI\u0027)"},{"line_number":51,"context_line":"        }"},{"line_number":52,"context_line":"      });"},{"line_number":53,"context_line":"  }"},{"line_number":54,"context_line":""}],"source_content_type":"text/javascript","patch_set":5,"id":"9aed3d3a_656adeb4","line":51,"range":{"start_line":48,"start_character":8,"end_line":51,"end_character":9},"updated":"2016-02-29 16:12:39.000000000","message":"probably clear this out for now or use a better example.","commit_id":"0d6cf034e4af049709d32639978c34bd55544fe2"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"32d9902401fb17323f65aaef7e17078ad8340977","unresolved":false,"context_lines":[{"line_number":40,"context_line":"  ];"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"  function registerImageType(registry, imageResourceType) {"},{"line_number":43,"context_line":"    registry.addResourceType(imageResourceType, {"},{"line_number":44,"context_line":"      names: [gettext(\u0027Image\u0027), gettext(\u0027Images\u0027)]"},{"line_number":45,"context_line":"    })"},{"line_number":46,"context_line":"      .addProperty(\u0027architecture\u0027, {"}],"source_content_type":"text/javascript","patch_set":7,"id":"9aed3d3a_1f150848","line":43,"range":{"start_line":43,"start_character":13,"end_line":43,"end_character":16},"updated":"2016-02-29 22:34:04.000000000","message":"registerResourceType?","commit_id":"961c54884491968668698d2950afaa85e096cf9c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"d234a11da3dbb19c9213a33933c5b2ea56fa3734","unresolved":false,"context_lines":[{"line_number":40,"context_line":"  ];"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"  function registerImageType(registry, imageResourceType) {"},{"line_number":43,"context_line":"    registry.addResourceType(imageResourceType, {"},{"line_number":44,"context_line":"      names: [gettext(\u0027Image\u0027), gettext(\u0027Images\u0027)]"},{"line_number":45,"context_line":"    })"},{"line_number":46,"context_line":"      .addProperty(\u0027architecture\u0027, {"}],"source_content_type":"text/javascript","patch_set":7,"id":"7af24918_efcf7eb1","line":43,"range":{"start_line":43,"start_character":13,"end_line":43,"end_character":16},"in_reply_to":"9aed3d3a_1f150848","updated":"2016-03-01 14:39:25.000000000","message":"Changed to consolidate to getResourceType().","commit_id":"961c54884491968668698d2950afaa85e096cf9c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"32d9902401fb17323f65aaef7e17078ad8340977","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    registry.addResourceType(imageResourceType, {"},{"line_number":44,"context_line":"      names: [gettext(\u0027Image\u0027), gettext(\u0027Images\u0027)]"},{"line_number":45,"context_line":"    })"},{"line_number":46,"context_line":"      .addProperty(\u0027architecture\u0027, {"},{"line_number":47,"context_line":"        label: gettext(\u0027Architecture\u0027)"},{"line_number":48,"context_line":"      })"},{"line_number":49,"context_line":"      .addProperty(\u0027kernel_id\u0027, {"}],"source_content_type":"text/javascript","patch_set":7,"id":"9aed3d3a_7f609401","line":46,"range":{"start_line":46,"start_character":7,"end_line":46,"end_character":10},"updated":"2016-02-29 22:34:04.000000000","message":"setProperty makes more sense.","commit_id":"961c54884491968668698d2950afaa85e096cf9c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"d234a11da3dbb19c9213a33933c5b2ea56fa3734","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    registry.addResourceType(imageResourceType, {"},{"line_number":44,"context_line":"      names: [gettext(\u0027Image\u0027), gettext(\u0027Images\u0027)]"},{"line_number":45,"context_line":"    })"},{"line_number":46,"context_line":"      .addProperty(\u0027architecture\u0027, {"},{"line_number":47,"context_line":"        label: gettext(\u0027Architecture\u0027)"},{"line_number":48,"context_line":"      })"},{"line_number":49,"context_line":"      .addProperty(\u0027kernel_id\u0027, {"}],"source_content_type":"text/javascript","patch_set":7,"id":"7af24918_2fca06a2","line":46,"range":{"start_line":46,"start_character":7,"end_line":46,"end_character":10},"in_reply_to":"9aed3d3a_7f609401","updated":"2016-03-01 14:39:25.000000000","message":"Done","commit_id":"961c54884491968668698d2950afaa85e096cf9c"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"a9032580636e9bb032199edcbfcf7e06edc191c7","unresolved":false,"context_lines":[{"line_number":26,"context_line":"   * to support and display images related content."},{"line_number":27,"context_line":"   */"},{"line_number":28,"context_line":"  angular"},{"line_number":29,"context_line":"    .module(\u0027horizon.app.core.images\u0027, [\u0027ngRoute\u0027, \u0027horizon.framework.conf\u0027,"},{"line_number":30,"context_line":"      \u0027horizon.app.core.images.actions\u0027])"},{"line_number":31,"context_line":"    .constant(\u0027horizon.app.core.images.events\u0027, events())"},{"line_number":32,"context_line":"    .constant(\u0027horizon.app.core.images.non_bootable_image_types\u0027, [\u0027aki\u0027, \u0027ari\u0027])"}],"source_content_type":"text/javascript","patch_set":10,"id":"7af24918_16fab042","line":29,"range":{"start_line":29,"start_character":52,"end_line":29,"end_character":74},"updated":"2016-03-01 19:01:27.000000000","message":"-1: I\u0027m pretty sure this isn\u0027t necessary. horizon.app already depends on framework, which depends on conf. My main concern is that it encourages people to mistakenly directly add all dependencies for a module into that modules dependency list...which makes testing more difficult.\n\nngRoute can likely be moved up to app.core as well.\n\nSee https://docs.angularjs.org/guide/module \n\nWhen bootstrapping, first Angular applies all constant definitions. Then Angular applies configuration blocks in the same order they were registered.","commit_id":"443b189da842ffa4260ca9c8dc34767c253b6e6d"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"68a6ecdb14145f17a3fd9ef003db7d9932c97d4b","unresolved":false,"context_lines":[{"line_number":26,"context_line":"   * to support and display images related content."},{"line_number":27,"context_line":"   */"},{"line_number":28,"context_line":"  angular"},{"line_number":29,"context_line":"    .module(\u0027horizon.app.core.images\u0027, [\u0027ngRoute\u0027, /*\u0027horizon.framework.conf\u0027,*/"},{"line_number":30,"context_line":"      \u0027horizon.app.core.images.actions\u0027])"},{"line_number":31,"context_line":"    .constant(\u0027horizon.app.core.images.events\u0027, events())"},{"line_number":32,"context_line":"    .constant(\u0027horizon.app.core.images.non_bootable_image_types\u0027, [\u0027aki\u0027, \u0027ari\u0027])"}],"source_content_type":"text/javascript","patch_set":12,"id":"7af24918_38307256","line":29,"range":{"start_line":29,"start_character":51,"end_line":29,"end_character":80},"updated":"2016-03-01 21:27:52.000000000","message":"whoops.","commit_id":"eaa99f094d5f85f45e373db4f75c6a101f12e64b"}]}
