)]}'
{"manilaclient/tests/functional/utils.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a0dd439b32a5a9fc95c365300cfa11ec2bb90590","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from tempest_lib.cli import output_parser"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"def multi_line_row_table(output_lines, id_column_index\u003d0):"},{"line_number":21,"context_line":"    parsed_table \u003d output_parser.table(output_lines)"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    rows \u003d parsed_table[\u0027values\u0027]"}],"source_content_type":"text/x-python","patch_set":2,"id":"5aa745d1_f14e9095","line":20,"updated":"2015-04-15 20:36:54.000000000","message":"This func is designed only for table with object collection.\n\nIn case of manila[client] we have multi line row for some single object data table. For example - \"show\" operation for share will have such for export locations.\n\nSo, need to replace parameter \"id_column_index\" with name of column to group rows by. And this will affect unit tests as well.","commit_id":"fdc9790e8105da5e55c06da94631c9e5b670e5ae"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"02abcb432deb5860dc47f670409db8dd0c4da08a","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from tempest_lib.cli import output_parser"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"def multi_line_row_table(output_lines, id_column_index\u003d0):"},{"line_number":21,"context_line":"    parsed_table \u003d output_parser.table(output_lines)"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    rows \u003d parsed_table[\u0027values\u0027]"}],"source_content_type":"text/x-python","patch_set":2,"id":"5aa745d1_3f2cb149","line":20,"in_reply_to":"5aa745d1_f14e9095","updated":"2015-04-16 08:47:50.000000000","message":"Done","commit_id":"fdc9790e8105da5e55c06da94631c9e5b670e5ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a0dd439b32a5a9fc95c365300cfa11ec2bb90590","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    rows \u003d parsed_table[\u0027values\u0027]"},{"line_number":24,"context_line":"    row_index \u003d 0"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def get_id_column_index(headers, default):"},{"line_number":27,"context_line":"        return next("},{"line_number":28,"context_line":"            (i for i, h in enumerate(headers) if h.lower() \u003d\u003d \u0027id\u0027), default)"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5aa745d1_d111545f","line":26,"updated":"2015-04-15 20:36:54.000000000","message":"It looks strange to me to define function in function when it is used only once. \n\nAlso you define one additional name [of function] that can be avoided avoiding \u003d) creation of separate function for one call.","commit_id":"fdc9790e8105da5e55c06da94631c9e5b670e5ae"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"02abcb432deb5860dc47f670409db8dd0c4da08a","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    rows \u003d parsed_table[\u0027values\u0027]"},{"line_number":24,"context_line":"    row_index \u003d 0"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def get_id_column_index(headers, default):"},{"line_number":27,"context_line":"        return next("},{"line_number":28,"context_line":"            (i for i, h in enumerate(headers) if h.lower() \u003d\u003d \u0027id\u0027), default)"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5aa745d1_5f9c1d69","line":26,"in_reply_to":"5aa745d1_d111545f","updated":"2015-04-16 08:47:50.000000000","message":"I use separate functions to improve readability of the code. In this case, you don\u0027t need to dig into details of implementation but can simply determine what function do by name.","commit_id":"fdc9790e8105da5e55c06da94631c9e5b670e5ae"}]}
