)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c6507b8c3ed62a7920b28bf712f2a72bfdcca6cd","unresolved":false,"context_lines":[{"line_number":13,"context_line":"change adds a possibility to select which fields to set as usual by"},{"line_number":14,"context_line":"passing them as fields argument to _from_db_object method. Other fields"},{"line_number":15,"context_line":"are loaded in the new _set_from_db_object method."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: Ib2ca1acc52b9ba05297976f2c7ad67a63e07dbde"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5f201791_8c75b2fc","line":16,"updated":"2017-06-27 15:29:38.000000000","message":"We could probably add Partial-Bug: #1526283","commit_id":"7960fdd2bc31ca9495a5098a72f9cae61f895640"}],"ironic/objects/base.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a23f2f7585a0754d998d44456943782b2d9da4f9","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        return self.__class__.VERSION"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def _set_from_db_object(self, db_object, fields\u003dNone):"},{"line_number":145,"context_line":"        \"\"\"Sets object fields."},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        :param db_object: A DB entity of the object"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f201791_eaff2b32","line":144,"updated":"2017-06-20 16:19:16.000000000","message":"ugh, i guess we also need context here in case children need to use it.","commit_id":"acb252e5cc3e46a61ec014b5f43cc815e7977c4d"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"5c8e1f6489ca303fd5ee8a21b84300dc220552fb","unresolved":false,"context_lines":[{"line_number":150,"context_line":"        :param db_object: A DB entity of the object"},{"line_number":151,"context_line":"        :param fields: list of fields to set on obj from values from db_object."},{"line_number":152,"context_line":"        \"\"\""},{"line_number":153,"context_line":"        fields \u003d fields or self.fields"},{"line_number":154,"context_line":"        for field in fields:"},{"line_number":155,"context_line":"            self[field] \u003d db_object[field]"},{"line_number":156,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5f201791_e412f161","line":153,"updated":"2017-06-27 23:17:55.000000000","message":"So does this mean I can\u0027t use:  fields \u003d []\n\nAnd would there be any value in being able to use: fields \u003d [] ?","commit_id":"7960fdd2bc31ca9495a5098a72f9cae61f895640"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"e29fabf84c30f70e3f3bad6402944b3d5e69412b","unresolved":false,"context_lines":[{"line_number":150,"context_line":"        :param db_object: A DB entity of the object"},{"line_number":151,"context_line":"        :param fields: list of fields to set on obj from values from db_object."},{"line_number":152,"context_line":"        \"\"\""},{"line_number":153,"context_line":"        fields \u003d fields or self.fields"},{"line_number":154,"context_line":"        for field in fields:"},{"line_number":155,"context_line":"            self[field] \u003d db_object[field]"},{"line_number":156,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5f201791_bdd2cccf","line":153,"in_reply_to":"5f201791_e412f161","updated":"2017-06-28 01:53:46.000000000","message":"That\u0027s an interesting question. It would only be useful if you didn\u0027t want to use any of the DB values for that object, which would be very odd... I can\u0027t think of a use case for that, but if that case ever came up, it is easy enough to change this code to support it.","commit_id":"7960fdd2bc31ca9495a5098a72f9cae61f895640"}]}
