)]}'
{"barbican/model/repositories.py":[{"author":{"_account_id":8004,"name":"Paul Kehrer","email":"paul.l.kehrer@gmail.com","username":"reaperhulk"},"change_message_id":"6127aaa37acb7f5efac2db93531985d82b7e580c","unresolved":false,"context_lines":[{"line_number":655,"context_line":"        end \u003d offset + limit"},{"line_number":656,"context_line":"        LOG.debug(\u0027Retrieving from %s to %s\u0027, start, end)"},{"line_number":657,"context_line":"        total \u003d query.count()"},{"line_number":658,"context_line":"        entities \u003d query[start:end]"},{"line_number":659,"context_line":"        LOG.debug(\u0027Number entities retrieved: %s out of %s\u0027,"},{"line_number":660,"context_line":"                  len(entities), total"},{"line_number":661,"context_line":"                  )"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_2b1d1267","line":658,"updated":"2014-12-17 13:28:06.000000000","message":"So this can\u0027t raise NoResultFound like the old code assumed it could?","commit_id":"fa049ca9579593f7aa37ee5d49d5abda69a46ced"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"3d044927dae2f4934f1c2a128239543be38b374e","unresolved":false,"context_lines":[{"line_number":655,"context_line":"        end \u003d offset + limit"},{"line_number":656,"context_line":"        LOG.debug(\u0027Retrieving from %s to %s\u0027, start, end)"},{"line_number":657,"context_line":"        total \u003d query.count()"},{"line_number":658,"context_line":"        entities \u003d query[start:end]"},{"line_number":659,"context_line":"        LOG.debug(\u0027Number entities retrieved: %s out of %s\u0027,"},{"line_number":660,"context_line":"                  len(entities), total"},{"line_number":661,"context_line":"                  )"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_b9beb1fe","line":658,"in_reply_to":"3a961159_2b1d1267","updated":"2014-12-17 17:42:30.000000000","message":"+1","commit_id":"fa049ca9579593f7aa37ee5d49d5abda69a46ced"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b654dbe22cb934e3048ba2c6e1c66d0f41a9bbfb","unresolved":false,"context_lines":[{"line_number":655,"context_line":"        end \u003d offset + limit"},{"line_number":656,"context_line":"        LOG.debug(\u0027Retrieving from %s to %s\u0027, start, end)"},{"line_number":657,"context_line":"        total \u003d query.count()"},{"line_number":658,"context_line":"        entities \u003d query[start:end]"},{"line_number":659,"context_line":"        LOG.debug(\u0027Number entities retrieved: %s out of %s\u0027,"},{"line_number":660,"context_line":"                  len(entities), total"},{"line_number":661,"context_line":"                  )"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_f0392dd9","line":658,"in_reply_to":"3a961159_2b1d1267","updated":"2014-12-17 17:48:08.000000000","message":"query[] will not ever throw NoResultFound, it would just return an empty list if not data is available. Hence the logic at #663 below.","commit_id":"fa049ca9579593f7aa37ee5d49d5abda69a46ced"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"3d044927dae2f4934f1c2a128239543be38b374e","unresolved":false,"context_lines":[{"line_number":660,"context_line":"                  len(entities), total"},{"line_number":661,"context_line":"                  )"},{"line_number":662,"context_line":""},{"line_number":663,"context_line":"        if not total and not suppress_exception:"},{"line_number":664,"context_line":"            _raise_no_entities_found(self._do_entity_name())"},{"line_number":665,"context_line":""},{"line_number":666,"context_line":"        return entities, offset, limit, total"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_b9f311e6","line":663,"updated":"2014-12-17 17:42:30.000000000","message":"Wouldn\u0027t it be better to say \"total \u003c\u003d 0\"? \"not total\" implies that you\u0027re expecting a boolean or none type.","commit_id":"fa049ca9579593f7aa37ee5d49d5abda69a46ced"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b654dbe22cb934e3048ba2c6e1c66d0f41a9bbfb","unresolved":false,"context_lines":[{"line_number":660,"context_line":"                  len(entities), total"},{"line_number":661,"context_line":"                  )"},{"line_number":662,"context_line":""},{"line_number":663,"context_line":"        if not total and not suppress_exception:"},{"line_number":664,"context_line":"            _raise_no_entities_found(self._do_entity_name())"},{"line_number":665,"context_line":""},{"line_number":666,"context_line":"        return entities, offset, limit, total"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_1904257d","line":663,"in_reply_to":"3a961159_b9f311e6","updated":"2014-12-17 17:48:08.000000000","message":"Good point, will change.","commit_id":"fa049ca9579593f7aa37ee5d49d5abda69a46ced"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b654dbe22cb934e3048ba2c6e1c66d0f41a9bbfb","unresolved":false,"context_lines":[{"line_number":1026,"context_line":"                  len(entities), total"},{"line_number":1027,"context_line":"                  )"},{"line_number":1028,"context_line":""},{"line_number":1029,"context_line":"        if not total and not suppress_exception:"},{"line_number":1030,"context_line":"            _raise_no_entities_found(self._do_entity_name())"},{"line_number":1031,"context_line":""},{"line_number":1032,"context_line":"        return entities, offset, limit, total"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_f9ecb9bd","line":1029,"updated":"2014-12-17 17:48:08.000000000","message":"...and will change this one and others as well","commit_id":"fa049ca9579593f7aa37ee5d49d5abda69a46ced"}],"barbican/tests/model/repositories/test_repositories.py":[{"author":{"_account_id":8004,"name":"Paul Kehrer","email":"paul.l.kehrer@gmail.com","username":"reaperhulk"},"change_message_id":"6127aaa37acb7f5efac2db93531985d82b7e580c","unresolved":false,"context_lines":[{"line_number":41,"context_line":"            limit_arg\u003dNone)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"        self.assertEqual(clean_offset, offset)"},{"line_number":44,"context_line":"        self.assertIsNotNone(clean_limit)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def test_offset_as_none(self):"},{"line_number":47,"context_line":"        \"\"\"When Offset is set to None it should use an offset of 0.\"\"\""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_6bee3a8d","line":44,"updated":"2014-12-17 13:28:06.000000000","message":"This assert would make more sense to me if it was \n\n\nself.assertEqual(clean_limit, self.CONF.default_limit_paging)","commit_id":"fa049ca9579593f7aa37ee5d49d5abda69a46ced"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"3d044927dae2f4934f1c2a128239543be38b374e","unresolved":false,"context_lines":[{"line_number":41,"context_line":"            limit_arg\u003dNone)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"        self.assertEqual(clean_offset, offset)"},{"line_number":44,"context_line":"        self.assertIsNotNone(clean_limit)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def test_offset_as_none(self):"},{"line_number":47,"context_line":"        \"\"\"When Offset is set to None it should use an offset of 0.\"\"\""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_d9f0ddcb","line":44,"in_reply_to":"3a961159_6bee3a8d","updated":"2014-12-17 17:42:30.000000000","message":"+1","commit_id":"fa049ca9579593f7aa37ee5d49d5abda69a46ced"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b654dbe22cb934e3048ba2c6e1c66d0f41a9bbfb","unresolved":false,"context_lines":[{"line_number":41,"context_line":"            limit_arg\u003dNone)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"        self.assertEqual(clean_offset, offset)"},{"line_number":44,"context_line":"        self.assertIsNotNone(clean_limit)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def test_offset_as_none(self):"},{"line_number":47,"context_line":"        \"\"\"When Offset is set to None it should use an offset of 0.\"\"\""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_106dd999","line":44,"in_reply_to":"3a961159_6bee3a8d","updated":"2014-12-17 17:48:08.000000000","message":"This code was just moved from its old location, but I can change this.","commit_id":"fa049ca9579593f7aa37ee5d49d5abda69a46ced"},{"author":{"_account_id":8004,"name":"Paul Kehrer","email":"paul.l.kehrer@gmail.com","username":"reaperhulk"},"change_message_id":"6127aaa37acb7f5efac2db93531985d82b7e580c","unresolved":false,"context_lines":[{"line_number":50,"context_line":"            offset_arg\u003dNone,"},{"line_number":51,"context_line":"            limit_arg\u003dlimit)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        self.assertIsNotNone(clean_offset)"},{"line_number":54,"context_line":"        self.assertEqual(clean_limit, limit)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    def test_limit_as_uncastable_str(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_cbb9ee7a","line":53,"updated":"2014-12-17 13:28:06.000000000","message":"Same as above (asserting not none doesn\u0027t seem as useful as asserting that it has been properly set to the default)","commit_id":"fa049ca9579593f7aa37ee5d49d5abda69a46ced"},{"author":{"_account_id":8004,"name":"Paul Kehrer","email":"paul.l.kehrer@gmail.com","username":"reaperhulk"},"change_message_id":"6127aaa37acb7f5efac2db93531985d82b7e580c","unresolved":false,"context_lines":[{"line_number":160,"context_line":"            exception_result.message)"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"    def test_should_raise_invalid_create_from_entity_with_id(self):"},{"line_number":163,"context_line":"        entity \u003d mock.MagicMock()"},{"line_number":164,"context_line":"        entity.id \u003d \u00271234\u0027"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"        exception_result \u003d self.assertRaises("}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_4b7c1eb6","line":163,"updated":"2014-12-17 13:28:06.000000000","message":"Is there any way to do this without a mock? The API for SQLAlchemy is very stable so it\u0027s not likely to be a big risk, but boo mocks ;)","commit_id":"fa049ca9579593f7aa37ee5d49d5abda69a46ced"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b654dbe22cb934e3048ba2c6e1c66d0f41a9bbfb","unresolved":false,"context_lines":[{"line_number":160,"context_line":"            exception_result.message)"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"    def test_should_raise_invalid_create_from_entity_with_id(self):"},{"line_number":163,"context_line":"        entity \u003d mock.MagicMock()"},{"line_number":164,"context_line":"        entity.id \u003d \u00271234\u0027"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"        exception_result \u003d self.assertRaises("}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_d948ddce","line":163,"in_reply_to":"3a961159_4b7c1eb6","updated":"2014-12-17 17:48:08.000000000","message":"Will do.","commit_id":"fa049ca9579593f7aa37ee5d49d5abda69a46ced"}]}
