)]}'
{"ironic/objects/base.py":[{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"6acf02c50eaaf275b1d6203eb602e19f9958e360","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        _convert_to_version() does the actual work."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        :param target_version: the desired version of the object"},{"line_number":107,"context_line":"        :param change_fields: True to change the values of any object fields"},{"line_number":108,"context_line":"            when converting (default). False to remove fields that are"},{"line_number":109,"context_line":"            unavailable in the target version (and change values of any"},{"line_number":110,"context_line":"            existing object fields in the target version as appropriate)."}],"source_content_type":"text/x-python","patch_set":4,"id":"5f201791_3e011fb0","line":107,"updated":"2017-06-27 18:40:22.000000000","message":"Confusing name to me: change_fields","commit_id":"18efb04d93c1d95169a87baf7acbd3373dfcd034"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"bbc4fcf924331b84ef8610857e5ec75d48b1dd5e","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        _convert_to_version() does the actual work."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        :param target_version: the desired version of the object"},{"line_number":107,"context_line":"        :param change_fields: True to change the values of any object fields"},{"line_number":108,"context_line":"            when converting (default). False to remove fields that are"},{"line_number":109,"context_line":"            unavailable in the target version (and change values of any"},{"line_number":110,"context_line":"            existing object fields in the target version as appropriate)."}],"source_content_type":"text/x-python","patch_set":4,"id":"5f201791_5e74dbce","line":107,"in_reply_to":"5f201791_3e011fb0","updated":"2017-06-27 19:00:50.000000000","message":"Discussed with John, he thinks \u0027remove_unavail_fields\u0027 is better.","commit_id":"18efb04d93c1d95169a87baf7acbd3373dfcd034"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"75c97e9058e01e14bad22d5017fa77b8192049f1","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        _convert_to_version() does the actual work."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        :param target_version: the desired version of the object"},{"line_number":107,"context_line":"        :param change_fields: True to change the values of any object fields"},{"line_number":108,"context_line":"            when converting (default). False to remove fields that are"},{"line_number":109,"context_line":"            unavailable in the target version (and change values of any"},{"line_number":110,"context_line":"            existing object fields in the target version as appropriate)."}],"source_content_type":"text/x-python","patch_set":4,"id":"5f201791_be48665b","line":107,"in_reply_to":"5f201791_5e74dbce","updated":"2017-06-28 17:53:28.000000000","message":"done","commit_id":"18efb04d93c1d95169a87baf7acbd3373dfcd034"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"e647d274703898261bb1da33f0ee6c6844efd695","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        :param target_version: the desired version of the object"},{"line_number":105,"context_line":"        :param remove_unavail_fields: True to remove fields that are"},{"line_number":106,"context_line":"            unavailable in the target version; False to set the unavailable"},{"line_number":107,"context_line":"            fields to appropriate values."},{"line_number":108,"context_line":"        \"\"\""},{"line_number":109,"context_line":"        if self.VERSION !\u003d target_version:"},{"line_number":110,"context_line":"            self._convert_to_version("}],"source_content_type":"text/x-python","patch_set":6,"id":"1f1a1f67_6619e577","line":107,"updated":"2017-07-13 15:02:53.000000000","message":"Would be good also to mention for clarity that we remove the unavail fields only for serialization/deserialization, for db interactions we keep all the changes tracked.","commit_id":"2243b8a8783c7e0b9730cc0b9951fef61c2840cd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"51dc0852739e44c8f883385a267c73943b2956fc","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        :param target_version: the desired version of the object"},{"line_number":105,"context_line":"        :param remove_unavail_fields: True to remove fields that are"},{"line_number":106,"context_line":"            unavailable in the target version; False to set the unavailable"},{"line_number":107,"context_line":"            fields to appropriate values."},{"line_number":108,"context_line":"        \"\"\""},{"line_number":109,"context_line":"        if self.VERSION !\u003d target_version:"},{"line_number":110,"context_line":"            self._convert_to_version("}],"source_content_type":"text/x-python","patch_set":6,"id":"1f1a1f67_c1f8a3c5","line":107,"in_reply_to":"1f1a1f67_6619e577","updated":"2017-07-13 16:09:22.000000000","message":"yes.","commit_id":"2243b8a8783c7e0b9730cc0b9951fef61c2840cd"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"8f11b042c8a75f56fbdd5cd25359c401d8b49bca","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        1) For DB interactions, we need to set the unavailable fields to their"},{"line_number":96,"context_line":"           appropriate values so that these fields are saved in the DB. (If"},{"line_number":97,"context_line":"           they are not set, the VersionedObject magic will not know to"},{"line_number":98,"context_line":"           save/update them to the DB.) remove_unavail_fields is set to True"},{"line_number":99,"context_line":"           in this case."},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        2) For serialization/deserialization, we need to remove the unavailable"}],"source_content_type":"text/x-python","patch_set":7,"id":"1f1a1f67_d7a981df","line":98,"range":{"start_line":98,"start_character":72,"end_line":98,"end_character":76},"updated":"2017-07-13 16:11:03.000000000","message":"the other way around :)","commit_id":"fd33099b0f3d4b633047174b385d3e701f21c8c2"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"54ab6b071acdb42b7def433a29ec8373f7ccb215","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        1) For DB interactions, we need to set the unavailable fields to their"},{"line_number":96,"context_line":"           appropriate values so that these fields are saved in the DB. (If"},{"line_number":97,"context_line":"           they are not set, the VersionedObject magic will not know to"},{"line_number":98,"context_line":"           save/update them to the DB.) remove_unavail_fields is set to True"},{"line_number":99,"context_line":"           in this case."},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        2) For serialization/deserialization, we need to remove the unavailable"}],"source_content_type":"text/x-python","patch_set":7,"id":"1f1a1f67_b7e60516","line":98,"range":{"start_line":98,"start_character":72,"end_line":98,"end_character":76},"in_reply_to":"1f1a1f67_d7a981df","updated":"2017-07-13 16:17:06.000000000","message":"whoops!","commit_id":"fd33099b0f3d4b633047174b385d3e701f21c8c2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"1df320a52e884d93fbd72dbdd7f2d0e2299b6be1","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                    self[field] !\u003d loaded_object[field]):"},{"line_number":81,"context_line":"                self[field] \u003d loaded_object[field]"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def _convert_to_version(self, target_version, remove_unavail_fields\u003dTrue):"},{"line_number":84,"context_line":"        \"\"\"Convert to the target version."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        Subclasses should redefine this method, to do the conversion of the"}],"source_content_type":"text/x-python","patch_set":8,"id":"1f1a1f67_df8b651c","line":83,"updated":"2017-07-18 08:12:48.000000000","message":"I\u0027d prefer not to use shortenings","commit_id":"8e7d795db5e614de6a3d8dd19ff26f869c8e9f9a"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"a73e220a66b114a60b6bf790d0b040b3c0c15db1","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                    self[field] !\u003d loaded_object[field]):"},{"line_number":81,"context_line":"                self[field] \u003d loaded_object[field]"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def _convert_to_version(self, target_version, remove_unavail_fields\u003dTrue):"},{"line_number":84,"context_line":"        \"\"\"Convert to the target version."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        Subclasses should redefine this method, to do the conversion of the"}],"source_content_type":"text/x-python","patch_set":8,"id":"1f1a1f67_d170f10a","line":83,"in_reply_to":"1f1a1f67_df8b651c","updated":"2017-07-18 13:49:07.000000000","message":"sure, follow-up patch is https://review.openstack.org/484800","commit_id":"8e7d795db5e614de6a3d8dd19ff26f869c8e9f9a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"1df320a52e884d93fbd72dbdd7f2d0e2299b6be1","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        \"\"\""},{"line_number":111,"context_line":"        pass"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"    def convert_to_version(self, target_version, remove_unavail_fields\u003dTrue):"},{"line_number":114,"context_line":"        \"\"\"Convert this object to the target version."},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        Convert the object to the target version. The target version may be"}],"source_content_type":"text/x-python","patch_set":8,"id":"1f1a1f67_bf90a94b","line":113,"updated":"2017-07-18 08:12:48.000000000","message":"ditto","commit_id":"8e7d795db5e614de6a3d8dd19ff26f869c8e9f9a"}]}
