)]}'
{"doc/source/zuul.rst":[{"author":{"_account_id":7069,"name":"Joshua Hesketh","email":"josh@nitrotech.org","username":"jhesketh"},"change_message_id":"ba1304f40bb9dca6f6a98007700f18540c750a3d","unresolved":false,"context_lines":[{"line_number":93,"context_line":"  queried with all dependent changes. Defaults to ``1``. ``query_attempts_max\u003d1``"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"**query_attempts_interval**"},{"line_number":96,"context_line":"  Time in seconds to wait before subsequent query attempts. Defaults to ``1``. ``query_attempts_interval\u003d1``"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"zuul"},{"line_number":99,"context_line":"\"\"\"\""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a4dcd0f_6e8284ca","line":96,"updated":"2015-08-10 12:15:04.000000000","message":"(nit) should try to keep this to 80cols.","commit_id":"1d3626e0ef18034da50b2c16902cb04c74d3a716"}],"zuul/trigger/gerrit.py":[{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"1a55fbd9b6c3d7acee5b19453eb36d9ae1f84c01","unresolved":false,"context_lines":[{"line_number":403,"context_line":"                             \"attempt %d\" %"},{"line_number":404,"context_line":"                             (change.number, change.patchset, attempt))"},{"line_number":405,"context_line":"            data \u003d self.gerrit.query(change.number)"},{"line_number":406,"context_line":"            if attempt \u003e 10:"},{"line_number":407,"context_line":"                raise Exception(\"Change %s,%s not found\" % (change.number,"},{"line_number":408,"context_line":"                                                            change.patchset))"},{"line_number":409,"context_line":"            attempt +\u003d 1"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_18a5eba0","line":406,"updated":"2015-07-28 07:58:53.000000000","message":"this could be parameterized","commit_id":"7938adc5ee5804bc2a4a39fe60b1b0a4199e2997"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"d6ab6e5e10bd7f3fbaaff7180d01548ddfb50f03","unresolved":false,"context_lines":[{"line_number":405,"context_line":"    def updateChange(self, change, history\u003dNone):"},{"line_number":406,"context_line":"        self.log.info(\"Updating information for %s,%s\" %"},{"line_number":407,"context_line":"                      (change.number, change.patchset))"},{"line_number":408,"context_line":"        attempt \u003d 1"},{"line_number":409,"context_line":"        data \u003d self.gerrit.query(change.number)"},{"line_number":410,"context_line":"        while \u0027project\u0027 not in data:"},{"line_number":411,"context_line":"            attempt +\u003d 1"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_b94dfdc5","line":408,"updated":"2015-08-01 06:35:16.000000000","message":"setting attempt to 0, and move the conditional and the attempt increase after the gerrit query, sounds more logical to me\nYou can save one comparison here if \u0027project\u0027 in data at first time\nAlso you did it like that on second comparison, so it\u0027s worth to maintain the same style everywhere","commit_id":"a723f19ea1ea1f958a760398c85397dbe4c682e7"},{"author":{"_account_id":6133,"name":"yolanda.robla","email":"yroblamo@redhat.com","username":"yolanda.robla"},"change_message_id":"391c3d69e39b907daf306a74b96139ad092ad81d","unresolved":false,"context_lines":[{"line_number":409,"context_line":"        # Because Gerrit can announce a change before all dependents can be"},{"line_number":410,"context_line":"        # retrieved it must be queried in a loop."},{"line_number":411,"context_line":"        attempt \u003d 0"},{"line_number":412,"context_line":"        while 1:"},{"line_number":413,"context_line":"            data \u003d self.gerrit.query(change.number)"},{"line_number":414,"context_line":"            attempt +\u003d 1"},{"line_number":415,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_3edbf77d","line":412,"updated":"2015-08-03 06:54:02.000000000","message":"i\u0027d better say \"while attempt \u003c self.query_attempts_max\"","commit_id":"7a24097a8e5f4be90b550f389e9312e8288507f3"}]}
