)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"75dd4a0f778c1c55b9540f6dae75105b63f0eb57","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add dynamic interfaces fields to nodes API"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This adds version 1.31 of the REST API, which adds dynamic interface"},{"line_number":10,"context_line":"fields to the node object."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Ic8398a6093189a65a7c1ab5cf7e682577dde3257"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3a461143_b874a7fd","line":9,"updated":"2017-01-25 20:17:20.000000000","message":"would be good to specify what exactly fields were added","commit_id":"69e4ae9411b537219fe050a0369ed64ce012ca6b"}],"ironic/api/controllers/v1/node.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"968ca0afdb43798dbef6350b3e0458d28a968aa0","unresolved":false,"context_lines":[{"line_number":1579,"context_line":"                n_interface is not wtypes.Unset):"},{"line_number":1580,"context_line":"            raise exception.NotAcceptable()"},{"line_number":1581,"context_line":""},{"line_number":1582,"context_line":"        if not api_utils.allow_dynamic_interfaces():"},{"line_number":1583,"context_line":"            for field in api_utils.V31_FIELDS:"},{"line_number":1584,"context_line":"                if getattr(node, field) is not wsme.Unset:"},{"line_number":1585,"context_line":"                    raise exception.NotAcceptable()"},{"line_number":1586,"context_line":""},{"line_number":1587,"context_line":"        # NOTE(deva): get_topic_for checks if node.driver is in the hash ring"},{"line_number":1588,"context_line":"        #             and raises NoValidHost if it is not."}],"source_content_type":"text/x-python","patch_set":2,"id":"5a3905b3_402adce8","line":1585,"range":{"start_line":1582,"start_character":8,"end_line":1585,"end_character":51},"updated":"2017-01-25 10:10:16.000000000","message":"missing unittest for this bit","commit_id":"306755a479cd1f7ca563cd93cf36b707c86107dc"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"8bc64c7bce5b64566348b42307ee8cc3db4e3b49","unresolved":false,"context_lines":[{"line_number":1579,"context_line":"                n_interface is not wtypes.Unset):"},{"line_number":1580,"context_line":"            raise exception.NotAcceptable()"},{"line_number":1581,"context_line":""},{"line_number":1582,"context_line":"        if not api_utils.allow_dynamic_interfaces():"},{"line_number":1583,"context_line":"            for field in api_utils.V31_FIELDS:"},{"line_number":1584,"context_line":"                if getattr(node, field) is not wsme.Unset:"},{"line_number":1585,"context_line":"                    raise exception.NotAcceptable()"},{"line_number":1586,"context_line":""},{"line_number":1587,"context_line":"        # NOTE(deva): get_topic_for checks if node.driver is in the hash ring"},{"line_number":1588,"context_line":"        #             and raises NoValidHost if it is not."}],"source_content_type":"text/x-python","patch_set":2,"id":"3a461143_5b902f96","line":1585,"range":{"start_line":1582,"start_character":8,"end_line":1585,"end_character":51},"in_reply_to":"5a3905b3_402adce8","updated":"2017-01-25 14:36:32.000000000","message":"Done","commit_id":"306755a479cd1f7ca563cd93cf36b707c86107dc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"de07b35494cfce471da09c2ef93e30f391568dd7","unresolved":false,"context_lines":[{"line_number":977,"context_line":"                     inspection_finished_at\u003dNone, inspection_started_at\u003dtime,"},{"line_number":978,"context_line":"                     console_enabled\u003dFalse, clean_step\u003d{},"},{"line_number":979,"context_line":"                     raid_config\u003dNone, target_raid_config\u003dNone,"},{"line_number":980,"context_line":"                     network_interface\u003d\u0027flat\u0027, resource_class\u003d\u0027baremetal-gold\u0027)"},{"line_number":981,"context_line":"        # NOTE(matty_dubs): The chassis_uuid getter() is based on the"},{"line_number":982,"context_line":"        # _chassis_uuid variable:"},{"line_number":983,"context_line":"        sample._chassis_uuid \u003d \u0027edcad704-b2da-41d5-96d9-afd580ecfa12\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_4844d273","line":980,"updated":"2017-01-25 22:00:27.000000000","message":"guess we should update this to include the new fields","commit_id":"69e4ae9411b537219fe050a0369ed64ce012ca6b"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"776c0c1958310fc83a3ec7ace2cc37df9989517d","unresolved":false,"context_lines":[{"line_number":977,"context_line":"                     inspection_finished_at\u003dNone, inspection_started_at\u003dtime,"},{"line_number":978,"context_line":"                     console_enabled\u003dFalse, clean_step\u003d{},"},{"line_number":979,"context_line":"                     raid_config\u003dNone, target_raid_config\u003dNone,"},{"line_number":980,"context_line":"                     network_interface\u003d\u0027flat\u0027, resource_class\u003d\u0027baremetal-gold\u0027)"},{"line_number":981,"context_line":"        # NOTE(matty_dubs): The chassis_uuid getter() is based on the"},{"line_number":982,"context_line":"        # _chassis_uuid variable:"},{"line_number":983,"context_line":"        sample._chassis_uuid \u003d \u0027edcad704-b2da-41d5-96d9-afd580ecfa12\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_31dc3412","line":980,"in_reply_to":"3a461143_4844d273","updated":"2017-01-26 12:23:53.000000000","message":"Done","commit_id":"69e4ae9411b537219fe050a0369ed64ce012ca6b"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"de07b35494cfce471da09c2ef93e30f391568dd7","unresolved":false,"context_lines":[{"line_number":1440,"context_line":"        policy.authorize(\u0027baremetal:node:get\u0027, cdict, cdict)"},{"line_number":1441,"context_line":""},{"line_number":1442,"context_line":"        api_utils.check_allow_specify_fields(fields)"},{"line_number":1443,"context_line":"        api_utils.check_allowed_fields(fields)"},{"line_number":1444,"context_line":"        api_utils.check_for_invalid_state_and_allow_filter(provision_state)"},{"line_number":1445,"context_line":"        api_utils.check_allow_specify_driver(driver)"},{"line_number":1446,"context_line":"        api_utils.check_allow_specify_resource_class(resource_class)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_fe9a94c4","line":1443,"updated":"2017-01-25 22:00:27.000000000","message":"i just realized. we don\u0027t check if the sort_key is a field that is allowed. (Outside the scope of this patch.) I opened a bug: https://bugs.launchpad.net/ironic/+bug/1659419","commit_id":"69e4ae9411b537219fe050a0369ed64ce012ca6b"}],"ironic/api/controllers/v1/utils.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"de07b35494cfce471da09c2ef93e30f391568dd7","unresolved":false,"context_lines":[{"line_number":299,"context_line":"        raise exception.NotAcceptable()"},{"line_number":300,"context_line":"    for field in V31_FIELDS:"},{"line_number":301,"context_line":"        if field in fields and not allow_dynamic_interfaces():"},{"line_number":302,"context_line":"            raise exception.NotAcceptable()"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":""},{"line_number":305,"context_line":"def check_allowed_portgroup_fields(fields):"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_68034e74","line":302,"updated":"2017-01-25 22:00:27.000000000","message":"wondering.\n\n1. if taking the intersection of fields and V31_FIELDS would be faster\n2. check allow_dynamic_interfaces first; if it is allowed, there is no need to check the fields.","commit_id":"69e4ae9411b537219fe050a0369ed64ce012ca6b"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"776c0c1958310fc83a3ec7ace2cc37df9989517d","unresolved":false,"context_lines":[{"line_number":299,"context_line":"        raise exception.NotAcceptable()"},{"line_number":300,"context_line":"    for field in V31_FIELDS:"},{"line_number":301,"context_line":"        if field in fields and not allow_dynamic_interfaces():"},{"line_number":302,"context_line":"            raise exception.NotAcceptable()"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":""},{"line_number":305,"context_line":"def check_allowed_portgroup_fields(fields):"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_51d9c020","line":302,"in_reply_to":"3a461143_68034e74","updated":"2017-01-26 12:23:53.000000000","message":"Done","commit_id":"69e4ae9411b537219fe050a0369ed64ce012ca6b"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"de07b35494cfce471da09c2ef93e30f391568dd7","unresolved":false,"context_lines":[{"line_number":542,"context_line":"def allow_dynamic_interfaces():"},{"line_number":543,"context_line":"    \"\"\"Check if dynamic interface fields are allowed."},{"line_number":544,"context_line":""},{"line_number":545,"context_line":"    Version 1.31 of the API added support viewing and setting the interface"},{"line_number":546,"context_line":"    fields for a node."},{"line_number":547,"context_line":"    \"\"\""},{"line_number":548,"context_line":"    return (pecan.request.version.minor \u003e\u003d"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_a83c5630","line":545,"updated":"2017-01-25 22:00:27.000000000","message":"except for network interface... maybe mention the V31_FIELDS...","commit_id":"69e4ae9411b537219fe050a0369ed64ce012ca6b"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"776c0c1958310fc83a3ec7ace2cc37df9989517d","unresolved":false,"context_lines":[{"line_number":542,"context_line":"def allow_dynamic_interfaces():"},{"line_number":543,"context_line":"    \"\"\"Check if dynamic interface fields are allowed."},{"line_number":544,"context_line":""},{"line_number":545,"context_line":"    Version 1.31 of the API added support viewing and setting the interface"},{"line_number":546,"context_line":"    fields for a node."},{"line_number":547,"context_line":"    \"\"\""},{"line_number":548,"context_line":"    return (pecan.request.version.minor \u003e\u003d"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_b183c4cb","line":545,"in_reply_to":"3a461143_a83c5630","updated":"2017-01-26 12:23:53.000000000","message":"Done","commit_id":"69e4ae9411b537219fe050a0369ed64ce012ca6b"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f4a0c18601bf41df7273283b06eea36530fb75e6","unresolved":false,"context_lines":[{"line_number":542,"context_line":"def allow_dynamic_interfaces():"},{"line_number":543,"context_line":"    \"\"\"Check if dynamic interface fields are allowed."},{"line_number":544,"context_line":""},{"line_number":545,"context_line":"    Version 1.31 of the API added support viewing and setting the fields"},{"line_number":546,"context_line":"    in ``V31_FIELDS`` on the node object."},{"line_number":547,"context_line":"    \"\"\""},{"line_number":548,"context_line":"    return (pecan.request.version.minor \u003e\u003d"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a461143_ceba5c0a","line":545,"range":{"start_line":545,"start_character":34,"end_line":545,"end_character":49},"updated":"2017-01-26 18:38:22.000000000","message":"support for viewing","commit_id":"e9c674af2fbde1f25dff4503d146d5d3c680517c"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"5dd80ccaef1d9743e2c829360c560108e72ca6f5","unresolved":false,"context_lines":[{"line_number":542,"context_line":"def allow_dynamic_interfaces():"},{"line_number":543,"context_line":"    \"\"\"Check if dynamic interface fields are allowed."},{"line_number":544,"context_line":""},{"line_number":545,"context_line":"    Version 1.31 of the API added support viewing and setting the fields"},{"line_number":546,"context_line":"    in ``V31_FIELDS`` on the node object."},{"line_number":547,"context_line":"    \"\"\""},{"line_number":548,"context_line":"    return (pecan.request.version.minor \u003e\u003d"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a461143_dcb9c416","line":545,"range":{"start_line":545,"start_character":34,"end_line":545,"end_character":49},"in_reply_to":"3a461143_ceba5c0a","updated":"2017-01-30 21:55:10.000000000","message":"Done","commit_id":"e9c674af2fbde1f25dff4503d146d5d3c680517c"}],"ironic/tests/unit/api/v1/test_nodes.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"de07b35494cfce471da09c2ef93e30f391568dd7","unresolved":false,"context_lines":[{"line_number":401,"context_line":"        new_data \u003d self.get_json("},{"line_number":402,"context_line":"            \u0027/nodes/detail\u0027, headers\u003d{api_base.Version.string: \u00271.31\u0027})"},{"line_number":403,"context_line":"        for field in api_utils.V31_FIELDS:"},{"line_number":404,"context_line":"            self.assertEqual(getattr(node, field, None),"},{"line_number":405,"context_line":"                             new_data[\u0027nodes\u0027][0][field])"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"    def test_many(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_9b6a8219","line":404,"updated":"2017-01-25 22:00:27.000000000","message":"doesn\u0027t the node have all the interface fields? I don\u0027t think we need to default to None if the field doesn\u0027t exist.","commit_id":"69e4ae9411b537219fe050a0369ed64ce012ca6b"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"776c0c1958310fc83a3ec7ace2cc37df9989517d","unresolved":false,"context_lines":[{"line_number":401,"context_line":"        new_data \u003d self.get_json("},{"line_number":402,"context_line":"            \u0027/nodes/detail\u0027, headers\u003d{api_base.Version.string: \u00271.31\u0027})"},{"line_number":403,"context_line":"        for field in api_utils.V31_FIELDS:"},{"line_number":404,"context_line":"            self.assertEqual(getattr(node, field, None),"},{"line_number":405,"context_line":"                             new_data[\u0027nodes\u0027][0][field])"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"    def test_many(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a461143_f1254cc2","line":404,"in_reply_to":"3a461143_9b6a8219","updated":"2017-01-26 12:23:53.000000000","message":"Done","commit_id":"69e4ae9411b537219fe050a0369ed64ce012ca6b"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f4a0c18601bf41df7273283b06eea36530fb75e6","unresolved":false,"context_lines":[{"line_number":293,"context_line":"        self.assertIn(\u0027raid_config\u0027, data[\u0027nodes\u0027][0])"},{"line_number":294,"context_line":"        self.assertIn(\u0027target_raid_config\u0027, data[\u0027nodes\u0027][0])"},{"line_number":295,"context_line":"        self.assertIn(\u0027network_interface\u0027, data[\u0027nodes\u0027][0])"},{"line_number":296,"context_line":"        self.assertIn(\u0027resource_class\u0027, data[\u0027nodes\u0027][0])"},{"line_number":297,"context_line":"        for field in api_utils.V31_FIELDS:"},{"line_number":298,"context_line":"            self.assertIn(field, data[\u0027nodes\u0027][0])"},{"line_number":299,"context_line":"        # never expose the chassis_id"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a461143_c1e30d32","line":296,"updated":"2017-01-26 18:38:22.000000000","message":"I\u0027m assuming this is unrelated to this patch, but just adding a test while here.","commit_id":"e9c674af2fbde1f25dff4503d146d5d3c680517c"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"213fceed7f9036856da6c4fadcae64f8c0923132","unresolved":false,"context_lines":[{"line_number":293,"context_line":"        self.assertIn(\u0027raid_config\u0027, data[\u0027nodes\u0027][0])"},{"line_number":294,"context_line":"        self.assertIn(\u0027target_raid_config\u0027, data[\u0027nodes\u0027][0])"},{"line_number":295,"context_line":"        self.assertIn(\u0027network_interface\u0027, data[\u0027nodes\u0027][0])"},{"line_number":296,"context_line":"        self.assertIn(\u0027resource_class\u0027, data[\u0027nodes\u0027][0])"},{"line_number":297,"context_line":"        for field in api_utils.V31_FIELDS:"},{"line_number":298,"context_line":"            self.assertIn(field, data[\u0027nodes\u0027][0])"},{"line_number":299,"context_line":"        # never expose the chassis_id"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a461143_5daa8371","line":296,"in_reply_to":"3a461143_c1e30d32","updated":"2017-01-27 11:04:18.000000000","message":"Yep","commit_id":"e9c674af2fbde1f25dff4503d146d5d3c680517c"}]}
