)]}'
{"keystone/common/driver_hints.py":[{"author":{"_account_id":13063,"name":"WEI CHEN","email":"dave.jungler@gmail.com","username":"wei.d.chen"},"change_message_id":"b12db9f1abd3d9de0fbfd5f1bf311d5db28af0d6","unresolved":false,"context_lines":[{"line_number":22,"context_line":"def truncated(f):"},{"line_number":23,"context_line":"    \"\"\"Ensure list truncation is detected in Driver list entity methods."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    This is designed to wrap and sql Driver list_{entity} methods in order to"},{"line_number":26,"context_line":"    calculate if the resultant list has been truncated. Provided a limit dict"},{"line_number":27,"context_line":"    is found in the hints list, we increment the limit by one so as to ask the"},{"line_number":28,"context_line":"    wrapped function for one more entity than the limit, and then once the list"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a2ca52d_ed877b5f","line":25,"updated":"2015-10-14 06:31:44.000000000","message":"update the comment here to say it\u0027s now generic and avaiable to all backend.","commit_id":"5a11ed0caec9ec787469135c4c4e5916ca7e4817"},{"author":{"_account_id":13478,"name":"Boris Bobrov","email":"b.bobrov@sap.com","username":"bbobrov"},"change_message_id":"24d51a4bb1ad33f69c57fa0436e7e3fa031b15e7","unresolved":false,"context_lines":[{"line_number":22,"context_line":"def truncated(f):"},{"line_number":23,"context_line":"    \"\"\"Ensure list truncation is detected in Driver list entity methods."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    This is designed to wrap and sql Driver list_{entity} methods in order to"},{"line_number":26,"context_line":"    calculate if the resultant list has been truncated. Provided a limit dict"},{"line_number":27,"context_line":"    is found in the hints list, we increment the limit by one so as to ask the"},{"line_number":28,"context_line":"    wrapped function for one more entity than the limit, and then once the list"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a2ca52d_32137eba","line":25,"in_reply_to":"5a2ca52d_ed877b5f","updated":"2015-10-14 14:42:46.000000000","message":"Done","commit_id":"5a11ed0caec9ec787469135c4c4e5916ca7e4817"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"140352a34bc2196131f4b6a3c77cf4914f41e5ca","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def truncated(f):"},{"line_number":23,"context_line":"    \"\"\"Ensure list truncation is detected in Driver list entity methods."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    This is designed to wrap Driver list_{entity} methods in order to"},{"line_number":26,"context_line":"    calculate if the resultant list has been truncated. Provided a limit dict"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a8ffd7b_84d7caec","line":23,"updated":"2015-11-30 17:13:37.000000000","message":"I wonder if this should live in a common driver place, instead of in driver_hints. This isn\u0027t specific to driver_hints, is it?","commit_id":"0309a071f598ca02032dd98cd0952b5fc091cbff"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"d0c6f04920455996af3cbbe3282a5fab84ab6367","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def truncated(f):"},{"line_number":23,"context_line":"    \"\"\"Ensure list truncation is detected in Driver list entity methods."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    This is designed to wrap Driver list_{entity} methods in order to"},{"line_number":26,"context_line":"    calculate if the resultant list has been truncated. Provided a limit dict"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a8ffd7b_6cb356ea","line":23,"in_reply_to":"9a8ffd7b_2d803a46","updated":"2015-12-02 00:25:15.000000000","message":"You mean like here?\n\nhttps://github.com/openstack/keystone/blob/master/keystone/common/manager.py#L26","commit_id":"0309a071f598ca02032dd98cd0952b5fc091cbff"},{"author":{"_account_id":13478,"name":"Boris Bobrov","email":"b.bobrov@sap.com","username":"bbobrov"},"change_message_id":"379ae5e6dc8f7cf7ff260281e17e57b1624852bf","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def truncated(f):"},{"line_number":23,"context_line":"    \"\"\"Ensure list truncation is detected in Driver list entity methods."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    This is designed to wrap Driver list_{entity} methods in order to"},{"line_number":26,"context_line":"    calculate if the resultant list has been truncated. Provided a limit dict"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a8ffd7b_2d803a46","line":23,"in_reply_to":"9a8ffd7b_84d7caec","updated":"2015-11-30 20:05:51.000000000","message":"I think it is specific to driver hints. Truncation works on hints.\n\nI also don\u0027t see another place for it. Suggestions?","commit_id":"0309a071f598ca02032dd98cd0952b5fc091cbff"}],"keystone/identity/backends/sql.py":[{"author":{"_account_id":16523,"name":"ZhangLei","display_name":"ZhangLei","email":"zhang.lei@99cloud.net","username":"zhang.lei"},"change_message_id":"8ee789ba3074cebf8fa0a518e587be8c9f93e185","unresolved":false,"context_lines":[{"line_number":117,"context_line":"            session.add(user_ref)"},{"line_number":118,"context_line":"        return identity.filter_user(user_ref.to_dict())"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    @driver_hints.truncated"},{"line_number":121,"context_line":"    def list_users(self, hints):"},{"line_number":122,"context_line":"        session \u003d sql.get_session()"},{"line_number":123,"context_line":"        query \u003d session.query(User)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a2fa921_dfba9771","line":120,"updated":"2015-10-12 01:59:08.000000000","message":"please add \u0027from keystone.common import driver_hints\u0027","commit_id":"cff47be013831fbf8f2a2ecedda2b2d237dab4c2"},{"author":{"_account_id":16523,"name":"ZhangLei","display_name":"ZhangLei","email":"zhang.lei@99cloud.net","username":"zhang.lei"},"change_message_id":"8ee789ba3074cebf8fa0a518e587be8c9f93e185","unresolved":false,"context_lines":[{"line_number":248,"context_line":"            session.add(ref)"},{"line_number":249,"context_line":"        return ref.to_dict()"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"    @driver_hints.truncated"},{"line_number":252,"context_line":"    def list_groups(self, hints):"},{"line_number":253,"context_line":"        session \u003d sql.get_session()"},{"line_number":254,"context_line":"        query \u003d session.query(Group)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a2fa921_bfb9db7b","line":251,"updated":"2015-10-12 01:59:08.000000000","message":"ditto","commit_id":"cff47be013831fbf8f2a2ecedda2b2d237dab4c2"}]}
