)]}'
{"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":"f80a0763f07067f40584200a9d8aadc2eb336afb","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        registry.resourceTypes[type] \u003d {};"},{"line_number":26,"context_line":"      }"},{"line_number":27,"context_line":"      registry.resourceTypes[type][member] \u003d (registry.resourceTypes[type]"},{"line_number":28,"context_line":"        [member] || []).concat(actions);"},{"line_number":29,"context_line":"    }"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    function getActionsFunction(member, type) {"}],"source_content_type":"text/javascript","patch_set":5,"id":"3a57f1b5_adcdd3b8","line":28,"updated":"2016-02-11 01:24:43.000000000","message":"Ok, this might be hard to explain, but I\u0027ll try.\n\nThe order in which actions appear in the drop down can be important, just like steps in a workflow. For example, I may always want Launch Instance to be first and Delete Instance to be last.  But I want to add in my own action in the middle.  This kind of ability is already built into the extensible service.\n\nIn addition, it also seems like get / set helper functions below add a lot of extra code with less functionality than the extensible service.\n\nThe addActions above is actually both general purpose while at the same time being somewhat unnecessarily specific to actions.\n\nWhat if you just defined an accessor function for getting the actions based on type and took advantage of the extensible service.  We would just need the actions to include an \"id\" attribute when they are added.\n\nI took a stab at putting this into code here (not tested):\n\nSo this registry would look more like this:\n\nhttp://paste.openstack.org/show/486642/\n\nThen in the run function where the actions are added, it would simply change to look more like this:\n\nhttp://paste.openstack.org/show/486643/\n\nAnd we\u0027d have all the functions of the extensible service.\n\nNote, I find the extensible service spec the easier to understand than the docs: https://github.com/openstack/horizon/blob/master/horizon/static/framework/util/extensible/extensible.spec.js\n\nNext we could add on facets, etc.  Thai is already wanting me to turn the image facets into a service, but I think we should just put them in here.\n\n      magicSearchFacets: function(type) {\n        return member(\u0027magicSearchFacets\u0027, type, actions);\n      },\n\n\n\ninject registryService\n\nregistryService.rowActions.\n\n The ability to have a plugin that just adds an action is HUGE.","commit_id":"b0fc4ede60f1d0ae8932352e6a48bfaba9608781"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"56f981556c494f75bbc39fb5d80c6851f019d992","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        registry.resourceTypes[type] \u003d {};"},{"line_number":26,"context_line":"      }"},{"line_number":27,"context_line":"      registry.resourceTypes[type][member] \u003d (registry.resourceTypes[type]"},{"line_number":28,"context_line":"        [member] || []).concat(actions);"},{"line_number":29,"context_line":"    }"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    function getActionsFunction(member, type) {"}],"source_content_type":"text/javascript","patch_set":5,"id":"3a57f1b5_893548f8","line":28,"in_reply_to":"3a57f1b5_17e4100b","updated":"2016-02-11 14:48:21.000000000","message":"With respect to the facets service, I mostly agree, but I see that, for example, the Images facets are different in LI and in the Images page.  We\u0027d need to account for those differences.","commit_id":"b0fc4ede60f1d0ae8932352e6a48bfaba9608781"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"ed15ff0390788c9be7383d9eae7d73e89429ce3b","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        registry.resourceTypes[type] \u003d {};"},{"line_number":26,"context_line":"      }"},{"line_number":27,"context_line":"      registry.resourceTypes[type][member] \u003d (registry.resourceTypes[type]"},{"line_number":28,"context_line":"        [member] || []).concat(actions);"},{"line_number":29,"context_line":"    }"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    function getActionsFunction(member, type) {"}],"source_content_type":"text/javascript","patch_set":5,"id":"3a57f1b5_17e4100b","line":28,"in_reply_to":"3a57f1b5_adcdd3b8","updated":"2016-02-11 14:24:19.000000000","message":"I think I\u0027m in tune with you in general.  There are some things you need to consider, which is that unlike other situations there is no \"I register first\" among modules, so things like ordering assuming that a \"base\" set of elements is there does not work.  That\u0027s actually desirable I believe, but it shakes the foundation of the extensible service, which assumes in many cases that a set of IDs has already been defined.","commit_id":"b0fc4ede60f1d0ae8932352e6a48bfaba9608781"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d07941acf5329a1653a909dd11a4213d6bb44c45","unresolved":false,"context_lines":[{"line_number":26,"context_line":"  ];"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"  function registryService(extensibleService) {"},{"line_number":29,"context_line":"    function getActions(member, type) {"},{"line_number":30,"context_line":"      if (!registry.resourceTypes.hasOwnProperty(type)) {"},{"line_number":31,"context_line":"        registry.resourceTypes[type] \u003d {};"},{"line_number":32,"context_line":"      }"}],"source_content_type":"text/javascript","patch_set":7,"id":"3a57f1b5_53329511","line":29,"updated":"2016-02-11 16:14:06.000000000","message":"rename to getMember?  Also, I\u0027d change order of arguments, because type is accessed before member.\n\nI think that this can look like this (although I never tested it, just wrote it up freeform).\n\nhttp://paste.openstack.org/show/486642/","commit_id":"c16784f5ccab17ec7b54da1b05fa0c2dbfda0387"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"5176ee1bf23e68cb1e365eccd6d98f1750f11dd7","unresolved":false,"context_lines":[{"line_number":26,"context_line":"  ];"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"  function registryService(extensibleService) {"},{"line_number":29,"context_line":"    function getActions(member, type) {"},{"line_number":30,"context_line":"      if (!registry.resourceTypes.hasOwnProperty(type)) {"},{"line_number":31,"context_line":"        registry.resourceTypes[type] \u003d {};"},{"line_number":32,"context_line":"      }"}],"source_content_type":"text/javascript","patch_set":7,"id":"3a57f1b5_f47b6826","line":29,"in_reply_to":"3a57f1b5_53329511","updated":"2016-02-11 16:35:46.000000000","message":"Good point.","commit_id":"c16784f5ccab17ec7b54da1b05fa0c2dbfda0387"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d07941acf5329a1653a909dd11a4213d6bb44c45","unresolved":false,"context_lines":[{"line_number":38,"context_line":"      return registry.resourceTypes[type][member];"},{"line_number":39,"context_line":"    }"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    function getActionsFunction(member, type) {"},{"line_number":42,"context_line":"      return function() { return registry.resourceTypes[type][member]; };"},{"line_number":43,"context_line":"    }"},{"line_number":44,"context_line":""}],"source_content_type":"text/javascript","patch_set":7,"id":"3a57f1b5_d378c5c6","line":41,"updated":"2016-02-11 16:14:06.000000000","message":"go away?","commit_id":"c16784f5ccab17ec7b54da1b05fa0c2dbfda0387"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"5176ee1bf23e68cb1e365eccd6d98f1750f11dd7","unresolved":false,"context_lines":[{"line_number":38,"context_line":"      return registry.resourceTypes[type][member];"},{"line_number":39,"context_line":"    }"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    function getActionsFunction(member, type) {"},{"line_number":42,"context_line":"      return function() { return registry.resourceTypes[type][member]; };"},{"line_number":43,"context_line":"    }"},{"line_number":44,"context_line":""}],"source_content_type":"text/javascript","patch_set":7,"id":"3a57f1b5_14b2c406","line":41,"in_reply_to":"3a57f1b5_d378c5c6","updated":"2016-02-11 16:35:46.000000000","message":"There\u0027s a convoluted reason for this, so not right now.  Basically the actions directive wants a function that provides the list of actions.  Maybe there\u0027s some obvious thing I haven\u0027t considered.","commit_id":"c16784f5ccab17ec7b54da1b05fa0c2dbfda0387"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d07941acf5329a1653a909dd11a4213d6bb44c45","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        return getActions(\u0027rowActions\u0027, type);"},{"line_number":52,"context_line":"      },"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"      getRowActionsFunction: function(type) {"},{"line_number":55,"context_line":"        return getActionsFunction(\u0027rowActions\u0027, type);"},{"line_number":56,"context_line":"      },"},{"line_number":57,"context_line":""}],"source_content_type":"text/javascript","patch_set":7,"id":"3a57f1b5_13e89db3","line":54,"updated":"2016-02-11 16:14:06.000000000","message":"This can go away now right?","commit_id":"c16784f5ccab17ec7b54da1b05fa0c2dbfda0387"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d07941acf5329a1653a909dd11a4213d6bb44c45","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        return getActions(\u0027batchActions\u0027, type);"},{"line_number":69,"context_line":"      },"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"      getBatchActionsFunction: function(type) {"},{"line_number":72,"context_line":"        return getActionsFunction(\u0027batchActions\u0027, type);"},{"line_number":73,"context_line":"      }"},{"line_number":74,"context_line":"    };"}],"source_content_type":"text/javascript","patch_set":7,"id":"3a57f1b5_13b73d87","line":71,"updated":"2016-02-11 16:14:06.000000000","message":"go away?","commit_id":"c16784f5ccab17ec7b54da1b05fa0c2dbfda0387"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"5cc204985284b4f57042c2efe3bc0e82ca4a0a68","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    }"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    var resourceTypes \u003d {};"},{"line_number":86,"context_line":"    var registry \u003d {"},{"line_number":87,"context_line":"      getRowActions: getRowActions,"},{"line_number":88,"context_line":"      getRowActionsFunction: getRowActionsFunction,"},{"line_number":89,"context_line":"      initActions: initActions,"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_38994b20","line":86,"updated":"2016-02-17 07:21:45.000000000","message":"A function to get / set resource type display name would be hugely helpful for the search panel.  It could replace the code here (with default name registration happening in core module.\n\nhttps://review.openstack.org/#/c/227036/33/openstack_dashboard/dashboards/project/static/dashboard/project/search/filters/resource-type-name.filter.js\n\nThis could be follow on patch.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"9a8e788cc915bd99e871973b7e5c5ef168b81cdf","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    }"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    var resourceTypes \u003d {};"},{"line_number":86,"context_line":"    var registry \u003d {"},{"line_number":87,"context_line":"      getRowActions: getRowActions,"},{"line_number":88,"context_line":"      getRowActionsFunction: getRowActionsFunction,"},{"line_number":89,"context_line":"      initActions: initActions,"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_ed8539cf","line":86,"in_reply_to":"dae33548_38994b20","updated":"2016-02-17 14:20:19.000000000","message":"Yes, a great idea.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"}],"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":"c494182f7f5b07f4e8de9f36c1660a52cb5855db","unresolved":false,"context_lines":[{"line_number":36,"context_line":"      \u0027horizon.framework.conf\u0027,"},{"line_number":37,"context_line":"      \u0027horizon.framework.util\u0027,"},{"line_number":38,"context_line":"      \u0027horizon.framework.widgets\u0027,"},{"line_number":39,"context_line":"      \u0027horizon.dashboard.project.workflow\u0027"},{"line_number":40,"context_line":"    ], config);"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"  config.$inject \u003d [\u0027$provide\u0027, \u0027$windowProvider\u0027];"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_09b6bf3c","line":39,"updated":"2016-02-16 20:02:47.000000000","message":"This is injecting a project dashboard module, which will not be available if the dashboard isn\u0027t enabled.  The dependency here is a \n\nhttps://github.com/openstack/horizon/blob/a3254c02ad53843a3543c3e93b4afdf7585b4c90/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/workflow.module.js","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"5cc204985284b4f57042c2efe3bc0e82ca4a0a68","unresolved":false,"context_lines":[{"line_number":36,"context_line":"      \u0027horizon.framework.conf\u0027,"},{"line_number":37,"context_line":"      \u0027horizon.framework.util\u0027,"},{"line_number":38,"context_line":"      \u0027horizon.framework.widgets\u0027,"},{"line_number":39,"context_line":"      \u0027horizon.dashboard.project.workflow\u0027"},{"line_number":40,"context_line":"    ], config);"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"  config.$inject \u003d [\u0027$provide\u0027, \u0027$windowProvider\u0027];"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_fae06898","line":39,"in_reply_to":"dae33548_09b6bf3c","updated":"2016-02-17 07:21:45.000000000","message":"It should probably be done here: https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/static/dashboard/project/project.module.js\n\nWhich arises the curious question of chicken or the egg...","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d83b1a392997834111bd88ce67fa1e9f9313fe10","unresolved":false,"context_lines":[{"line_number":36,"context_line":"      \u0027horizon.framework.conf\u0027,"},{"line_number":37,"context_line":"      \u0027horizon.framework.util\u0027,"},{"line_number":38,"context_line":"      \u0027horizon.framework.widgets\u0027,"},{"line_number":39,"context_line":"      \u0027horizon.dashboard.project.workflow\u0027"},{"line_number":40,"context_line":"    ], config);"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"  config.$inject \u003d [\u0027$provide\u0027, \u0027$windowProvider\u0027];"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_8772860f","line":39,"in_reply_to":"dae33548_cd4b1586","updated":"2016-02-17 15:45:37.000000000","message":"We need to talk about this a bit...","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"9a8e788cc915bd99e871973b7e5c5ef168b81cdf","unresolved":false,"context_lines":[{"line_number":36,"context_line":"      \u0027horizon.framework.conf\u0027,"},{"line_number":37,"context_line":"      \u0027horizon.framework.util\u0027,"},{"line_number":38,"context_line":"      \u0027horizon.framework.widgets\u0027,"},{"line_number":39,"context_line":"      \u0027horizon.dashboard.project.workflow\u0027"},{"line_number":40,"context_line":"    ], config);"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"  config.$inject \u003d [\u0027$provide\u0027, \u0027$windowProvider\u0027];"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_cd4b1586","line":39,"in_reply_to":"dae33548_fae06898","updated":"2016-02-17 14:20:19.000000000","message":"If you look at the dependency structure within the components, this is *required.*  That is because Images requires the Launch Instance service, which requires workflow.  So this means workflow should not exist in dashboard.  This frankly illustrates the problem of not using a fully modular approach to loading objects.\n\nTo be clear, we have been sloppy about dependency management (partly because Angular is) and this is just articulating something that is already true.\n\nIf you take this away, tests will fail.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"5cc204985284b4f57042c2efe3bc0e82ca4a0a68","unresolved":false,"context_lines":[{"line_number":37,"context_line":"      \u0027horizon.framework.util\u0027,"},{"line_number":38,"context_line":"      \u0027horizon.framework.widgets\u0027,"},{"line_number":39,"context_line":"      \u0027horizon.dashboard.project.workflow\u0027"},{"line_number":40,"context_line":"    ], config);"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"  config.$inject \u003d [\u0027$provide\u0027, \u0027$windowProvider\u0027];"},{"line_number":43,"context_line":""}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_1850c75c","line":40,"updated":"2016-02-17 07:21:45.000000000","message":"See comments on registering resource type names, then I think we should have a run function that adds them here.\n\nPossible follow-on patch.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"9a8e788cc915bd99e871973b7e5c5ef168b81cdf","unresolved":false,"context_lines":[{"line_number":37,"context_line":"      \u0027horizon.framework.util\u0027,"},{"line_number":38,"context_line":"      \u0027horizon.framework.widgets\u0027,"},{"line_number":39,"context_line":"      \u0027horizon.dashboard.project.workflow\u0027"},{"line_number":40,"context_line":"    ], config);"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"  config.$inject \u003d [\u0027$provide\u0027, \u0027$windowProvider\u0027];"},{"line_number":43,"context_line":""}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_4db26595","line":40,"in_reply_to":"dae33548_1850c75c","updated":"2016-02-17 14:20:19.000000000","message":"I\u0027d just do that within the resource if it has a module (e.g. Images) to be more modular, but default for now to placing them in here.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d83b1a392997834111bd88ce67fa1e9f9313fe10","unresolved":false,"context_lines":[{"line_number":37,"context_line":"      \u0027horizon.framework.util\u0027,"},{"line_number":38,"context_line":"      \u0027horizon.framework.widgets\u0027,"},{"line_number":39,"context_line":"      \u0027horizon.dashboard.project.workflow\u0027"},{"line_number":40,"context_line":"    ], config);"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"  config.$inject \u003d [\u0027$provide\u0027, \u0027$windowProvider\u0027];"},{"line_number":43,"context_line":""}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_47535e6b","line":40,"in_reply_to":"dae33548_4db26595","updated":"2016-02-17 15:45:37.000000000","message":"agreed on that. having defaults specified somewhere has to be done somewhere to start.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"ba141349d708c1528a28c787a95397e95bf0626e","unresolved":false,"context_lines":[{"line_number":36,"context_line":"      \u0027horizon.framework.conf\u0027,"},{"line_number":37,"context_line":"      \u0027horizon.framework.util\u0027,"},{"line_number":38,"context_line":"      \u0027horizon.framework.widgets\u0027,"},{"line_number":39,"context_line":"      \u0027horizon.dashboard.project.workflow\u0027"},{"line_number":40,"context_line":"    ], config);"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"  config.$inject \u003d [\u0027$provide\u0027, \u0027$windowProvider\u0027];"}],"source_content_type":"text/javascript","patch_set":15,"id":"dae33548_355bd6f7","line":39,"range":{"start_line":39,"start_character":6,"end_line":39,"end_character":41},"updated":"2016-02-17 20:02:44.000000000","message":"FYI, the reason this has to be here is demonstrated in:\n\nhttp://git.openstack.org/cgit/openstack/horizon/tree/openstack_dashboard/static/app/core/images/actions/launch-instance.service.js#n26","commit_id":"d21854051628cc77b22ff447a029f1063083e27e"}],"openstack_dashboard/static/app/core/images/actions/create-volume.service.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"c494182f7f5b07f4e8de9f36c1660a52cb5855db","unresolved":false,"context_lines":[{"line_number":73,"context_line":"      var watchVolumeChange \u003d scope.$on(events.VOLUME_CHANGED, onChangedVolume);"},{"line_number":74,"context_line":"      scope.$on(\u0027$destroy\u0027, destroy);"},{"line_number":75,"context_line":"      createVolumePromise \u003d policy.ifAllowed({rules: [[\u0027volume\u0027, \u0027volume:create\u0027]]});"},{"line_number":76,"context_line":"      volumeServiceEnabledPromise \u003d serviceCatalog.ifTypeEnabled(\u0027volume\u0027);"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"      function destroy() {"},{"line_number":79,"context_line":"        watchVolumeChange();"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_69a2ebaf","line":76,"updated":"2016-02-16 20:02:47.000000000","message":"Why move from above to initScope? I think they could just be in allowed like imageBootable and imageActive. You wouldn\u0027t even need to assign to variables.  All you\u0027d need is the right hand side of the \u003d signs.  I think that\u0027d be more readable too.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"e4625959eae41fde6f777359538c8bab64efd145","unresolved":false,"context_lines":[{"line_number":73,"context_line":"      var watchVolumeChange \u003d scope.$on(events.VOLUME_CHANGED, onChangedVolume);"},{"line_number":74,"context_line":"      scope.$on(\u0027$destroy\u0027, destroy);"},{"line_number":75,"context_line":"      createVolumePromise \u003d policy.ifAllowed({rules: [[\u0027volume\u0027, \u0027volume:create\u0027]]});"},{"line_number":76,"context_line":"      volumeServiceEnabledPromise \u003d serviceCatalog.ifTypeEnabled(\u0027volume\u0027);"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"      function destroy() {"},{"line_number":79,"context_line":"        watchVolumeChange();"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_4294ec41","line":76,"in_reply_to":"dae33548_4267cce8","updated":"2016-02-17 15:48:43.000000000","message":"Comments are probably the best in this case, I\u0027ll think about $q.all().","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"9a8e788cc915bd99e871973b7e5c5ef168b81cdf","unresolved":false,"context_lines":[{"line_number":73,"context_line":"      var watchVolumeChange \u003d scope.$on(events.VOLUME_CHANGED, onChangedVolume);"},{"line_number":74,"context_line":"      scope.$on(\u0027$destroy\u0027, destroy);"},{"line_number":75,"context_line":"      createVolumePromise \u003d policy.ifAllowed({rules: [[\u0027volume\u0027, \u0027volume:create\u0027]]});"},{"line_number":76,"context_line":"      volumeServiceEnabledPromise \u003d serviceCatalog.ifTypeEnabled(\u0027volume\u0027);"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"      function destroy() {"},{"line_number":79,"context_line":"        watchVolumeChange();"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_ed14194e","line":76,"in_reply_to":"dae33548_69a2ebaf","updated":"2016-02-17 14:20:19.000000000","message":"I disagree, in this case we know we only need to execute these once.  There is no reason to \u0027re-execute\u0027 them for each row (even if results are cached, etc.).","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d83b1a392997834111bd88ce67fa1e9f9313fe10","unresolved":false,"context_lines":[{"line_number":73,"context_line":"      var watchVolumeChange \u003d scope.$on(events.VOLUME_CHANGED, onChangedVolume);"},{"line_number":74,"context_line":"      scope.$on(\u0027$destroy\u0027, destroy);"},{"line_number":75,"context_line":"      createVolumePromise \u003d policy.ifAllowed({rules: [[\u0027volume\u0027, \u0027volume:create\u0027]]});"},{"line_number":76,"context_line":"      volumeServiceEnabledPromise \u003d serviceCatalog.ifTypeEnabled(\u0027volume\u0027);"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"      function destroy() {"},{"line_number":79,"context_line":"        watchVolumeChange();"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_4267cce8","line":76,"in_reply_to":"dae33548_ed14194e","updated":"2016-02-17 15:45:37.000000000","message":"Ah, right. I forgot about this executing on each row. A more readable pattern so people like me don\u0027t forget again might be to either put these in a $q.all with a nicely named variable or to add an inline comment about why they are they way they are.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"}],"openstack_dashboard/static/app/core/images/actions/delete-image.service.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"f80a0763f07067f40584200a9d8aadc2eb336afb","unresolved":false,"context_lines":[{"line_number":70,"context_line":"      context \u003d {"},{"line_number":71,"context_line":"        labels: actionContext,"},{"line_number":72,"context_line":"        successEvent: events.DELETE_SUCCESS"},{"line_number":73,"context_line":"      };"},{"line_number":74,"context_line":"      deleteImagePromise \u003d policy.ifAllowed({rules: [[\u0027image\u0027, \u0027delete_image\u0027]]});"},{"line_number":75,"context_line":"      userSessionPromise \u003d createUserSessionPromise();"},{"line_number":76,"context_line":"    }"}],"source_content_type":"text/javascript","patch_set":5,"id":"3a57f1b5_47c0be2a","line":73,"updated":"2016-02-11 01:24:43.000000000","message":"+1 Moving things here seems like it\u0027ll make easier debugging as well rather than the crappy angular errors on service construction.","commit_id":"b0fc4ede60f1d0ae8932352e6a48bfaba9608781"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"c494182f7f5b07f4e8de9f36c1660a52cb5855db","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        labels: actionContext,"},{"line_number":72,"context_line":"        successEvent: events.DELETE_SUCCESS"},{"line_number":73,"context_line":"      };"},{"line_number":74,"context_line":"      deleteImagePromise \u003d policy.ifAllowed({rules: [[\u0027image\u0027, \u0027delete_image\u0027]]});"},{"line_number":75,"context_line":"      userSessionPromise \u003d createUserSessionPromise();"},{"line_number":76,"context_line":"    }"},{"line_number":77,"context_line":""}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_2978e329","line":74,"updated":"2016-02-16 20:02:47.000000000","message":"Why move from above to initScope?  I think it could just be in allowed. You wouldn\u0027t even need to assign to variables.  All you\u0027d need is the right hand side of the \u003d sign.  I think that\u0027d be more readable too.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"9a8e788cc915bd99e871973b7e5c5ef168b81cdf","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        labels: actionContext,"},{"line_number":72,"context_line":"        successEvent: events.DELETE_SUCCESS"},{"line_number":73,"context_line":"      };"},{"line_number":74,"context_line":"      deleteImagePromise \u003d policy.ifAllowed({rules: [[\u0027image\u0027, \u0027delete_image\u0027]]});"},{"line_number":75,"context_line":"      userSessionPromise \u003d createUserSessionPromise();"},{"line_number":76,"context_line":"    }"},{"line_number":77,"context_line":""}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_d000ce03","line":74,"in_reply_to":"dae33548_2978e329","updated":"2016-02-17 14:20:19.000000000","message":"same as other.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d83b1a392997834111bd88ce67fa1e9f9313fe10","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        labels: actionContext,"},{"line_number":72,"context_line":"        successEvent: events.DELETE_SUCCESS"},{"line_number":73,"context_line":"      };"},{"line_number":74,"context_line":"      deleteImagePromise \u003d policy.ifAllowed({rules: [[\u0027image\u0027, \u0027delete_image\u0027]]});"},{"line_number":75,"context_line":"      userSessionPromise \u003d createUserSessionPromise();"},{"line_number":76,"context_line":"    }"},{"line_number":77,"context_line":""}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_02f664f8","line":74,"in_reply_to":"dae33548_d000ce03","updated":"2016-02-17 15:45:37.000000000","message":"again, this should be commented or something for readability for future people like me and for people copying pattern.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"c494182f7f5b07f4e8de9f36c1660a52cb5855db","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        successEvent: events.DELETE_SUCCESS"},{"line_number":73,"context_line":"      };"},{"line_number":74,"context_line":"      deleteImagePromise \u003d policy.ifAllowed({rules: [[\u0027image\u0027, \u0027delete_image\u0027]]});"},{"line_number":75,"context_line":"      userSessionPromise \u003d createUserSessionPromise();"},{"line_number":76,"context_line":"    }"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    function perform(images) {"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_0946bfbe","line":75,"updated":"2016-02-16 20:02:47.000000000","message":"This doesn\u0027t need to be here.  See below.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"9a8e788cc915bd99e871973b7e5c5ef168b81cdf","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        successEvent: events.DELETE_SUCCESS"},{"line_number":73,"context_line":"      };"},{"line_number":74,"context_line":"      deleteImagePromise \u003d policy.ifAllowed({rules: [[\u0027image\u0027, \u0027delete_image\u0027]]});"},{"line_number":75,"context_line":"      userSessionPromise \u003d createUserSessionPromise();"},{"line_number":76,"context_line":"    }"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    function perform(images) {"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_f00b5222","line":75,"in_reply_to":"dae33548_0946bfbe","updated":"2016-02-17 14:20:19.000000000","message":"same as other.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"c494182f7f5b07f4e8de9f36c1660a52cb5855db","unresolved":false,"context_lines":[{"line_number":84,"context_line":"      return $q.all(["},{"line_number":85,"context_line":"        notProtected(image),"},{"line_number":86,"context_line":"        deleteImagePromise,"},{"line_number":87,"context_line":"        ownedByUser(image),"},{"line_number":88,"context_line":"        notDeleted(image)"},{"line_number":89,"context_line":"      ]);"},{"line_number":90,"context_line":"    }"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_c93b3737","line":87,"updated":"2016-02-16 20:02:47.000000000","message":"This can be changed to be like the update metadata action. Probably could even be a separate patch that we could land quickly.\n\nuserSessionService.isCurrentProject(image.owner)","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"9a8e788cc915bd99e871973b7e5c5ef168b81cdf","unresolved":false,"context_lines":[{"line_number":84,"context_line":"      return $q.all(["},{"line_number":85,"context_line":"        notProtected(image),"},{"line_number":86,"context_line":"        deleteImagePromise,"},{"line_number":87,"context_line":"        ownedByUser(image),"},{"line_number":88,"context_line":"        notDeleted(image)"},{"line_number":89,"context_line":"      ]);"},{"line_number":90,"context_line":"    }"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_101eb65e","line":87,"in_reply_to":"dae33548_c93b3737","updated":"2016-02-17 14:20:19.000000000","message":"True, probably shouldn\u0027t put in this patch.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"}],"openstack_dashboard/static/app/core/images/images.module.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"f80a0763f07067f40584200a9d8aadc2eb336afb","unresolved":false,"context_lines":[{"line_number":27,"context_line":"   */"},{"line_number":28,"context_line":"  angular"},{"line_number":29,"context_line":"    .module(\u0027horizon.app.core.images\u0027, [\u0027horizon.framework.conf\u0027, \u0027horizon.app.core\u0027])"},{"line_number":30,"context_line":"    .constant(\u0027horizon.app.core.images.events\u0027, events())"},{"line_number":31,"context_line":"    .run(["},{"line_number":32,"context_line":"      \u0027horizon.framework.conf.resource-type-registry.service\u0027,"},{"line_number":33,"context_line":"      \u0027horizon.app.core.images.actions.batch-delete.service\u0027,"}],"source_content_type":"text/javascript","patch_set":5,"id":"3a57f1b5_e7c76a10","line":30,"updated":"2016-02-11 01:24:43.000000000","message":".constant(\u0027horizon.app.core.images.resourceType\u0027, \u0027OS::Glance::Image\u0027)\n\nor something like that.","commit_id":"b0fc4ede60f1d0ae8932352e6a48bfaba9608781"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"ed15ff0390788c9be7383d9eae7d73e89429ce3b","unresolved":false,"context_lines":[{"line_number":27,"context_line":"   */"},{"line_number":28,"context_line":"  angular"},{"line_number":29,"context_line":"    .module(\u0027horizon.app.core.images\u0027, [\u0027horizon.framework.conf\u0027, \u0027horizon.app.core\u0027])"},{"line_number":30,"context_line":"    .constant(\u0027horizon.app.core.images.events\u0027, events())"},{"line_number":31,"context_line":"    .run(["},{"line_number":32,"context_line":"      \u0027horizon.framework.conf.resource-type-registry.service\u0027,"},{"line_number":33,"context_line":"      \u0027horizon.app.core.images.actions.batch-delete.service\u0027,"}],"source_content_type":"text/javascript","patch_set":5,"id":"3a57f1b5_57b848e5","line":30,"in_reply_to":"3a57f1b5_e7c76a10","updated":"2016-02-11 14:24:19.000000000","message":"Good idea.","commit_id":"b0fc4ede60f1d0ae8932352e6a48bfaba9608781"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"0282344feb80bac964f92c8ea50ce3d351a1d352","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"  function registerImageActions(registry, batchDeleteService,"},{"line_number":48,"context_line":"    rowDeleteService, createVolumeService) {"},{"line_number":49,"context_line":"    registry.getRowActions(\u0027OS::Glance::Image\u0027)"},{"line_number":50,"context_line":"      .append({"},{"line_number":51,"context_line":"        id: \u0027rowCreateVolumeAction\u0027,"},{"line_number":52,"context_line":"        service: createVolumeService,"}],"source_content_type":"text/javascript","patch_set":7,"id":"3a57f1b5_b3b50932","line":49,"range":{"start_line":49,"start_character":27,"end_line":49,"end_character":46},"updated":"2016-02-11 16:00:27.000000000","message":"use the constant above.","commit_id":"c16784f5ccab17ec7b54da1b05fa0c2dbfda0387"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d07941acf5329a1653a909dd11a4213d6bb44c45","unresolved":false,"context_lines":[{"line_number":54,"context_line":"          text: gettext(\u0027Create Volume\u0027)"},{"line_number":55,"context_line":"        }"},{"line_number":56,"context_line":"      });"},{"line_number":57,"context_line":"    registry.getRowActions(\u0027OS::Glance::Image\u0027)"},{"line_number":58,"context_line":"      .append({"},{"line_number":59,"context_line":"        id: \u0027rowDeleteImageAction\u0027,"},{"line_number":60,"context_line":"        service: rowDeleteService,"}],"source_content_type":"text/javascript","patch_set":7,"id":"3a57f1b5_53eff586","line":57,"updated":"2016-02-11 16:14:06.000000000","message":"ditto","commit_id":"c16784f5ccab17ec7b54da1b05fa0c2dbfda0387"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d07941acf5329a1653a909dd11a4213d6bb44c45","unresolved":false,"context_lines":[{"line_number":63,"context_line":"          type: \u0027delete\u0027"},{"line_number":64,"context_line":"        }"},{"line_number":65,"context_line":"      });"},{"line_number":66,"context_line":"    registry.getBatchActions(\u0027OS::Glance::Image\u0027)"},{"line_number":67,"context_line":"      .append({"},{"line_number":68,"context_line":"        id: \u0027batchDeleteImageAction\u0027,"},{"line_number":69,"context_line":"        service: batchDeleteService,"}],"source_content_type":"text/javascript","patch_set":7,"id":"3a57f1b5_13e97d80","line":66,"updated":"2016-02-11 16:14:06.000000000","message":"ditto","commit_id":"c16784f5ccab17ec7b54da1b05fa0c2dbfda0387"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"7c15a7136c0c02418441c0e28cdce3b5350b2723","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    launchInstanceService,"},{"line_number":56,"context_line":"    updateMetadataService,"},{"line_number":57,"context_line":"    imageResourceType)"},{"line_number":58,"context_line":"  {"},{"line_number":59,"context_line":"    registry.getRowActions(imageResourceType)"},{"line_number":60,"context_line":"      .append({"},{"line_number":61,"context_line":"        id: \u0027rowLaunchInstanceService\u0027,"}],"source_content_type":"text/javascript","patch_set":9,"id":"3a57f1b5_2eb44b80","line":58,"updated":"2016-02-11 18:31:05.000000000","message":":( I was hoping to make the registry as super simple as possible and take advantage of extensible.  But I definitely see why you had helper code with loops to help make usage of it seem elegant.  I think we need to keep usage of extensible though.\n\nReally extensible service should add helper functions to take list of items or perhaps return the container so you could chain .appends, but i don\u0027t think we need to do that first.\n\nCould just throw this into a forEach here.\n\n[{actions}].forEach(\n\nThere are some bigger fish to fry initially though...","commit_id":"d0369806cb8a9022c06f56ba8b3a84effb5aebff"},{"author":{"_account_id":9647,"name":"Justin Pomeroy","email":"jpomero@linux.vnet.ibm.com","username":"jpomero"},"change_message_id":"651891ef9a7d6df0238b0d3e1beaa65eac0c3bd2","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    launchInstanceService,"},{"line_number":56,"context_line":"    updateMetadataService,"},{"line_number":57,"context_line":"    imageResourceType)"},{"line_number":58,"context_line":"  {"},{"line_number":59,"context_line":"    registry.getRowActions(imageResourceType)"},{"line_number":60,"context_line":"      .append({"},{"line_number":61,"context_line":"        id: \u0027rowLaunchInstanceService\u0027,"}],"source_content_type":"text/javascript","patch_set":9,"id":"3a57f1b5_43fcebb7","line":58,"in_reply_to":"3a57f1b5_06028c0b","updated":"2016-02-12 03:35:12.000000000","message":"See this patch: https://review.openstack.org/279370","commit_id":"d0369806cb8a9022c06f56ba8b3a84effb5aebff"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"7bd656d2773aabeca9355984453ee0bb6778590b","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    launchInstanceService,"},{"line_number":56,"context_line":"    updateMetadataService,"},{"line_number":57,"context_line":"    imageResourceType)"},{"line_number":58,"context_line":"  {"},{"line_number":59,"context_line":"    registry.getRowActions(imageResourceType)"},{"line_number":60,"context_line":"      .append({"},{"line_number":61,"context_line":"        id: \u0027rowLaunchInstanceService\u0027,"}],"source_content_type":"text/javascript","patch_set":9,"id":"3a57f1b5_06028c0b","line":58,"in_reply_to":"3a57f1b5_2eb44b80","updated":"2016-02-11 22:50:52.000000000","message":"Yeah, I just hacked this out, obviously it could be done more elegantly.","commit_id":"d0369806cb8a9022c06f56ba8b3a84effb5aebff"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"0d003a290c6622614ea86290dd3fb3e3503f54e0","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    launchInstanceService,"},{"line_number":56,"context_line":"    updateMetadataService,"},{"line_number":57,"context_line":"    imageResourceType)"},{"line_number":58,"context_line":"  {"},{"line_number":59,"context_line":"    registry.getRowActions(imageResourceType)"},{"line_number":60,"context_line":"      .append({"},{"line_number":61,"context_line":"        id: \u0027rowLaunchInstanceService\u0027,"}],"source_content_type":"text/javascript","patch_set":9,"id":"3a57f1b5_109dbe09","line":58,"in_reply_to":"3a57f1b5_43fcebb7","updated":"2016-02-12 14:06:32.000000000","message":"I\u0027d be happy to rebase and use that once I\u0027ve validated it more thoroughly.","commit_id":"d0369806cb8a9022c06f56ba8b3a84effb5aebff"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"7f68b307ca1e97c42931d12e7bd8ed33da949731","unresolved":false,"context_lines":[{"line_number":56,"context_line":"    updateMetadataService,"},{"line_number":57,"context_line":"    imageResourceType)"},{"line_number":58,"context_line":"  {"},{"line_number":59,"context_line":"    registry.getRowActions(imageResourceType)"},{"line_number":60,"context_line":"      .append({"},{"line_number":61,"context_line":"        id: \u0027rowLaunchInstanceService\u0027,"},{"line_number":62,"context_line":"        service: launchInstanceService,"}],"source_content_type":"text/javascript","patch_set":9,"id":"3a57f1b5_f567d0b4","line":59,"updated":"2016-02-12 00:41:54.000000000","message":"It just occurred to me that if there was some kind of race condition for registering, we can handle it using the priority argument:\n\nhttps://github.com/openstack/horizon/blob/master/horizon/static/framework/util/extensible/extensible.service.js#L81-L85\n\nSo, launch might be priority 1, edit, priority 2, delete priority 99.","commit_id":"d0369806cb8a9022c06f56ba8b3a84effb5aebff"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"0d003a290c6622614ea86290dd3fb3e3503f54e0","unresolved":false,"context_lines":[{"line_number":56,"context_line":"    updateMetadataService,"},{"line_number":57,"context_line":"    imageResourceType)"},{"line_number":58,"context_line":"  {"},{"line_number":59,"context_line":"    registry.getRowActions(imageResourceType)"},{"line_number":60,"context_line":"      .append({"},{"line_number":61,"context_line":"        id: \u0027rowLaunchInstanceService\u0027,"},{"line_number":62,"context_line":"        service: launchInstanceService,"}],"source_content_type":"text/javascript","patch_set":9,"id":"3a57f1b5_9091aef3","line":59,"in_reply_to":"3a57f1b5_75e0c0fa","updated":"2016-02-12 14:06:32.000000000","message":"Exactly, I can add some docs there.","commit_id":"d0369806cb8a9022c06f56ba8b3a84effb5aebff"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"ae8e246b24df6f2b23170d275f69842b7b52665a","unresolved":false,"context_lines":[{"line_number":56,"context_line":"    updateMetadataService,"},{"line_number":57,"context_line":"    imageResourceType)"},{"line_number":58,"context_line":"  {"},{"line_number":59,"context_line":"    registry.getRowActions(imageResourceType)"},{"line_number":60,"context_line":"      .append({"},{"line_number":61,"context_line":"        id: \u0027rowLaunchInstanceService\u0027,"},{"line_number":62,"context_line":"        service: launchInstanceService,"}],"source_content_type":"text/javascript","patch_set":9,"id":"3a57f1b5_75e0c0fa","line":59,"in_reply_to":"3a57f1b5_f567d0b4","updated":"2016-02-12 00:43:27.000000000","message":"We\u0027d just need to mention the priority in the documentation on the registry.","commit_id":"d0369806cb8a9022c06f56ba8b3a84effb5aebff"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"c494182f7f5b07f4e8de9f36c1660a52cb5855db","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    imageResourceType)"},{"line_number":59,"context_line":"  {"},{"line_number":60,"context_line":"    var rowActions \u003d registry.getRowActions(imageResourceType);"},{"line_number":61,"context_line":"    rowActions.append({"},{"line_number":62,"context_line":"      id: \u0027rowLaunchInstanceService\u0027,"},{"line_number":63,"context_line":"      service: launchInstanceService,"},{"line_number":64,"context_line":"      template: {"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_69966bf1","line":61,"updated":"2016-02-16 20:02:47.000000000","message":"some formatting here with chaining MIGHT improve readability.  maybe not...\n\nrowActions\n   .append({\n\n    })\n    .append({\n\n    })","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"9a8e788cc915bd99e871973b7e5c5ef168b81cdf","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    imageResourceType)"},{"line_number":59,"context_line":"  {"},{"line_number":60,"context_line":"    var rowActions \u003d registry.getRowActions(imageResourceType);"},{"line_number":61,"context_line":"    rowActions.append({"},{"line_number":62,"context_line":"      id: \u0027rowLaunchInstanceService\u0027,"},{"line_number":63,"context_line":"      service: launchInstanceService,"},{"line_number":64,"context_line":"      template: {"}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_50431e42","line":61,"in_reply_to":"dae33548_69966bf1","updated":"2016-02-17 14:20:19.000000000","message":"I\u0027ll do this now that Justin\u0027s patch has landed.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"5cc204985284b4f57042c2efe3bc0e82ca4a0a68","unresolved":false,"context_lines":[{"line_number":84,"context_line":"      service: rowDeleteService,"},{"line_number":85,"context_line":"      template: {"},{"line_number":86,"context_line":"        text: gettext(\u0027Delete Image\u0027),"},{"line_number":87,"context_line":"        type: \u0027delete\u0027"},{"line_number":88,"context_line":"      }"},{"line_number":89,"context_line":"    });"},{"line_number":90,"context_line":""}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_bd125a55","line":87,"updated":"2016-02-17 07:21:45.000000000","message":"I really wonder if actions should have a subscribe function.\n\nSomething like this:\n\nhttp://www.codelord.net/2015/05/04/angularjs-notifying-about-changes-from-services-to-controllers/\n\nSomething to think about for how we manage what to do when action is complete.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"9a8e788cc915bd99e871973b7e5c5ef168b81cdf","unresolved":false,"context_lines":[{"line_number":84,"context_line":"      service: rowDeleteService,"},{"line_number":85,"context_line":"      template: {"},{"line_number":86,"context_line":"        text: gettext(\u0027Delete Image\u0027),"},{"line_number":87,"context_line":"        type: \u0027delete\u0027"},{"line_number":88,"context_line":"      }"},{"line_number":89,"context_line":"    });"},{"line_number":90,"context_line":""}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_f0a7d208","line":87,"in_reply_to":"dae33548_bd125a55","updated":"2016-02-17 14:20:19.000000000","message":"I have lots of ideas about completion, I think we should solve it the easy way in this case...using traditional modal callbacks; but either way I don\u0027t think that discussion should hold up this patch.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d83b1a392997834111bd88ce67fa1e9f9313fe10","unresolved":false,"context_lines":[{"line_number":84,"context_line":"      service: rowDeleteService,"},{"line_number":85,"context_line":"      template: {"},{"line_number":86,"context_line":"        text: gettext(\u0027Delete Image\u0027),"},{"line_number":87,"context_line":"        type: \u0027delete\u0027"},{"line_number":88,"context_line":"      }"},{"line_number":89,"context_line":"    });"},{"line_number":90,"context_line":""}],"source_content_type":"text/javascript","patch_set":14,"id":"dae33548_e796f2ee","line":87,"in_reply_to":"dae33548_f0a7d208","updated":"2016-02-17 15:45:37.000000000","message":"let\u0027s work through this asap, though. it is a real concern.","commit_id":"296edecf7b295fccd05d4052d42fffbf6751ca8f"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"b0a60debe07f28d5782bf9578caa4a58ae2ab6f2","unresolved":false,"context_lines":[{"line_number":30,"context_line":"    .constant(\u0027horizon.app.core.images.events\u0027, events())"},{"line_number":31,"context_line":"    .constant(\u0027horizon.app.core.images.non_bootable_image_types\u0027, [\u0027aki\u0027, \u0027ari\u0027])"},{"line_number":32,"context_line":"    .constant(\u0027horizon.app.core.images.resourceType\u0027, \u0027OS::Glance::Image\u0027)"},{"line_number":33,"context_line":"    .run(["},{"line_number":34,"context_line":"      \u0027horizon.framework.conf.resource-type-registry.service\u0027,"},{"line_number":35,"context_line":"      \u0027horizon.app.core.images.actions.batch-delete.service\u0027,"},{"line_number":36,"context_line":"      \u0027horizon.app.core.images.actions.row-delete.service\u0027,"}],"source_content_type":"text/javascript","patch_set":15,"id":"dae33548_c158a333","line":33,"updated":"2016-02-18 22:47:45.000000000","message":"We use $inject in preference to this form of DI specification.","commit_id":"d21854051628cc77b22ff447a029f1063083e27e"}],"openstack_dashboard/static/app/core/images/table/images.controller.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"f80a0763f07067f40584200a9d8aadc2eb336afb","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    ctrl.images \u003d [];"},{"line_number":56,"context_line":"    ctrl.imagesSrc \u003d [];"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    ctrl.getRowActions \u003d typeRegistry.getRowActionsFunction(\u0027OS::Glance::Image\u0027);"},{"line_number":59,"context_line":"    ctrl.getBatchActions \u003d typeRegistry.getBatchActionsFunction(\u0027OS::Glance::Image\u0027);"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    var deleteWatcher \u003d $scope.$on(events.DELETE_SUCCESS, onDeleteSuccess);"}],"source_content_type":"text/javascript","patch_set":5,"id":"3a57f1b5_6727fa12","line":58,"updated":"2016-02-11 01:24:43.000000000","message":"We should put OS::Glance::Image as a resource_type constant in the module.","commit_id":"b0fc4ede60f1d0ae8932352e6a48bfaba9608781"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"ed15ff0390788c9be7383d9eae7d73e89429ce3b","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    ctrl.images \u003d [];"},{"line_number":56,"context_line":"    ctrl.imagesSrc \u003d [];"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    ctrl.getRowActions \u003d typeRegistry.getRowActionsFunction(\u0027OS::Glance::Image\u0027);"},{"line_number":59,"context_line":"    ctrl.getBatchActions \u003d typeRegistry.getBatchActionsFunction(\u0027OS::Glance::Image\u0027);"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    var deleteWatcher \u003d $scope.$on(events.DELETE_SUCCESS, onDeleteSuccess);"}],"source_content_type":"text/javascript","patch_set":5,"id":"3a57f1b5_17cbb073","line":58,"in_reply_to":"3a57f1b5_6727fa12","updated":"2016-02-11 14:24:19.000000000","message":"Yep.","commit_id":"b0fc4ede60f1d0ae8932352e6a48bfaba9608781"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d07941acf5329a1653a909dd11a4213d6bb44c45","unresolved":false,"context_lines":[{"line_number":118,"context_line":"    }"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    function applyMetadataDefinitions() {"},{"line_number":121,"context_line":"      glance.getNamespaces({resource_type: \u0027OS::Glance::Image\u0027}, true)"},{"line_number":122,"context_line":"        .then(function setMetadefs(data) {"},{"line_number":123,"context_line":"          ctrl.metadataDefs \u003d data.data.items;"},{"line_number":124,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":7,"id":"3a57f1b5_73647148","line":121,"updated":"2016-02-11 16:14:06.000000000","message":"constant (i know this is new to the patch due to rebase.","commit_id":"c16784f5ccab17ec7b54da1b05fa0c2dbfda0387"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"5176ee1bf23e68cb1e365eccd6d98f1750f11dd7","unresolved":false,"context_lines":[{"line_number":118,"context_line":"    }"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    function applyMetadataDefinitions() {"},{"line_number":121,"context_line":"      glance.getNamespaces({resource_type: \u0027OS::Glance::Image\u0027}, true)"},{"line_number":122,"context_line":"        .then(function setMetadefs(data) {"},{"line_number":123,"context_line":"          ctrl.metadataDefs \u003d data.data.items;"},{"line_number":124,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":7,"id":"3a57f1b5_34ea60ad","line":121,"in_reply_to":"3a57f1b5_73647148","updated":"2016-02-11 16:35:46.000000000","message":"Whoops!  yeah.","commit_id":"c16784f5ccab17ec7b54da1b05fa0c2dbfda0387"}]}
