)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"23f8e54487f432842cfa614926fc491ddbcb9e88","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This patch adds notifications for create, update or delete"},{"line_number":10,"context_line":"portgroups. Event types are:"},{"line_number":11,"context_line":"baremetal.portgroup.{create, update, delete}.{start,end,error}."},{"line_number":12,"context_line":"Developer documentation updated."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Closes-Bug: #1660292"},{"line_number":15,"context_line":"Change-Id: I9a8ce6c34e9c704b1aeeb526babcb20a5b1261db"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa31d9ce_21554bf9","line":12,"updated":"2017-02-14 22:18:38.000000000","message":"would be good to mention the portgroup UUID field for port notifications. (Makes me wonder if it should be a separate patch but I don\u0027t care that much.)","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"480cd9d086ee54ee82e4c2b241663585c0927b6a","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This patch adds notifications for create, update or delete"},{"line_number":10,"context_line":"portgroups. Event types are:"},{"line_number":11,"context_line":"baremetal.portgroup.{create, update, delete}.{start,end,error}."},{"line_number":12,"context_line":"Developer documentation updated."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Closes-Bug: #1660292"},{"line_number":15,"context_line":"Change-Id: I9a8ce6c34e9c704b1aeeb526babcb20a5b1261db"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa31d9ce_f39bf763","line":12,"in_reply_to":"fa31d9ce_21554bf9","updated":"2017-02-15 09:52:45.000000000","message":"Done","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"}],"doc/source/deploy/notifications.rst":[{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"c10ad45eb8f3c55480b3dcc7d6893bf9688919e3","unresolved":false,"context_lines":[{"line_number":233,"context_line":"    \"payload\":{"},{"line_number":234,"context_line":"        \"ironic_object.namespace\":\"ironic\","},{"line_number":235,"context_line":"        \"ironic_object.name\":\"PortgroupCRUDPayload\","},{"line_number":236,"context_line":"        \"ironic_object.version\":\"1.0\","},{"line_number":237,"context_line":"        \"ironic_object.data\":{"},{"line_number":238,"context_line":"            \"address\": \"11:44:32:87:61:e5\","},{"line_number":239,"context_line":"            \"created_at\": \"2017-01-11T11:33:03+00:00\","}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a461143_bee0e197","line":236,"updated":"2017-02-06 22:19:41.000000000","message":"Is the version 1.1 ?","commit_id":"1527d0f9266808d2b12b43f8979a1acfa4599efd"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ae4c6ceda8866eafb5725e22c0f15625cf362d93","unresolved":false,"context_lines":[{"line_number":233,"context_line":"    \"payload\":{"},{"line_number":234,"context_line":"        \"ironic_object.namespace\":\"ironic\","},{"line_number":235,"context_line":"        \"ironic_object.name\":\"PortgroupCRUDPayload\","},{"line_number":236,"context_line":"        \"ironic_object.version\":\"1.0\","},{"line_number":237,"context_line":"        \"ironic_object.data\":{"},{"line_number":238,"context_line":"            \"address\": \"11:44:32:87:61:e5\","},{"line_number":239,"context_line":"            \"created_at\": \"2017-01-11T11:33:03+00:00\","}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_78f56855","line":236,"in_reply_to":"3a461143_bee0e197","updated":"2017-02-07 11:36:55.000000000","message":"It\u0027s initial version 1.0 (objects/portgroup.py).","commit_id":"1527d0f9266808d2b12b43f8979a1acfa4599efd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"23f8e54487f432842cfa614926fc491ddbcb9e88","unresolved":false,"context_lines":[{"line_number":214,"context_line":"    \"publisher_id\":\"ironic-api.hostname02\""},{"line_number":215,"context_line":"   }"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"List of CRUD notifications for portgroup:"},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"* ``baremetal.portgroup.create.start``"},{"line_number":220,"context_line":"* ``baremetal.portgroup.create.end``"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_c15d4f16","line":217,"updated":"2017-02-14 22:18:38.000000000","message":"I think we try to use \u0027port group\u0027 when documenting/mentioning port groups.","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"480cd9d086ee54ee82e4c2b241663585c0927b6a","unresolved":false,"context_lines":[{"line_number":214,"context_line":"    \"publisher_id\":\"ironic-api.hostname02\""},{"line_number":215,"context_line":"   }"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"List of CRUD notifications for portgroup:"},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"* ``baremetal.portgroup.create.start``"},{"line_number":220,"context_line":"* ``baremetal.portgroup.create.end``"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa31d9ce_18b42a7e","line":217,"in_reply_to":"fa31d9ce_c15d4f16","updated":"2017-02-15 09:52:45.000000000","message":"Done","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"}],"ironic/api/controllers/v1/notification_utils.py":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a8c8c21615a88c0e31258025a6a08b6314435779","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                notification_method \u003d node_objects.NodeMaintenanceNotification"},{"line_number":67,"context_line":"                payload_method \u003d node_objects.NodePayload"},{"line_number":68,"context_line":"            elif resource not in CRUD_NOTIFY_OBJ:"},{"line_number":69,"context_line":"                notification_name \u003d payload_name \u003d _(\"unknown\")"},{"line_number":70,"context_line":"                raise KeyError(_(\"Unsupported resource: %s\") % resource)"},{"line_number":71,"context_line":"            else:"},{"line_number":72,"context_line":"                notification_method, payload_method \u003d CRUD_NOTIFY_OBJ[resource]"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a430d35_cd9f974e","line":69,"updated":"2017-02-06 21:21:35.000000000","message":"nit: unrelated change ?","commit_id":"1527d0f9266808d2b12b43f8979a1acfa4599efd"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ae4c6ceda8866eafb5725e22c0f15625cf362d93","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                notification_method \u003d node_objects.NodeMaintenanceNotification"},{"line_number":67,"context_line":"                payload_method \u003d node_objects.NodePayload"},{"line_number":68,"context_line":"            elif resource not in CRUD_NOTIFY_OBJ:"},{"line_number":69,"context_line":"                notification_name \u003d payload_name \u003d _(\"unknown\")"},{"line_number":70,"context_line":"                raise KeyError(_(\"Unsupported resource: %s\") % resource)"},{"line_number":71,"context_line":"            else:"},{"line_number":72,"context_line":"                notification_method, payload_method \u003d CRUD_NOTIFY_OBJ[resource]"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a430d35_f8af9827","line":69,"in_reply_to":"1a430d35_cd9f974e","updated":"2017-02-07 11:36:55.000000000","message":"Yes, it\u0027s unrelated. Maybe should be changed later.","commit_id":"1527d0f9266808d2b12b43f8979a1acfa4599efd"}],"ironic/api/controllers/v1/port.py":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a8c8c21615a88c0e31258025a6a08b6314435779","unresolved":false,"context_lines":[{"line_number":534,"context_line":"        new_port \u003d objects.Port(context, **pdict)"},{"line_number":535,"context_line":""},{"line_number":536,"context_line":"        notify_extra \u003d {\u0027node_uuid\u0027: port.node_uuid,"},{"line_number":537,"context_line":"                        \u0027portgroup_uuid\u0027: port.portgroup_uuid}"},{"line_number":538,"context_line":"        notify.emit_start_notification(context, new_port, \u0027create\u0027,"},{"line_number":539,"context_line":"                                       **notify_extra)"},{"line_number":540,"context_line":"        with notify.handle_error_notification(context, new_port, \u0027create\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a430d35_8db4afd1","line":537,"range":{"start_line":537,"start_character":42,"end_line":537,"end_character":61},"updated":"2017-02-06 21:21:35.000000000","message":"this doesn\u0027t required \"or None\", right? in case this port doesn\u0027t have a portgroup","commit_id":"1527d0f9266808d2b12b43f8979a1acfa4599efd"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ae4c6ceda8866eafb5725e22c0f15625cf362d93","unresolved":false,"context_lines":[{"line_number":534,"context_line":"        new_port \u003d objects.Port(context, **pdict)"},{"line_number":535,"context_line":""},{"line_number":536,"context_line":"        notify_extra \u003d {\u0027node_uuid\u0027: port.node_uuid,"},{"line_number":537,"context_line":"                        \u0027portgroup_uuid\u0027: port.portgroup_uuid}"},{"line_number":538,"context_line":"        notify.emit_start_notification(context, new_port, \u0027create\u0027,"},{"line_number":539,"context_line":"                                       **notify_extra)"},{"line_number":540,"context_line":"        with notify.handle_error_notification(context, new_port, \u0027create\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a430d35_b35a9328","line":537,"range":{"start_line":537,"start_character":42,"end_line":537,"end_character":61},"in_reply_to":"1a430d35_8db4afd1","updated":"2017-02-07 11:36:55.000000000","message":"It\u0027s required as parameter, because we should know portgroup for port payload, but can be None or wsme.Unset.","commit_id":"1527d0f9266808d2b12b43f8979a1acfa4599efd"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"da4fff81e9904ef7cff9b943d0772e6b496523ff","unresolved":false,"context_lines":[{"line_number":622,"context_line":"        api_port \u003d Port.convert_with_links(new_port)"},{"line_number":623,"context_line":"        notify.emit_end_notification(context, new_port, \u0027update\u0027,"},{"line_number":624,"context_line":"                                     node_uuid\u003dapi_port.node_uuid,"},{"line_number":625,"context_line":"                                     portgroup_uuid\u003dapi_port.portgroup_uuid)"},{"line_number":626,"context_line":""},{"line_number":627,"context_line":"        return api_port"},{"line_number":628,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_25eba679","line":625,"range":{"start_line":625,"start_character":37,"end_line":625,"end_character":75},"updated":"2017-02-07 18:44:48.000000000","message":"We can pass notify_extra.","commit_id":"9e1d86a19b88716979a0ec8b6e8d25a06c1e0ed4"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"54c896de18f80264066fa34210b3116fd7b8c5d7","unresolved":false,"context_lines":[{"line_number":622,"context_line":"        api_port \u003d Port.convert_with_links(new_port)"},{"line_number":623,"context_line":"        notify.emit_end_notification(context, new_port, \u0027update\u0027,"},{"line_number":624,"context_line":"                                     node_uuid\u003dapi_port.node_uuid,"},{"line_number":625,"context_line":"                                     portgroup_uuid\u003dapi_port.portgroup_uuid)"},{"line_number":626,"context_line":""},{"line_number":627,"context_line":"        return api_port"},{"line_number":628,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_44779d9f","line":625,"range":{"start_line":625,"start_character":37,"end_line":625,"end_character":75},"in_reply_to":"1a430d35_02f83cc2","updated":"2017-02-08 18:56:09.000000000","message":"Thanks.","commit_id":"9e1d86a19b88716979a0ec8b6e8d25a06c1e0ed4"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"1c0838965f6cd629c2173c9c26c7ec98f46da88a","unresolved":false,"context_lines":[{"line_number":622,"context_line":"        api_port \u003d Port.convert_with_links(new_port)"},{"line_number":623,"context_line":"        notify.emit_end_notification(context, new_port, \u0027update\u0027,"},{"line_number":624,"context_line":"                                     node_uuid\u003dapi_port.node_uuid,"},{"line_number":625,"context_line":"                                     portgroup_uuid\u003dapi_port.portgroup_uuid)"},{"line_number":626,"context_line":""},{"line_number":627,"context_line":"        return api_port"},{"line_number":628,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_02f83cc2","line":625,"range":{"start_line":625,"start_character":37,"end_line":625,"end_character":75},"in_reply_to":"1a430d35_25eba679","updated":"2017-02-08 12:51:33.000000000","message":"Done","commit_id":"9e1d86a19b88716979a0ec8b6e8d25a06c1e0ed4"},{"author":{"_account_id":11878,"name":"Rushil Chugh","email":"rushil.chugh@gmail.com","username":"rushil"},"change_message_id":"5af0d95ea9aee3b2e7dc7f77eedbd481ae24702f","unresolved":false,"context_lines":[{"line_number":651,"context_line":"            portgroup_uuid \u003d portgroup.uuid"},{"line_number":652,"context_line":""},{"line_number":653,"context_line":"        notify_extra \u003d {\u0027node_uuid\u0027: rpc_node.uuid,"},{"line_number":654,"context_line":"                        \u0027portgroup_uuid\u0027: portgroup_uuid}"},{"line_number":655,"context_line":"        notify.emit_start_notification(context, rpc_port, \u0027delete\u0027,"},{"line_number":656,"context_line":"                                       **notify_extra)"},{"line_number":657,"context_line":"        with notify.handle_error_notification(context, rpc_port, \u0027delete\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_c1ef2d1c","line":654,"range":{"start_line":654,"start_character":42,"end_line":654,"end_character":56},"updated":"2017-02-07 23:08:57.000000000","message":"Replace portgroup_uuid with portgroup.uuid and remove the line above.","commit_id":"9e1d86a19b88716979a0ec8b6e8d25a06c1e0ed4"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"1c0838965f6cd629c2173c9c26c7ec98f46da88a","unresolved":false,"context_lines":[{"line_number":651,"context_line":"            portgroup_uuid \u003d portgroup.uuid"},{"line_number":652,"context_line":""},{"line_number":653,"context_line":"        notify_extra \u003d {\u0027node_uuid\u0027: rpc_node.uuid,"},{"line_number":654,"context_line":"                        \u0027portgroup_uuid\u0027: portgroup_uuid}"},{"line_number":655,"context_line":"        notify.emit_start_notification(context, rpc_port, \u0027delete\u0027,"},{"line_number":656,"context_line":"                                       **notify_extra)"},{"line_number":657,"context_line":"        with notify.handle_error_notification(context, rpc_port, \u0027delete\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_02e67c14","line":654,"range":{"start_line":654,"start_character":42,"end_line":654,"end_character":56},"in_reply_to":"1a430d35_c1ef2d1c","updated":"2017-02-08 12:51:33.000000000","message":"There is small optimization, we execute db select l649 only if port is member of portgroup.","commit_id":"9e1d86a19b88716979a0ec8b6e8d25a06c1e0ed4"}],"ironic/api/controllers/v1/portgroup.py":[{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"da4fff81e9904ef7cff9b943d0772e6b496523ff","unresolved":false,"context_lines":[{"line_number":431,"context_line":"        if not api_utils.allow_portgroups():"},{"line_number":432,"context_line":"            raise exception.NotFound()"},{"line_number":433,"context_line":""},{"line_number":434,"context_line":"        context \u003d pecan.request.context"},{"line_number":435,"context_line":"        cdict \u003d context.to_policy_values()"},{"line_number":436,"context_line":"        policy.authorize(\u0027baremetal:portgroup:create\u0027, cdict, cdict)"},{"line_number":437,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_8832aff0","line":434,"updated":"2017-02-07 18:44:48.000000000","message":"is there a specific reason to have separate variables context and cdict? Can\u0027t we use pecan.request.context and pass it as is to emit_start_notification?","commit_id":"9e1d86a19b88716979a0ec8b6e8d25a06c1e0ed4"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"54c896de18f80264066fa34210b3116fd7b8c5d7","unresolved":false,"context_lines":[{"line_number":431,"context_line":"        if not api_utils.allow_portgroups():"},{"line_number":432,"context_line":"            raise exception.NotFound()"},{"line_number":433,"context_line":""},{"line_number":434,"context_line":"        context \u003d pecan.request.context"},{"line_number":435,"context_line":"        cdict \u003d context.to_policy_values()"},{"line_number":436,"context_line":"        policy.authorize(\u0027baremetal:portgroup:create\u0027, cdict, cdict)"},{"line_number":437,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_e494098c","line":434,"in_reply_to":"1a430d35_2220d8f6","updated":"2017-02-08 18:56:09.000000000","message":"I see, may be that\u0027s fine.","commit_id":"9e1d86a19b88716979a0ec8b6e8d25a06c1e0ed4"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"1c0838965f6cd629c2173c9c26c7ec98f46da88a","unresolved":false,"context_lines":[{"line_number":431,"context_line":"        if not api_utils.allow_portgroups():"},{"line_number":432,"context_line":"            raise exception.NotFound()"},{"line_number":433,"context_line":""},{"line_number":434,"context_line":"        context \u003d pecan.request.context"},{"line_number":435,"context_line":"        cdict \u003d context.to_policy_values()"},{"line_number":436,"context_line":"        policy.authorize(\u0027baremetal:portgroup:create\u0027, cdict, cdict)"},{"line_number":437,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_2220d8f6","line":434,"in_reply_to":"1a430d35_8832aff0","updated":"2017-02-08 12:51:33.000000000","message":"Yes, we can use pecan.request.context for notifications, there is only small code size minimization via separate variable name.","commit_id":"9e1d86a19b88716979a0ec8b6e8d25a06c1e0ed4"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"da4fff81e9904ef7cff9b943d0772e6b496523ff","unresolved":false,"context_lines":[{"line_number":536,"context_line":"                rpc_portgroup[field] \u003d patch_val"},{"line_number":537,"context_line":""},{"line_number":538,"context_line":"        rpc_node \u003d objects.Node.get_by_id(context, rpc_portgroup.node_id)"},{"line_number":539,"context_line":""},{"line_number":540,"context_line":"        notify.emit_start_notification(context, rpc_portgroup, \u0027update\u0027,"},{"line_number":541,"context_line":"                                       node_uuid\u003drpc_node.uuid)"},{"line_number":542,"context_line":"        with notify.handle_error_notification(context, rpc_portgroup, \u0027update\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_c519028a","line":539,"updated":"2017-02-07 18:44:48.000000000","message":"nit: extra blank line","commit_id":"9e1d86a19b88716979a0ec8b6e8d25a06c1e0ed4"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"1c0838965f6cd629c2173c9c26c7ec98f46da88a","unresolved":false,"context_lines":[{"line_number":536,"context_line":"                rpc_portgroup[field] \u003d patch_val"},{"line_number":537,"context_line":""},{"line_number":538,"context_line":"        rpc_node \u003d objects.Node.get_by_id(context, rpc_portgroup.node_id)"},{"line_number":539,"context_line":""},{"line_number":540,"context_line":"        notify.emit_start_notification(context, rpc_portgroup, \u0027update\u0027,"},{"line_number":541,"context_line":"                                       node_uuid\u003drpc_node.uuid)"},{"line_number":542,"context_line":"        with notify.handle_error_notification(context, rpc_portgroup, \u0027update\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_82698cfb","line":539,"in_reply_to":"1a430d35_c519028a","updated":"2017-02-08 12:51:33.000000000","message":"This line separates code with notifications l540-550, I think this can be better for readability.","commit_id":"9e1d86a19b88716979a0ec8b6e8d25a06c1e0ed4"}],"ironic/tests/unit/api/v1/test_notification_utils.py":[{"author":{"_account_id":11878,"name":"Rushil Chugh","email":"rushil.chugh@gmail.com","username":"rushil"},"change_message_id":"5af0d95ea9aee3b2e7dc7f77eedbd481ae24702f","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        self.assertEqual(portgroup.address, payload.address)"},{"line_number":171,"context_line":"        self.assertEqual(portgroup.name, payload.name)"},{"line_number":172,"context_line":"        self.assertEqual(portgroup.mode, payload.mode)"},{"line_number":173,"context_line":"        self.assertEqual(portgroup.extra, payload.extra)"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"    @mock.patch(\u0027ironic.objects.node.NodeMaintenanceNotification\u0027)"},{"line_number":176,"context_line":"    def test_node_maintenance_notification(self, maintenance_mock):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_cb2cac9b","line":173,"range":{"start_line":173,"start_character":13,"end_line":173,"end_character":24},"updated":"2017-02-07 23:08:57.000000000","message":"Can these asserts be broken up into 7 different tests?","commit_id":"9e1d86a19b88716979a0ec8b6e8d25a06c1e0ed4"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"1c0838965f6cd629c2173c9c26c7ec98f46da88a","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        self.assertEqual(portgroup.address, payload.address)"},{"line_number":171,"context_line":"        self.assertEqual(portgroup.name, payload.name)"},{"line_number":172,"context_line":"        self.assertEqual(portgroup.mode, payload.mode)"},{"line_number":173,"context_line":"        self.assertEqual(portgroup.extra, payload.extra)"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"    @mock.patch(\u0027ironic.objects.node.NodeMaintenanceNotification\u0027)"},{"line_number":176,"context_line":"    def test_node_maintenance_notification(self, maintenance_mock):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a430d35_821eec6d","line":173,"range":{"start_line":173,"start_character":13,"end_line":173,"end_character":24},"in_reply_to":"1a430d35_cb2cac9b","updated":"2017-02-08 12:51:33.000000000","message":"Maybe this can be re-factored later for minimize asserts across all these tests.","commit_id":"9e1d86a19b88716979a0ec8b6e8d25a06c1e0ed4"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"23f8e54487f432842cfa614926fc491ddbcb9e88","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        self.assertEqual(portgroup.address, payload.address)"},{"line_number":171,"context_line":"        self.assertEqual(portgroup.name, payload.name)"},{"line_number":172,"context_line":"        self.assertEqual(portgroup.mode, payload.mode)"},{"line_number":173,"context_line":"        self.assertEqual(portgroup.extra, payload.extra)"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"    @mock.patch(\u0027ironic.objects.node.NodeMaintenanceNotification\u0027)"},{"line_number":176,"context_line":"    def test_node_maintenance_notification(self, maintenance_mock):"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa31d9ce_44716da7","line":173,"updated":"2017-02-14 22:18:38.000000000","message":"I don\u0027t know if you want to check the values of the portgroup\u0027s standalone_ports_supported, properties?","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"480cd9d086ee54ee82e4c2b241663585c0927b6a","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        self.assertEqual(portgroup.address, payload.address)"},{"line_number":171,"context_line":"        self.assertEqual(portgroup.name, payload.name)"},{"line_number":172,"context_line":"        self.assertEqual(portgroup.mode, payload.mode)"},{"line_number":173,"context_line":"        self.assertEqual(portgroup.extra, payload.extra)"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"    @mock.patch(\u0027ironic.objects.node.NodeMaintenanceNotification\u0027)"},{"line_number":176,"context_line":"    def test_node_maintenance_notification(self, maintenance_mock):"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa31d9ce_b305ff11","line":173,"in_reply_to":"fa31d9ce_44716da7","updated":"2017-02-15 09:52:45.000000000","message":"Done","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"e9d3314d09c8d47f427b4f4500ee16fae1d45386","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        self.assertEqual(portgroup.name, payload.name)"},{"line_number":172,"context_line":"        self.assertEqual(portgroup.mode, payload.mode)"},{"line_number":173,"context_line":"        self.assertEqual(portgroup.extra, payload.extra)"},{"line_number":174,"context_line":"        self.assertEqual(portgroup.standalone_ports_supported,"},{"line_number":175,"context_line":"                         payload.standalone_ports_supported)"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    @mock.patch(\u0027ironic.objects.node.NodeMaintenanceNotification\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa31d9ce_5fe681e8","line":174,"updated":"2017-02-15 12:09:11.000000000","message":"properties still missing :)","commit_id":"f9d9b334dab309156eed75ce93693152018746bd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c905c714c258d1deda15b35b4686d588769e6d2c","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        self.assertEqual(portgroup.name, payload.name)"},{"line_number":172,"context_line":"        self.assertEqual(portgroup.mode, payload.mode)"},{"line_number":173,"context_line":"        self.assertEqual(portgroup.extra, payload.extra)"},{"line_number":174,"context_line":"        self.assertEqual(portgroup.standalone_ports_supported,"},{"line_number":175,"context_line":"                         payload.standalone_ports_supported)"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    @mock.patch(\u0027ironic.objects.node.NodeMaintenanceNotification\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"ba2be162_43174e51","line":174,"in_reply_to":"fa31d9ce_5fe681e8","updated":"2017-02-28 20:50:42.000000000","message":"yeah, guess i don\u0027t care that much about it...","commit_id":"f9d9b334dab309156eed75ce93693152018746bd"}],"ironic/tests/unit/api/v1/test_ports.py":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a8c8c21615a88c0e31258025a6a08b6314435779","unresolved":false,"context_lines":[{"line_number":490,"context_line":"                                      obj_fields.NotificationLevel.INFO,"},{"line_number":491,"context_line":"                                      obj_fields.NotificationStatus.START,"},{"line_number":492,"context_line":"                                      node_uuid\u003dself.node.uuid,"},{"line_number":493,"context_line":"                                      portgroup_uuid\u003dwtypes.Unset),"},{"line_number":494,"context_line":"                                      mock.call(mock.ANY, mock.ANY, \u0027update\u0027,"},{"line_number":495,"context_line":"                                      obj_fields.NotificationLevel.INFO,"},{"line_number":496,"context_line":"                                      obj_fields.NotificationStatus.END,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a430d35_6d45c36e","line":493,"updated":"2017-02-06 21:21:35.000000000","message":"Ah, looks like it will default correctly. Thanks.","commit_id":"1527d0f9266808d2b12b43f8979a1acfa4599efd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"23f8e54487f432842cfa614926fc491ddbcb9e88","unresolved":false,"context_lines":[{"line_number":490,"context_line":"                                      obj_fields.NotificationLevel.INFO,"},{"line_number":491,"context_line":"                                      obj_fields.NotificationStatus.START,"},{"line_number":492,"context_line":"                                      node_uuid\u003dself.node.uuid,"},{"line_number":493,"context_line":"                                      portgroup_uuid\u003dwtypes.Unset),"},{"line_number":494,"context_line":"                                      mock.call(mock.ANY, mock.ANY, \u0027update\u0027,"},{"line_number":495,"context_line":"                                      obj_fields.NotificationLevel.INFO,"},{"line_number":496,"context_line":"                                      obj_fields.NotificationStatus.END,"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa31d9ce_e4d18158","line":493,"updated":"2017-02-14 22:18:38.000000000","message":"what does that look like in the notification payload?","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"480cd9d086ee54ee82e4c2b241663585c0927b6a","unresolved":false,"context_lines":[{"line_number":490,"context_line":"                                      obj_fields.NotificationLevel.INFO,"},{"line_number":491,"context_line":"                                      obj_fields.NotificationStatus.START,"},{"line_number":492,"context_line":"                                      node_uuid\u003dself.node.uuid,"},{"line_number":493,"context_line":"                                      portgroup_uuid\u003dwtypes.Unset),"},{"line_number":494,"context_line":"                                      mock.call(mock.ANY, mock.ANY, \u0027update\u0027,"},{"line_number":495,"context_line":"                                      obj_fields.NotificationLevel.INFO,"},{"line_number":496,"context_line":"                                      obj_fields.NotificationStatus.END,"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa31d9ce_93ec7b2b","line":493,"in_reply_to":"fa31d9ce_e4d18158","updated":"2017-02-15 09:52:45.000000000","message":"There is already code for change to None: https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/notification_utils.py#L58","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"}],"ironic/tests/unit/objects/utils.py":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a8c8c21615a88c0e31258025a6a08b6314435779","unresolved":false,"context_lines":[{"line_number":247,"context_line":"    return payloads"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"class SchemasTestMixIn(object):"},{"line_number":251,"context_line":"    def _check_payload_schemas(self, from_module, fields):"},{"line_number":252,"context_line":"        \"\"\"Assert that the Payload SCHEMAs have the expected properties."},{"line_number":253,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a430d35_c80f852c","line":250,"updated":"2017-02-06 21:21:35.000000000","message":"Fancy, I like it.","commit_id":"1527d0f9266808d2b12b43f8979a1acfa4599efd"}],"releasenotes/notes/portgroup-crud-notifications-91204635528972b2.yaml":[{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"c10ad45eb8f3c55480b3dcc7d6893bf9688919e3","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Adds notifications for creation, updates, or deletions of portgroups."},{"line_number":4,"context_line":"    Event types are formatted as follows"},{"line_number":5,"context_line":"    \"baremetal.portgroup.{create,update,delete}.{start,end,error}\"."},{"line_number":6,"context_line":"    \"portgroup_uuid\" field added to port CRUD notifications."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"1a430d35_73368253","line":4,"range":{"start_line":4,"start_character":33,"end_line":4,"end_character":40},"updated":"2017-02-06 22:19:41.000000000","message":"Formatting can be improved by adding : and bullet points for the fields.","commit_id":"1527d0f9266808d2b12b43f8979a1acfa4599efd"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ae4c6ceda8866eafb5725e22c0f15625cf362d93","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Adds notifications for creation, updates, or deletions of portgroups."},{"line_number":4,"context_line":"    Event types are formatted as follows"},{"line_number":5,"context_line":"    \"baremetal.portgroup.{create,update,delete}.{start,end,error}\"."},{"line_number":6,"context_line":"    \"portgroup_uuid\" field added to port CRUD notifications."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"1a430d35_135447c8","line":4,"range":{"start_line":4,"start_character":33,"end_line":4,"end_character":40},"in_reply_to":"1a430d35_73368253","updated":"2017-02-07 11:36:55.000000000","message":"Done, but there is one point after change.","commit_id":"1527d0f9266808d2b12b43f8979a1acfa4599efd"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a8c8c21615a88c0e31258025a6a08b6314435779","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - Adds notifications for creation, updates, or deletions of portgroups."},{"line_number":4,"context_line":"    Event types are formatted as follows"},{"line_number":5,"context_line":"    \"baremetal.portgroup.{create,update,delete}.{start,end,error}\"."},{"line_number":6,"context_line":"    \"portgroup_uuid\" field added to port CRUD notifications."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"1a430d35_88249daf","line":6,"updated":"2017-02-06 21:21:35.000000000","message":"Also adds portgroup_uuid field to port notifications.","commit_id":"1527d0f9266808d2b12b43f8979a1acfa4599efd"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ae4c6ceda8866eafb5725e22c0f15625cf362d93","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - Adds notifications for creation, updates, or deletions of portgroups."},{"line_number":4,"context_line":"    Event types are formatted as follows"},{"line_number":5,"context_line":"    \"baremetal.portgroup.{create,update,delete}.{start,end,error}\"."},{"line_number":6,"context_line":"    \"portgroup_uuid\" field added to port CRUD notifications."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"1a430d35_335143d9","line":6,"in_reply_to":"1a430d35_88249daf","updated":"2017-02-07 11:36:55.000000000","message":"Done","commit_id":"1527d0f9266808d2b12b43f8979a1acfa4599efd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"23f8e54487f432842cfa614926fc491ddbcb9e88","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Adds notifications for creation, updates, or deletions of portgroups."},{"line_number":5,"context_line":"    Event types are formatted as follows:"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    * baremetal.node.provision_set.{start, end, success, error}"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"fa31d9ce_e127b3b3","line":4,"updated":"2017-02-14 22:18:38.000000000","message":"nit s/portgroups/port groups/","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"480cd9d086ee54ee82e4c2b241663585c0927b6a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Adds notifications for creation, updates, or deletions of portgroups."},{"line_number":5,"context_line":"    Event types are formatted as follows:"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    * baremetal.node.provision_set.{start, end, success, error}"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"fa31d9ce_13c88ba5","line":4,"in_reply_to":"fa31d9ce_e127b3b3","updated":"2017-02-15 09:52:45.000000000","message":"Done","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"23f8e54487f432842cfa614926fc491ddbcb9e88","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    Adds notifications for creation, updates, or deletions of portgroups."},{"line_number":5,"context_line":"    Event types are formatted as follows:"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    * baremetal.node.provision_set.{start, end, success, error}"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"    Also adds portgroup_uuid field to port notifications."}],"source_content_type":"text/x-yaml","patch_set":5,"id":"fa31d9ce_41231fa7","line":7,"updated":"2017-02-14 22:18:38.000000000","message":"? Is this a copy/paste error? I thought this was for port groups.","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"480cd9d086ee54ee82e4c2b241663585c0927b6a","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    Adds notifications for creation, updates, or deletions of portgroups."},{"line_number":5,"context_line":"    Event types are formatted as follows:"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    * baremetal.node.provision_set.{start, end, success, error}"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"    Also adds portgroup_uuid field to port notifications."}],"source_content_type":"text/x-yaml","patch_set":5,"id":"fa31d9ce_53be83ff","line":7,"in_reply_to":"fa31d9ce_41231fa7","updated":"2017-02-15 09:52:45.000000000","message":"Done","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"23f8e54487f432842cfa614926fc491ddbcb9e88","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    * baremetal.node.provision_set.{start, end, success, error}"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"    Also adds portgroup_uuid field to port notifications."}],"source_content_type":"text/x-yaml","patch_set":5,"id":"fa31d9ce_240d59e8","line":9,"updated":"2017-02-14 22:18:38.000000000","message":"we should mention the new payload version is 1.1.\n\nDid we ever discuss whether we should mention in the upgrade section, when the notification payload version is changed?","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"480cd9d086ee54ee82e4c2b241663585c0927b6a","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    * baremetal.node.provision_set.{start, end, success, error}"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"    Also adds portgroup_uuid field to port notifications."}],"source_content_type":"text/x-yaml","patch_set":5,"id":"fa31d9ce_932f1b3e","line":9,"in_reply_to":"fa31d9ce_240d59e8","updated":"2017-02-15 09:52:45.000000000","message":"Done. Only minor version changed, I think no upgrade section is needed.","commit_id":"9ec13f7ebeb4036598241dc37d8b7ae9ed0026c0"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"23b2fd3c5541f9c1c9d9c8290137b3914261b0d9","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Adds notifications for creation, updates, or deletions of port groups."},{"line_number":5,"context_line":"    Event types are formatted as follows:"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    * baremetal.portgroup.{create, update, delete}.{start,end,error}"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"fa31d9ce_e55402cb","line":4,"range":{"start_line":4,"start_character":44,"end_line":4,"end_character":45},"updated":"2017-02-15 12:54:50.000000000","message":"comma seems not needed.","commit_id":"f9d9b334dab309156eed75ce93693152018746bd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c905c714c258d1deda15b35b4686d588769e6d2c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Adds notifications for creation, updates, or deletions of port groups."},{"line_number":5,"context_line":"    Event types are formatted as follows:"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    * baremetal.portgroup.{create, update, delete}.{start,end,error}"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"ba2be162_2e0ec134","line":4,"range":{"start_line":4,"start_character":44,"end_line":4,"end_character":45},"in_reply_to":"fa31d9ce_e55402cb","updated":"2017-02-28 20:50:42.000000000","message":"@Vasyl. That comma is optional in English.","commit_id":"f9d9b334dab309156eed75ce93693152018746bd"}]}
