)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"74cd793f4927cc843bd8962b2a85d6d12826d688","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add dbapi and objects functions to get a node by associated MAC addresses"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Will be required for a new lookup endpoint."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ia5549fb16cd363f3492b9ca0400177c92a1aea19"},{"line_number":12,"context_line":"Partial-Bug: #1570841"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3aaa91ec_77bd62d7","line":9,"updated":"2016-06-24 15:28:27.000000000","message":"Nit: it\u0027s ok to mention that it\u0027s part of the new lookup endpoint work, but in the commit message we should also explain what this patch is doing e.g, adding a new filter to the dbapi, a new method to the node rpc object etc...","commit_id":"34fc5a476d2749d0de7deddf0c2aa539ec670d21"}],"ironic/db/api.py":[{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"e21efc29ec99aa7fabaae2d5701397231ed0783d","unresolved":false,"context_lines":[{"line_number":609,"context_line":"    def get_node_by_port_addresses(self, addresses):"},{"line_number":610,"context_line":"        \"\"\"Find a node by any matching port address."},{"line_number":611,"context_line":""},{"line_number":612,"context_line":"        :param addresses: port addresses."},{"line_number":613,"context_line":"        :returns: Node object."},{"line_number":614,"context_line":"        :raises: NodeNotFound if none or several nodes are found."},{"line_number":615,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"3aaa91ec_ef9cf9c1","line":612,"updated":"2016-06-24 05:14:30.000000000","message":"it is a list of port addresses.","commit_id":"34fc5a476d2749d0de7deddf0c2aa539ec670d21"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"6d2cf29924ee14f3fa9cda8afc8ac4dd9588c4a0","unresolved":false,"context_lines":[{"line_number":609,"context_line":"    def get_node_by_port_addresses(self, addresses):"},{"line_number":610,"context_line":"        \"\"\"Find a node by any matching port address."},{"line_number":611,"context_line":""},{"line_number":612,"context_line":"        :param addresses: port addresses."},{"line_number":613,"context_line":"        :returns: Node object."},{"line_number":614,"context_line":"        :raises: NodeNotFound if none or several nodes are found."},{"line_number":615,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"3aaa91ec_4f337862","line":612,"in_reply_to":"3aaa91ec_ef9cf9c1","updated":"2016-06-24 13:29:11.000000000","message":"Will fix if I have to resubmit","commit_id":"34fc5a476d2749d0de7deddf0c2aa539ec670d21"}],"ironic/db/sqlalchemy/api.py":[{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"e21efc29ec99aa7fabaae2d5701397231ed0783d","unresolved":false,"context_lines":[{"line_number":844,"context_line":"        q \u003d model_query(models.NodeTag).filter_by(node_id\u003dnode_id, tag\u003dtag)"},{"line_number":845,"context_line":"        return model_query(q.exists()).scalar()"},{"line_number":846,"context_line":""},{"line_number":847,"context_line":"    def get_node_by_port_addresses(self, addresses):"},{"line_number":848,"context_line":"        q \u003d model_query(models.Node).distinct().join(models.Port)"},{"line_number":849,"context_line":"        q \u003d q.filter(models.Port.address.in_(addresses))"},{"line_number":850,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3aaa91ec_cfd65d4e","line":847,"updated":"2016-06-24 05:14:30.000000000","message":"Should we add docstring here?","commit_id":"34fc5a476d2749d0de7deddf0c2aa539ec670d21"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"6d2cf29924ee14f3fa9cda8afc8ac4dd9588c4a0","unresolved":false,"context_lines":[{"line_number":844,"context_line":"        q \u003d model_query(models.NodeTag).filter_by(node_id\u003dnode_id, tag\u003dtag)"},{"line_number":845,"context_line":"        return model_query(q.exists()).scalar()"},{"line_number":846,"context_line":""},{"line_number":847,"context_line":"    def get_node_by_port_addresses(self, addresses):"},{"line_number":848,"context_line":"        q \u003d model_query(models.Node).distinct().join(models.Port)"},{"line_number":849,"context_line":"        q \u003d q.filter(models.Port.address.in_(addresses))"},{"line_number":850,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3aaa91ec_6ff7548b","line":847,"in_reply_to":"3aaa91ec_cfd65d4e","updated":"2016-06-24 13:29:11.000000000","message":"No functions around have docstring, so dunno","commit_id":"34fc5a476d2749d0de7deddf0c2aa539ec670d21"}]}
