)]}'
{"horizon/static/framework/widgets/modal/delete-modal.service.js":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"2da99d459259437051b53e49574e903ba474a394","unresolved":false,"context_lines":[{"line_number":90,"context_line":"      };"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"      function onModalSubmit() {"},{"line_number":93,"context_line":"        return $qExtensions.allSettled(entities.map(deleteEntityPromise)).then(notify);"},{"line_number":94,"context_line":"      }"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"      function deleteEntityPromise(entity) {"}],"source_content_type":"text/javascript","patch_set":3,"id":"7af24918_6f7627d8","line":93,"range":{"start_line":93,"start_character":8,"end_line":93,"end_character":14},"updated":"2016-03-03 15:20:16.000000000","message":"yay (and so for all such returned promises...throwing away promises made no sense!)","commit_id":"04a70fe19271c16d3772c5bcf80a8d34e73c0b48"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"2da99d459259437051b53e49574e903ba474a394","unresolved":false,"context_lines":[{"line_number":110,"context_line":"          scope.$emit(context.failedEvent, failEntities.map(getId));"},{"line_number":111,"context_line":"          toast.add(\u0027error\u0027, getMessage(context.labels.error, failEntities));"},{"line_number":112,"context_line":"        }"},{"line_number":113,"context_line":"        return {created: [], updated: [], deleted: passEntities, failed: failEntities};"},{"line_number":114,"context_line":"      }"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"      return simpleModalService.modal(options).result.then(onModalSubmit);"}],"source_content_type":"text/javascript","patch_set":3,"id":"7af24918_1a01a305","line":113,"range":{"start_line":113,"start_character":15,"end_line":113,"end_character":86},"updated":"2016-03-03 15:20:16.000000000","message":"I\u0027m assuming this is a defined structure we are reusing/expecting?","commit_id":"04a70fe19271c16d3772c5bcf80a8d34e73c0b48"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"2da99d459259437051b53e49574e903ba474a394","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        return {created: [], updated: [], deleted: passEntities, failed: failEntities};"},{"line_number":114,"context_line":"      }"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"      return simpleModalService.modal(options).result.then(onModalSubmit);"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    }"},{"line_number":119,"context_line":""}],"source_content_type":"text/javascript","patch_set":3,"id":"7af24918_ef507734","line":116,"range":{"start_line":116,"start_character":6,"end_line":116,"end_character":13},"updated":"2016-03-03 15:20:16.000000000","message":"yay","commit_id":"04a70fe19271c16d3772c5bcf80a8d34e73c0b48"}],"openstack_dashboard/static/app/core/images/table/images.controller.js":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"6d24ae2bc23da577236a67e9242c9774d53432e7","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            ctrl.imagesSrc \u003d difference(ctrl.imagesSrc, deletedIds, \u0027id\u0027);"},{"line_number":175,"context_line":"          }"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"          // Handle updated items"},{"line_number":178,"context_line":"          if (result.updated \u0026\u0026 result.updated.length \u003e 0) {"},{"line_number":179,"context_line":"            result.updated.forEach(function (updatedItem) {"},{"line_number":180,"context_line":"              var existingIndex \u003d ctrl.imagesSrc.findIndex(function (existingItem) {"}],"source_content_type":"text/javascript","patch_set":3,"id":"7af24918_093843ee","line":177,"range":{"start_line":177,"start_character":13,"end_line":177,"end_character":33},"updated":"2016-03-03 15:17:17.000000000","message":"What I\u0027m thinking we could do is, at least in terms of actions expressed through the \u003cactions\u003e directive, is for the controller to expose an object that contains a set of callbacks (update, delete, etc.) and pass that into the directive.  The object would also probably contain an ID matcher.  That way the controller can have a minimum of boilerplate for handling each case (as desired) and this kind of logic could be offloaded to the logic for \u003cactions\u003e if possible.","commit_id":"04a70fe19271c16d3772c5bcf80a8d34e73c0b48"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"8a0d6023590f5503e0baee0ded9cc572e8c684f2","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            ctrl.imagesSrc \u003d difference(ctrl.imagesSrc, deletedIds, \u0027id\u0027);"},{"line_number":175,"context_line":"          }"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"          // Handle updated items"},{"line_number":178,"context_line":"          if (result.updated \u0026\u0026 result.updated.length \u003e 0) {"},{"line_number":179,"context_line":"            result.updated.forEach(function (updatedItem) {"},{"line_number":180,"context_line":"              var existingIndex \u003d ctrl.imagesSrc.findIndex(function (existingItem) {"}],"source_content_type":"text/javascript","patch_set":3,"id":"7af24918_cab76638","line":177,"range":{"start_line":177,"start_character":13,"end_line":177,"end_character":33},"in_reply_to":"7af24918_093843ee","updated":"2016-03-03 15:50:29.000000000","message":"I think you\u0027d pretty much have to do the above for anything using the \u003cactions\u003e directive.  Otherwise there\u0027s no way to link the actions kickoff with the promise handling on the controller side.","commit_id":"04a70fe19271c16d3772c5bcf80a8d34e73c0b48"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"03cec16463b805d6edfcc0a1794ac1ebf9c35d1e","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            ctrl.imagesSrc \u003d difference(ctrl.imagesSrc, deletedIds, \u0027id\u0027);"},{"line_number":175,"context_line":"          }"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"          // Handle updated items"},{"line_number":178,"context_line":"          if (result.updated \u0026\u0026 result.updated.length \u003e 0) {"},{"line_number":179,"context_line":"            result.updated.forEach(function (updatedItem) {"},{"line_number":180,"context_line":"              var existingIndex \u003d ctrl.imagesSrc.findIndex(function (existingItem) {"}],"source_content_type":"text/javascript","patch_set":3,"id":"7af24918_ac567227","line":177,"range":{"start_line":177,"start_character":13,"end_line":177,"end_character":33},"in_reply_to":"7af24918_cab76638","updated":"2016-03-03 17:20:30.000000000","message":"For future reference, I think we can put code in to better handle actions\u0027 promises in:\n\nhttps://github.com/openstack/horizon/blob/master/horizon/static/framework/widgets/action-list/action.directive.js\n\nand the associated .html file.","commit_id":"04a70fe19271c16d3772c5bcf80a8d34e73c0b48"}]}
