)]}'
{"openstack_dashboard/contrib/developer/static/dashboard/developer/resource-browser/resource-browser-item.controller.js":[{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"34d431134c86d7b591c409d61323d219a04b7728","unresolved":false,"context_lines":[{"line_number":193,"context_line":"    }"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"    function onGlobalActionSelected(action) {"},{"line_number":196,"context_line":"      if (action.service.initAction) {"},{"line_number":197,"context_line":"        action.service.initAction();"},{"line_number":198,"context_line":"      }"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"      return action.service.perform(null, $scope.$new());"},{"line_number":201,"context_line":"    }"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_35f7f95b","line":198,"range":{"start_line":196,"start_character":0,"end_line":198,"end_character":7},"updated":"2017-08-30 15:38:15.000000000","message":"I may just be unfamiliar with resource-browser-item, but I don\u0027t get this. I know initAction was already called before this patch. Why do we need to call it from here too?","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"},{"author":{"_account_id":16352,"name":"Shu Muto","email":"shu.mutow@gmail.com","username":"shu.mutow"},"change_message_id":"697cead00ea56a115459912c158b011fc73bd711","unresolved":false,"context_lines":[{"line_number":193,"context_line":"    }"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"    function onGlobalActionSelected(action) {"},{"line_number":196,"context_line":"      if (action.service.initAction) {"},{"line_number":197,"context_line":"        action.service.initAction();"},{"line_number":198,"context_line":"      }"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"      return action.service.perform(null, $scope.$new());"},{"line_number":201,"context_line":"    }"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_a6516f38","line":198,"range":{"start_line":196,"start_character":0,"end_line":198,"end_character":7},"in_reply_to":"7f287b81_35f7f95b","updated":"2017-08-31 03:50:37.000000000","message":"Also, I\u0027m not familier with resource browser, but initAction doesn\u0027t seems to be called automatically on resource browser. So this seems to be needed for resource browser. BTW, on resource browser, I found the error caused by trunk panel. Duplicated labels doesn\u0027t seem to be allowed. https://github.com/openstack/horizon/blob/2f0756fdd16f31707d29fc6f8e61df1a2eeb5cdf/openstack_dashboard/static/app/core/trunks/trunks.module.js#L130-L131\nCould you fix it?","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"},{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"96ff076c03a0401cb722a0fdcd072070f3571c8f","unresolved":false,"context_lines":[{"line_number":193,"context_line":"    }"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"    function onGlobalActionSelected(action) {"},{"line_number":196,"context_line":"      if (action.service.initAction) {"},{"line_number":197,"context_line":"        action.service.initAction();"},{"line_number":198,"context_line":"      }"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"      return action.service.perform(null, $scope.$new());"},{"line_number":201,"context_line":"    }"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_b7707841","line":198,"range":{"start_line":196,"start_character":0,"end_line":198,"end_character":7},"in_reply_to":"7f287b81_a6516f38","updated":"2017-08-31 09:06:11.000000000","message":"I\u0027ll include a fix for that in the next patch set of the trunk create patch. Thank you.","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"}],"openstack_dashboard/static/app/core/images/actions/create.action.service.js":[{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"34d431134c86d7b591c409d61323d219a04b7728","unresolved":false,"context_lines":[{"line_number":55,"context_line":"      success: gettext(\u0027Image %s was successfully created.\u0027)"},{"line_number":56,"context_line":"    };"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    var scope;"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    var service \u003d {"},{"line_number":61,"context_line":"      initAction: initAction,"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_5053b3e2","line":58,"range":{"start_line":58,"start_character":4,"end_line":58,"end_character":14},"updated":"2017-08-30 15:38:15.000000000","message":"I\u0027m quite lost in trying to understand if this use of scope makes the create action service stateful or not. Please see also my comments in the edit and delete action services about top level state variables.","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"},{"author":{"_account_id":16352,"name":"Shu Muto","email":"shu.mutow@gmail.com","username":"shu.mutow"},"change_message_id":"697cead00ea56a115459912c158b011fc73bd711","unresolved":false,"context_lines":[{"line_number":55,"context_line":"      success: gettext(\u0027Image %s was successfully created.\u0027)"},{"line_number":56,"context_line":"    };"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    var scope;"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    var service \u003d {"},{"line_number":61,"context_line":"      initAction: initAction,"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_a63ccf92","line":58,"range":{"start_line":58,"start_character":4,"end_line":58,"end_character":14},"in_reply_to":"7f287b81_5053b3e2","updated":"2017-08-31 03:50:37.000000000","message":"Done","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"},{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"34d431134c86d7b591c409d61323d219a04b7728","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    var scope;"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    var service \u003d {"},{"line_number":61,"context_line":"      initAction: initAction,"},{"line_number":62,"context_line":"      perform: perform,"},{"line_number":63,"context_line":"      allowed: allowed"},{"line_number":64,"context_line":"    };"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_7010ef4e","line":61,"range":{"start_line":61,"start_character":0,"end_line":61,"end_character":29},"updated":"2017-08-30 15:38:15.000000000","message":"Can\u0027t we just delete this if initAction does nothing?","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"},{"author":{"_account_id":16352,"name":"Shu Muto","email":"shu.mutow@gmail.com","username":"shu.mutow"},"change_message_id":"697cead00ea56a115459912c158b011fc73bd711","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    var scope;"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    var service \u003d {"},{"line_number":61,"context_line":"      initAction: initAction,"},{"line_number":62,"context_line":"      perform: perform,"},{"line_number":63,"context_line":"      allowed: allowed"},{"line_number":64,"context_line":"    };"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_2bc9ca57","line":61,"range":{"start_line":61,"start_character":0,"end_line":61,"end_character":29},"in_reply_to":"7f287b81_7010ef4e","updated":"2017-08-31 03:50:37.000000000","message":"Yes we can. I just forgot removing it. ;)","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"}],"openstack_dashboard/static/app/core/images/actions/delete-image.service.js":[{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"34d431134c86d7b591c409d61323d219a04b7728","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    toast,"},{"line_number":53,"context_line":"    imagesResourceType"},{"line_number":54,"context_line":"  ) {"},{"line_number":55,"context_line":"    var scope, context, deleteImagePromise;"},{"line_number":56,"context_line":"    var notAllowedMessage \u003d gettext(\"You are not allowed to delete images: %s\");"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    var service \u003d {"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_1a1d4c73","line":55,"range":{"start_line":55,"start_character":8,"end_line":55,"end_character":22},"updated":"2017-08-30 15:38:15.000000000","message":"I think we need to get rid of these being declared right under deleteImageService. Because this still makes the action service stateful and that would be a problem if we used the action service twice. I think these can be passed differently to where they are needed.\n\nThe same may not apply to deleteImagePromise as long as all it does is a policy check. But it also applies if deleteImagePromise starts doing more.\n\nHere\u0027s a mail thread where this was discussed:\nhttp://lists.openstack.org/pipermail/openstack-dev/2016-July/099368.html","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"},{"author":{"_account_id":16352,"name":"Shu Muto","email":"shu.mutow@gmail.com","username":"shu.mutow"},"change_message_id":"697cead00ea56a115459912c158b011fc73bd711","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    toast,"},{"line_number":53,"context_line":"    imagesResourceType"},{"line_number":54,"context_line":"  ) {"},{"line_number":55,"context_line":"    var scope, context, deleteImagePromise;"},{"line_number":56,"context_line":"    var notAllowedMessage \u003d gettext(\"You are not allowed to delete images: %s\");"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    var service \u003d {"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_0649635e","line":55,"range":{"start_line":55,"start_character":8,"end_line":55,"end_character":22},"in_reply_to":"7f287b81_1a1d4c73","updated":"2017-08-31 03:50:37.000000000","message":"Done","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"},{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"34d431134c86d7b591c409d61323d219a04b7728","unresolved":false,"context_lines":[{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    //////////////"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    function initScope() {"},{"line_number":69,"context_line":"      deleteImagePromise \u003d policy.ifAllowed({rules: [[\u0027image\u0027, \u0027delete_image\u0027]]});"},{"line_number":70,"context_line":"    }"},{"line_number":71,"context_line":""}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_faee0020","line":68,"range":{"start_line":68,"start_character":13,"end_line":68,"end_character":22},"updated":"2017-08-30 15:38:15.000000000","message":"I guess you wanted to rename this to initAction.\n\nOn the other hand I\u0027m not sure if we need initAction here at all. Because I think the policy would get re-evaluated whenever it is needed if it was called directly from allowed(). Then deleteImagePromise could be declared in allowed().","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"},{"author":{"_account_id":16352,"name":"Shu Muto","email":"shu.mutow@gmail.com","username":"shu.mutow"},"change_message_id":"697cead00ea56a115459912c158b011fc73bd711","unresolved":false,"context_lines":[{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    //////////////"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    function initScope() {"},{"line_number":69,"context_line":"      deleteImagePromise \u003d policy.ifAllowed({rules: [[\u0027image\u0027, \u0027delete_image\u0027]]});"},{"line_number":70,"context_line":"    }"},{"line_number":71,"context_line":""}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_ab1ffa69","line":68,"range":{"start_line":68,"start_character":13,"end_line":68,"end_character":22},"in_reply_to":"7f287b81_faee0020","updated":"2017-08-31 03:50:37.000000000","message":"Done","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"},{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"34d431134c86d7b591c409d61323d219a04b7728","unresolved":false,"context_lines":[{"line_number":75,"context_line":"      var images \u003d angular.isArray(items) ? items : [items];"},{"line_number":76,"context_line":"      context.labels \u003d labelize(images.length);"},{"line_number":77,"context_line":"      context.deleteEntity \u003d deleteImage;"},{"line_number":78,"context_line":"      return $qExtensions.allSettled(images.map(checkPermission)).then(afterCheck);"},{"line_number":79,"context_line":"    }"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    function allowed(image) {"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_b5a6490e","line":78,"range":{"start_line":78,"start_character":71,"end_line":78,"end_character":81},"updated":"2017-08-30 15:38:15.000000000","message":"\u0027scope\u0027 and \u0027context\u0027 could be passed here directly.","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"},{"author":{"_account_id":16352,"name":"Shu Muto","email":"shu.mutow@gmail.com","username":"shu.mutow"},"change_message_id":"697cead00ea56a115459912c158b011fc73bd711","unresolved":false,"context_lines":[{"line_number":75,"context_line":"      var images \u003d angular.isArray(items) ? items : [items];"},{"line_number":76,"context_line":"      context.labels \u003d labelize(images.length);"},{"line_number":77,"context_line":"      context.deleteEntity \u003d deleteImage;"},{"line_number":78,"context_line":"      return $qExtensions.allSettled(images.map(checkPermission)).then(afterCheck);"},{"line_number":79,"context_line":"    }"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    function allowed(image) {"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_e643f73d","line":78,"range":{"start_line":78,"start_character":71,"end_line":78,"end_character":81},"in_reply_to":"7f287b81_b5a6490e","updated":"2017-08-31 03:50:37.000000000","message":"Done","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"}],"openstack_dashboard/static/app/core/images/actions/edit.action.service.js":[{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"34d431134c86d7b591c409d61323d219a04b7728","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    var modifyImagePolicyCheck;"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    var model \u003d {"},{"line_number":63,"context_line":"      image: {},"},{"line_number":64,"context_line":"      metadata: {}"},{"line_number":65,"context_line":"    };"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    var service \u003d {"},{"line_number":68,"context_line":"      initAction: initAction,"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_95246d5f","line":65,"range":{"start_line":62,"start_character":0,"end_line":65,"end_character":6},"updated":"2017-08-30 15:38:15.000000000","message":"Again this is state in the action service that should not be. I think submit() should directly pass the models to updateMetadata and updateImage.","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"},{"author":{"_account_id":16352,"name":"Shu Muto","email":"shu.mutow@gmail.com","username":"shu.mutow"},"change_message_id":"697cead00ea56a115459912c158b011fc73bd711","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    var modifyImagePolicyCheck;"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    var model \u003d {"},{"line_number":63,"context_line":"      image: {},"},{"line_number":64,"context_line":"      metadata: {}"},{"line_number":65,"context_line":"    };"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    var service \u003d {"},{"line_number":68,"context_line":"      initAction: initAction,"}],"source_content_type":"text/javascript","patch_set":4,"id":"7f287b81_2648df2a","line":65,"range":{"start_line":62,"start_character":0,"end_line":65,"end_character":6},"in_reply_to":"7f287b81_95246d5f","updated":"2017-08-31 03:50:37.000000000","message":"Done","commit_id":"44e732c3a04470659d8b35c903a6853d18784598"}]}
