)]}'
{"ovsdbapp/backend/ovs_idl/command.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"08a1976293a8213815b7711644adff985dc3fe6e","unresolved":false,"context_lines":[{"line_number":221,"context_line":"        else:"},{"line_number":222,"context_line":"            rows \u003d table_schema.rows.values()"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"       def match(row):"},{"line_number":225,"context_line":"            return getattr(row, idx) in self.records if idx else True"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"       self.result \u003d ["}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_7a313fa2","line":224,"range":{"start_line":224,"start_character":7,"end_line":224,"end_character":10},"updated":"2018-05-08 14:57:19.000000000","message":"You have wrong indentations here","commit_id":"89ca9206e65f27939ce3f70b29326c2d4bb30495"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"08a1976293a8213815b7711644adff985dc3fe6e","unresolved":false,"context_lines":[{"line_number":224,"context_line":"       def match(row):"},{"line_number":225,"context_line":"            return getattr(row, idx) in self.records if idx else True"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"       self.result \u003d ["},{"line_number":228,"context_line":"            rowview.RowView(row) if self.row else {"},{"line_number":229,"context_line":"                c: idlutils.get_column_value(row, c)"},{"line_number":230,"context_line":"                for c in columns"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_1a284b32","line":227,"range":{"start_line":227,"start_character":7,"end_line":227,"end_character":11},"updated":"2018-05-08 14:57:19.000000000","message":"and here","commit_id":"89ca9206e65f27939ce3f70b29326c2d4bb30495"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"2239b6213295ebbd15d2413333552464187eb5c1","unresolved":false,"context_lines":[{"line_number":234,"context_line":"            for row in rows if match(row)"},{"line_number":235,"context_line":"        ]"},{"line_number":236,"context_line":"        if not self.result and not self.if_exists:"},{"line_number":237,"context_line":"            raise idlutils.RowNotFound"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"class DbFindCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_36d0b250","line":237,"range":{"start_line":237,"start_character":12,"end_line":237,"end_character":38},"updated":"2018-05-09 09:02:14.000000000","message":"We need to instantiate RowNotFound with the right parameters in order to raise it, e.g:\n\nraise RowNotFound(table\u003dtable, col\u003d\u0027xxx\u0027, match\u003d\u0027yyy\u0027)\n\nhttp://logs.openstack.org/01/566901/5/check/legacy-tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/d03b639/logs/screen-networking-ovn-metadata-agent.txt.gz#_May_08_21_39_13_123608","commit_id":"5a329eca8f61575efc9328ae6602daf584570f93"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"79162794c6eeb45b1d0bae3c7b3092c6c68a71ff","unresolved":false,"context_lines":[{"line_number":234,"context_line":"            for row in rows if match(row)"},{"line_number":235,"context_line":"        ]"},{"line_number":236,"context_line":"        if not self.result and not self.if_exists:"},{"line_number":237,"context_line":"            raise idlutils.RowNotFound"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"class DbFindCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_56bd2ed6","line":237,"range":{"start_line":237,"start_character":12,"end_line":237,"end_character":38},"in_reply_to":"5f7c97a3_36d0b250","updated":"2018-05-09 09:09:00.000000000","message":"Ops good catch, right!","commit_id":"5a329eca8f61575efc9328ae6602daf584570f93"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"918c5ba70cfe2b3b4083b079334578726cdd9171","unresolved":false,"context_lines":[{"line_number":234,"context_line":"            for row in rows if match(row)"},{"line_number":235,"context_line":"        ]"},{"line_number":236,"context_line":"        if not self.result and not self.if_exists:"},{"line_number":237,"context_line":"            raise idlutils.RowNotFound"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"class DbFindCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_aa953242","line":237,"range":{"start_line":237,"start_character":12,"end_line":237,"end_character":38},"in_reply_to":"5f7c97a3_56bd2ed6","updated":"2018-05-09 09:42:46.000000000","message":"We shall add a functional test for it","commit_id":"5a329eca8f61575efc9328ae6602daf584570f93"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a41efc781dee479701073d06d1928b75a34cb217","unresolved":false,"context_lines":[{"line_number":234,"context_line":"            for row in rows if match(row)"},{"line_number":235,"context_line":"        ]"},{"line_number":236,"context_line":"        if not self.result and not self.if_exists:"},{"line_number":237,"context_line":"            raise idlutils.RowNotFound"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"class DbFindCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_ea848a0e","line":237,"range":{"start_line":237,"start_character":12,"end_line":237,"end_character":38},"in_reply_to":"5f7c97a3_aa953242","updated":"2018-05-09 09:44:06.000000000","message":"++","commit_id":"5a329eca8f61575efc9328ae6602daf584570f93"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"79f8023ca51eaea62604cabd605ff443b13b02db","unresolved":false,"context_lines":[{"line_number":234,"context_line":"            for row in rows if match(row)"},{"line_number":235,"context_line":"        ]"},{"line_number":236,"context_line":"        if not self.result and not self.if_exists:"},{"line_number":237,"context_line":"            raise idlutils.RowNotFound"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"class DbFindCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_4d1838d2","line":237,"range":{"start_line":237,"start_character":12,"end_line":237,"end_character":38},"in_reply_to":"5f7c97a3_aa953242","updated":"2018-05-09 10:44:00.000000000","message":"It\u0027s actually worse than this... I\u0027m only raising the exception when self.result is empty. I\u0027m missing the case when not all elements are missing and in this case I\u0027m not raising the exception... sigh :)\nI\u0027ll also add coverage for this.","commit_id":"5a329eca8f61575efc9328ae6602daf584570f93"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"56a391638987a627efc2ca689da65b670262f272","unresolved":false,"context_lines":[{"line_number":251,"context_line":"            for row in rows if match(row)"},{"line_number":252,"context_line":"        ]"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"        if not self.if_exists and records_found:"},{"line_number":255,"context_line":"            raise RowNotFound(table\u003dself.table, col\u003didx,"},{"line_number":256,"context_line":"                              match\u003drecords_found[0])"},{"line_number":257,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_c0c72f45","line":254,"range":{"start_line":254,"start_character":11,"end_line":254,"end_character":29},"updated":"2018-05-09 11:18:20.000000000","message":"actually i dont need to check this because if records_found contains some element it\u0027s because this is already met","commit_id":"e5b77630b399d67e5fde202cd15328d0319236c1"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"b31c0525b3cb858c9787895c966366cb31d55510","unresolved":false,"context_lines":[{"line_number":207,"context_line":"        # If there\u0027s an index for this table, we\u0027ll fetch all columns and"},{"line_number":208,"context_line":"        # remove the unwanted ones based on self.records. Otherwise, let\u0027s try"},{"line_number":209,"context_line":"        # to get the uuid of the wanted ones which is an O(n^2) operation."},{"line_number":210,"context_line":"        if not idx and self.records:"},{"line_number":211,"context_line":"            rows \u003d []"},{"line_number":212,"context_line":"            for record in self.records:"},{"line_number":213,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":8,"id":"5f7c97a3_e3283535","line":210,"range":{"start_line":210,"start_character":18,"end_line":210,"end_character":35},"updated":"2018-05-09 11:55:00.000000000","message":"We could also improve a case where self.records \u003d\u003d []\n\n if not self.records:\n     self.results \u003d []\n     return\n\nand then you won\u0027t need to check records here and on L232","commit_id":"476b174f7d303c501fa2f3b91efda659ed9b9f3d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"ab71da39f17d6622df34fd4408d54fdd61603ec6","unresolved":false,"context_lines":[{"line_number":207,"context_line":"        # If there\u0027s an index for this table, we\u0027ll fetch all columns and"},{"line_number":208,"context_line":"        # remove the unwanted ones based on self.records. Otherwise, let\u0027s try"},{"line_number":209,"context_line":"        # to get the uuid of the wanted ones which is an O(n^2) operation."},{"line_number":210,"context_line":"        if not idx and self.records:"},{"line_number":211,"context_line":"            rows \u003d []"},{"line_number":212,"context_line":"            for record in self.records:"},{"line_number":213,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":8,"id":"5f7c97a3_e314b550","line":210,"range":{"start_line":210,"start_character":18,"end_line":210,"end_character":35},"in_reply_to":"5f7c97a3_c3f5f984","updated":"2018-05-09 12:24:40.000000000","message":"Ignore, I\u0027m retarded. I thought if we list nothing, we should return nothing. But then we won\u0027t be able to get all items in db, cause we would need to know all the items before.","commit_id":"476b174f7d303c501fa2f3b91efda659ed9b9f3d"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"851b1d6d764202fb52e92edb8ec5a4d2acb09882","unresolved":false,"context_lines":[{"line_number":207,"context_line":"        # If there\u0027s an index for this table, we\u0027ll fetch all columns and"},{"line_number":208,"context_line":"        # remove the unwanted ones based on self.records. Otherwise, let\u0027s try"},{"line_number":209,"context_line":"        # to get the uuid of the wanted ones which is an O(n^2) operation."},{"line_number":210,"context_line":"        if not idx and self.records:"},{"line_number":211,"context_line":"            rows \u003d []"},{"line_number":212,"context_line":"            for record in self.records:"},{"line_number":213,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":8,"id":"5f7c97a3_1e0d8836","line":210,"range":{"start_line":210,"start_character":18,"end_line":210,"end_character":35},"in_reply_to":"5f7c97a3_e314b550","updated":"2018-05-09 12:26:15.000000000","message":"you\u0027re awesome anyways :) thanks for taking a look and your valuable help as always!","commit_id":"476b174f7d303c501fa2f3b91efda659ed9b9f3d"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"73e924f5ac3cd97d2ee3b9be27af1476f7afdd9f","unresolved":false,"context_lines":[{"line_number":207,"context_line":"        # If there\u0027s an index for this table, we\u0027ll fetch all columns and"},{"line_number":208,"context_line":"        # remove the unwanted ones based on self.records. Otherwise, let\u0027s try"},{"line_number":209,"context_line":"        # to get the uuid of the wanted ones which is an O(n^2) operation."},{"line_number":210,"context_line":"        if not idx and self.records:"},{"line_number":211,"context_line":"            rows \u003d []"},{"line_number":212,"context_line":"            for record in self.records:"},{"line_number":213,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":8,"id":"5f7c97a3_c3f5f984","line":210,"range":{"start_line":210,"start_character":18,"end_line":210,"end_character":35},"in_reply_to":"5f7c97a3_e3283535","updated":"2018-05-09 12:08:03.000000000","message":"I don\u0027t get this... why would we want to return if self.records is empty?","commit_id":"476b174f7d303c501fa2f3b91efda659ed9b9f3d"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"ec59ec81984bb82b182f2e3adf62b6ccbdc94c88","unresolved":false,"context_lines":[{"line_number":228,"context_line":"                records_found.remove(elem)"},{"line_number":229,"context_line":"            return found"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"        records_found \u003d []"},{"line_number":232,"context_line":"        if idx and self.records:"},{"line_number":233,"context_line":"            if self.if_exists:"},{"line_number":234,"context_line":"                match \u003d lambda row: getattr(row, idx) in self.records"}],"source_content_type":"text/x-python","patch_set":8,"id":"5f7c97a3_f99bef14","line":231,"range":{"start_line":231,"start_character":8,"end_line":231,"end_character":26},"updated":"2018-05-10 09:07:57.000000000","message":"Nit: I would initialize that variable before the _match() method because it\u0027s consuming it.","commit_id":"476b174f7d303c501fa2f3b91efda659ed9b9f3d"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"765346e9604ff8db894178353706f0383df4becb","unresolved":false,"context_lines":[{"line_number":228,"context_line":"                records_found.remove(elem)"},{"line_number":229,"context_line":"            return found"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"        records_found \u003d []"},{"line_number":232,"context_line":"        if idx and self.records:"},{"line_number":233,"context_line":"            if self.if_exists:"},{"line_number":234,"context_line":"                match \u003d lambda row: getattr(row, idx) in self.records"}],"source_content_type":"text/x-python","patch_set":8,"id":"5f7c97a3_94e722ad","line":231,"range":{"start_line":231,"start_character":8,"end_line":231,"end_character":26},"in_reply_to":"5f7c97a3_f99bef14","updated":"2018-05-10 09:49:36.000000000","message":"Ops, true, if i need a respin I\u0027ll change it. Thanks for noticing!","commit_id":"476b174f7d303c501fa2f3b91efda659ed9b9f3d"}]}
