)]}'
{"barbican/api/app.py":[{"author":{"_account_id":8004,"name":"Paul Kehrer","email":"paul.l.kehrer@gmail.com","username":"reaperhulk"},"change_message_id":"93442f91142c9235215e49931cc7335bb7ac9af3","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        containers \u003d containers.ContainersController()"},{"line_number":114,"context_line":"        transport_keys \u003d transportkeys.TransportKeysController()"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    repositories.setup_database_session()"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    wsgi_app \u003d PecanAPI("},{"line_number":119,"context_line":"        RootController(), is_transactional\u003dTrue, force_canonical\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_116fb5c6","line":116,"updated":"2015-02-21 22:18:02.000000000","message":"I\u0027d put a comment here explaining why this is desirable.","commit_id":"4b87bf14271add09a010ff4a5b0008e537b2978c"}],"barbican/model/repositories.py":[{"author":{"_account_id":8004,"name":"Paul Kehrer","email":"paul.l.kehrer@gmail.com","username":"reaperhulk"},"change_message_id":"93442f91142c9235215e49931cc7335bb7ac9af3","unresolved":false,"context_lines":[{"line_number":77,"context_line":"log.register_options(CONF)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"def hard_reset():"},{"line_number":81,"context_line":"    \"\"\"Performs a hard reset of database resources, used for unit testing.\"\"\""},{"line_number":82,"context_line":"    global _ENGINE, _MAKER"},{"line_number":83,"context_line":"    if _ENGINE:"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_51684dba","line":80,"updated":"2015-02-21 22:18:02.000000000","message":"Could we put a TODO here to remove this after we improve the unit tests that consume it?","commit_id":"4b87bf14271add09a010ff4a5b0008e537b2978c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"2ea9bc651adaafdbe8def9528c059e38ac3daa12","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    # Utilize SQLAlchemy\u0027s scoped_session to ensure that we only have one"},{"line_number":104,"context_line":"    # session instance per thread."},{"line_number":105,"context_line":"    _MAKER \u003d sqlalchemy.orm.scoped_session(sa_orm.sessionmaker(bind\u003d_ENGINE))"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    get_session()"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_f13ce195","line":105,"updated":"2015-02-21 22:38:49.000000000","message":"I think this and the next call should not be called up front and one time...see comments below.","commit_id":"4b87bf14271add09a010ff4a5b0008e537b2978c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"2ea9bc651adaafdbe8def9528c059e38ac3daa12","unresolved":false,"context_lines":[{"line_number":108,"context_line":""},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"def start():"},{"line_number":111,"context_line":"    \"\"\"Pecan transaction hook - Start for read-write requests"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"    Typically performed at the start of a request cycle, say for POST or PUT"},{"line_number":114,"context_line":"    requests."}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_91e72540","line":111,"updated":"2015-02-21 22:38:49.000000000","message":"Please remove \u0027pecan\u0027 reference, as These lifecycle methods are not just for Pecan hooks, as they are also called from the worker side.","commit_id":"4b87bf14271add09a010ff4a5b0008e537b2978c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"2ea9bc651adaafdbe8def9528c059e38ac3daa12","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    Typically performed at the start of a request cycle, say for POST or PUT"},{"line_number":114,"context_line":"    requests."},{"line_number":115,"context_line":"    \"\"\""},{"line_number":116,"context_line":"    pass"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"def start_read_only():"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_71c1d17f","line":116,"updated":"2015-02-21 22:38:49.000000000","message":"The intent of these lifecycle calls is to establish a db transaction per request/thread. If we are not using threads though maybe this is moot? Perhaps all that needs to run in app.py is the config db call?","commit_id":"4b87bf14271add09a010ff4a5b0008e537b2978c"}],"barbican/queue/server.py":[{"author":{"_account_id":8004,"name":"Paul Kehrer","email":"paul.l.kehrer@gmail.com","username":"reaperhulk"},"change_message_id":"7171aba253b023dde5c812b1d1133585bd99eac3","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        super(TaskServer, self).__init__()"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"        # Setting up db engine to avoid lazy initialization"},{"line_number":108,"context_line":"        repositories.setup_database_engine_and_factory()"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        # This property must be defined for the \u0027endpoints\u0027 specified below,"},{"line_number":111,"context_line":"        #   as the oslo_messaging RPC server will ask for it."}],"source_content_type":"text/x-python","patch_set":3,"id":"ba7be1f8_c79b9fc7","line":108,"updated":"2015-02-22 05:56:42.000000000","message":"Good catch. I don\u0027t suppose there\u0027s a way we can configure our devstack such that we\u0027d catch this? (Presumably workers were not going to work properly with the first version of this patch?)","commit_id":"06e7e7f598ad286f9fb93b7ea37e6ab748b24c3f"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"41fb4f584ba1784cd6aef45c62e08fc44cfe6491","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        super(TaskServer, self).__init__()"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"        # Setting up db engine to avoid lazy initialization"},{"line_number":108,"context_line":"        repositories.setup_database_engine_and_factory()"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        # This property must be defined for the \u0027endpoints\u0027 specified below,"},{"line_number":111,"context_line":"        #   as the oslo_messaging RPC server will ask for it."}],"source_content_type":"text/x-python","patch_set":3,"id":"ba7be1f8_c75e3fe9","line":108,"in_reply_to":"ba7be1f8_c79b9fc7","updated":"2015-02-22 06:31:58.000000000","message":"Well, I think the first step to catching this kind of thing is to properly use the in-memory sqlite properly instead of mocking up all the things. In theory, that might have surfaced this; however, I don\u0027t think we directly test the TaskServer either. I hope that we try to tackle both of those things in the near future.","commit_id":"06e7e7f598ad286f9fb93b7ea37e6ab748b24c3f"}]}
