)]}'
{"tripleo_common/actions/container_images.py":[{"author":{"_account_id":9712,"name":"Dougal Matthews","email":"dougal.matthews@canonical.com","username":"dougal"},"change_message_id":"a04f04049fa62ca4e2d1d794f4e34497b87384fd","unresolved":false,"context_lines":[{"line_number":17,"context_line":"import logging"},{"line_number":18,"context_line":"import os"},{"line_number":19,"context_line":"import sys"},{"line_number":20,"context_line":"import tempfile as tf"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from heatclient.common import template_utils"},{"line_number":23,"context_line":"from mistral_lib import actions"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_2331315b","line":20,"range":{"start_line":20,"start_character":19,"end_line":20,"end_character":21},"updated":"2018-04-11 08:27:16.000000000","message":"Do we need the alias?","commit_id":"65f7e2652c18be501f6e3751ab29713699daadd4"},{"author":{"_account_id":4571,"name":"Steve Baker","email":"sbaker@redhat.com","username":"steve-stevebaker"},"change_message_id":"849cca321dc989832610a8b37ea7564e53f36192","unresolved":false,"context_lines":[{"line_number":17,"context_line":"import logging"},{"line_number":18,"context_line":"import os"},{"line_number":19,"context_line":"import sys"},{"line_number":20,"context_line":"import tempfile as tf"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from heatclient.common import template_utils"},{"line_number":23,"context_line":"from mistral_lib import actions"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_6ae92718","line":20,"range":{"start_line":20,"start_character":19,"end_line":20,"end_character":21},"in_reply_to":"bf659307_2331315b","updated":"2018-04-11 21:38:45.000000000","message":"This was cargo-culted out of tripleo_common/actions/templates.py","commit_id":"65f7e2652c18be501f6e3751ab29713699daadd4"},{"author":{"_account_id":9712,"name":"Dougal Matthews","email":"dougal.matthews@canonical.com","username":"dougal"},"change_message_id":"a04f04049fa62ca4e2d1d794f4e34497b87384fd","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        super(PrepareUploadContainerImages, self).__init__()"},{"line_number":98,"context_line":"        self.container \u003d container"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    @staticmethod"},{"line_number":101,"context_line":"    def _create_temp_file(data):"},{"line_number":102,"context_line":"        handle, env_temp_file \u003d tf.mkstemp()"},{"line_number":103,"context_line":"        with open(env_temp_file, \u0027w\u0027) as temp_file:"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_a3f7818b","line":100,"range":{"start_line":100,"start_character":4,"end_line":100,"end_character":17},"updated":"2018-04-11 08:27:16.000000000","message":"This method isn\u0027t really used as a static method, so I would remove this and add \"self\"","commit_id":"65f7e2652c18be501f6e3751ab29713699daadd4"},{"author":{"_account_id":4571,"name":"Steve Baker","email":"sbaker@redhat.com","username":"steve-stevebaker"},"change_message_id":"849cca321dc989832610a8b37ea7564e53f36192","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        super(PrepareUploadContainerImages, self).__init__()"},{"line_number":98,"context_line":"        self.container \u003d container"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    @staticmethod"},{"line_number":101,"context_line":"    def _create_temp_file(data):"},{"line_number":102,"context_line":"        handle, env_temp_file \u003d tf.mkstemp()"},{"line_number":103,"context_line":"        with open(env_temp_file, \u0027w\u0027) as temp_file:"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_2ac80fa6","line":100,"range":{"start_line":100,"start_character":4,"end_line":100,"end_character":17},"in_reply_to":"bf659307_a3f7818b","updated":"2018-04-11 21:38:45.000000000","message":"This was copied out of a top-level function in tripleo_common/actions/templates.py. There is a bit of duplicated code between this and ProcessTemplatesAction now. I\u0027ll attempt some refactoring in the next pass of this change.","commit_id":"65f7e2652c18be501f6e3751ab29713699daadd4"},{"author":{"_account_id":9712,"name":"Dougal Matthews","email":"dougal.matthews@canonical.com","username":"dougal"},"change_message_id":"a04f04049fa62ca4e2d1d794f4e34497b87384fd","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        self.container \u003d container"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    @staticmethod"},{"line_number":101,"context_line":"    def _create_temp_file(data):"},{"line_number":102,"context_line":"        handle, env_temp_file \u003d tf.mkstemp()"},{"line_number":103,"context_line":"        with open(env_temp_file, \u0027w\u0027) as temp_file:"},{"line_number":104,"context_line":"            temp_file.write(json.dumps(data))"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_230cd1a3","line":101,"updated":"2018-04-11 08:27:16.000000000","message":"A shorter version of this could be...\n\nwith tempfile.NamedTemporaryFile(delete\u003dFalse) as temp_file:\n    temp_file.write(json.dumps(data))\n    return temp_file.name","commit_id":"65f7e2652c18be501f6e3751ab29713699daadd4"},{"author":{"_account_id":9712,"name":"Dougal Matthews","email":"dougal.matthews@canonical.com","username":"dougal"},"change_message_id":"a04f04049fa62ca4e2d1d794f4e34497b87384fd","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            role_data \u003d None"},{"line_number":117,"context_line":"        return role_data"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def run(self, context):"},{"line_number":120,"context_line":"        self.context \u003d context"},{"line_number":121,"context_line":"        swift \u003d self.get_object_client(context)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_03150d9c","line":119,"updated":"2018-04-11 08:27:16.000000000","message":"I would encourage writing less logic within the action class - this method is quite large and I imagine therefore difficult to test or re-use any of the code. This is something we have done badly in a number of places.","commit_id":"65f7e2652c18be501f6e3751ab29713699daadd4"},{"author":{"_account_id":4571,"name":"Steve Baker","email":"sbaker@redhat.com","username":"steve-stevebaker"},"change_message_id":"849cca321dc989832610a8b37ea7564e53f36192","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            role_data \u003d None"},{"line_number":117,"context_line":"        return role_data"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def run(self, context):"},{"line_number":120,"context_line":"        self.context \u003d context"},{"line_number":121,"context_line":"        swift \u003d self.get_object_client(context)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_6a37e7b1","line":119,"in_reply_to":"bf659307_03150d9c","updated":"2018-04-11 21:38:45.000000000","message":"Agreed, making this unit-testable will result in this being broken into a bunch of methods, or hopefully some utility functions to be shared with ProcessTemplatesAction","commit_id":"65f7e2652c18be501f6e3751ab29713699daadd4"},{"author":{"_account_id":7065,"name":"Brad P. Crochet","email":"brad@redhat.com","username":"bcrochet"},"change_message_id":"74e6e9aff06dfa19eed24ab96f362d97e078a761","unresolved":false,"context_lines":[{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        environments \u003d {constants.CONTAINER_DEFAULTS_ENVIRONMENT: True}"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        update_action \u003d heat_capabilities.UpdateCapabilitiesAction("},{"line_number":154,"context_line":"            environments, container\u003dself.container)"},{"line_number":155,"context_line":"        return update_action.run(context)"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_9f117b60","line":153,"updated":"2018-05-10 10:53:35.000000000","message":"Shouldn\u0027t this just be part of the workflow? This is kind of an anti-pattern.\n\nIn fact, a lot of this can be done directly in the workflow. Especially this call and the swift calls.","commit_id":"031f8a571cd705372f541321dc71d1f2de935ac0"},{"author":{"_account_id":4571,"name":"Steve Baker","email":"sbaker@redhat.com","username":"steve-stevebaker"},"change_message_id":"e6f18699b3b456eaa3f4fd2558634c03f7acda38","unresolved":false,"context_lines":[{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        environments \u003d {constants.CONTAINER_DEFAULTS_ENVIRONMENT: True}"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        update_action \u003d heat_capabilities.UpdateCapabilitiesAction("},{"line_number":154,"context_line":"            environments, container\u003dself.container)"},{"line_number":155,"context_line":"        return update_action.run(context)"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_324e7496","line":153,"in_reply_to":"5f7c97a3_9f117b60","updated":"2018-06-07 22:18:39.000000000","message":"I can move this encapsulation to the workflow, but I\u0027m not sure it would be appropriate to decompose all of this into the workflow, because it needs all the environment files in a temp directory, and I don\u0027t think we want to pass around temp directory references between actions. Currently we only pass plain container names between actions.","commit_id":"031f8a571cd705372f541321dc71d1f2de935ac0"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"0ef88c85d63945ed0d2b9560c97cb2ee3f56619e","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.container, constants.OVERCLOUD_J2_ROLES_NAME)[1]"},{"line_number":100,"context_line":"            role_data \u003d yaml.safe_load(j2_role_file)"},{"line_number":101,"context_line":"        except swiftexceptions.ClientException:"},{"line_number":102,"context_line":"            LOG.info(\"No %s file found, not filtering container images by role\""},{"line_number":103,"context_line":"                     % constants.OVERCLOUD_J2_ROLES_NAME)"},{"line_number":104,"context_line":"            role_data \u003d None"},{"line_number":105,"context_line":"        return role_data"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_76e0a5fa","line":102,"updated":"2018-07-24 09:22:28.000000000","message":"please use _() i18n thingys","commit_id":"49c169a144b6bbe23f1f1ff525183ce8c0351fc1"}],"workbooks/deployment.yaml":[{"author":{"_account_id":13039,"name":"Martin André","email":"m.andre@redhat.com","username":"mandre"},"change_message_id":"13a16c72808a957ff7e9d528724620e75ed00c78","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        on-success: create_swift_rings_backup_plan"},{"line_number":172,"context_line":"        on-error: container_image_prepare_upload_failed"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"      container_image_prepare_upload_failed:"},{"line_number":175,"context_line":"        on-success: send_message"},{"line_number":176,"context_line":"        publish:"},{"line_number":177,"context_line":"          status: FAILED"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f7c97a3_9428afee","line":174,"updated":"2018-06-19 13:58:21.000000000","message":"IIUC these days we prefer to set publish-on-error rather than using another task to set a failure message, see an example on lines 162-163.","commit_id":"f354ebe56f30c7cd9592dc930d78c9e8839990a7"},{"author":{"_account_id":4571,"name":"Steve Baker","email":"sbaker@redhat.com","username":"steve-stevebaker"},"change_message_id":"0be6da15b9e489f8c484aeb7968cdd8ad4dc2d2c","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        on-success: create_swift_rings_backup_plan"},{"line_number":172,"context_line":"        on-error: container_image_prepare_upload_failed"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"      container_image_prepare_upload_failed:"},{"line_number":175,"context_line":"        on-success: send_message"},{"line_number":176,"context_line":"        publish:"},{"line_number":177,"context_line":"          status: FAILED"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f7c97a3_f540bd61","line":174,"in_reply_to":"5f7c97a3_9428afee","updated":"2018-06-22 00:11:34.000000000","message":"I\u0027ll make this change, because I really dislike these failed actions","commit_id":"f354ebe56f30c7cd9592dc930d78c9e8839990a7"}]}
