)]}'
{"ironic/api/controllers/v1/port.py":[{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"acb8e35a80c10d3f7af67de58d72c7b95ac9855b","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    extra \u003d {wtypes.text: types.jsontype}"},{"line_number":66,"context_line":"    \"\"\"This port\u0027s meta data\"\"\""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    node_uuid \u003d wsme.wsattr(types.uuid, mandatory\u003dTrue)"},{"line_number":69,"context_line":"    \"\"\"The UUID of the node this port belongs to\"\"\""},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    links \u003d wsme.wsattr([link.Link], readonly\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa69d971_89a6f9bf","line":68,"updated":"2015-12-30 16:03:12.000000000","message":"nit:BTW, it has to be uuid? should we support create a port with node_name as well? This looks like a chance to support it because you change the way to manipulate the attribute a lot.","commit_id":"93a609251670e336e2ac5892e0de75f320a25d28"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"391d92c7735f481a7e41570e3a95d45cadab9311","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    extra \u003d {wtypes.text: types.jsontype}"},{"line_number":66,"context_line":"    \"\"\"This port\u0027s meta data\"\"\""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    node_uuid \u003d wsme.wsattr(types.uuid, mandatory\u003dTrue)"},{"line_number":69,"context_line":"    \"\"\"The UUID of the node this port belongs to\"\"\""},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    links \u003d wsme.wsattr([link.Link], readonly\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa69d971_20f7dad4","line":68,"in_reply_to":"fa69d971_89a6f9bf","updated":"2015-12-30 17:55:48.000000000","message":"We probably should, but that\u0027s a larger API change that I don\u0027t really want to get into in this patch. Trying to keep behavior the same and just refactor the code.","commit_id":"93a609251670e336e2ac5892e0de75f320a25d28"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"2babf74fce2db19dc36c7b2fe639ab5ae410acf0","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        # response for a POST request to create a Port"},{"line_number":45,"context_line":"        e.code \u003d http_client.BAD_REQUEST  # BadRequest"},{"line_number":46,"context_line":"        raise e"},{"line_number":47,"context_line":"    port.node \u003d node"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"class Port(base.APIBase):"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa69d971_e26011a7","line":47,"updated":"2016-01-07 09:24:41.000000000","message":"wonder why don\u0027t you set port.node_id\u003dnode.id here but do it in port object multiple times.","commit_id":"fe34a03414938a9086df75c553767642c124176a"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"2babf74fce2db19dc36c7b2fe639ab5ae410acf0","unresolved":false,"context_lines":[{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        # node_uuid isn\u0027t a field on port object, check if it changed here"},{"line_number":376,"context_line":"        if port.node_uuid !\u003d rpc_port.node.uuid:"},{"line_number":377,"context_line":"            _set_node_if_exists(rpc_port, port.node_uuid)"},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"        # Update only the fields that have changed"},{"line_number":380,"context_line":"        for field in objects.Port.fields:"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa69d971_e262513d","line":377,"updated":"2016-01-07 09:24:41.000000000","message":"is it necessary here to set node here?because you only update node_id indeed, you can check if node exists and only change node_id","commit_id":"fe34a03414938a9086df75c553767642c124176a"}]}
