)]}'
{"neutron/agent/dhcp_agent.py":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"652cbdb79e2412bfa44375c50b66133a38072cc5","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def main():"},{"line_number":44,"context_line":"    register_options(cfg.CONF)"},{"line_number":45,"context_line":"    common_config.init(sys.argv[1:], configure_db\u003dTrue)"},{"line_number":46,"context_line":"    config.setup_logging()"},{"line_number":47,"context_line":"    server \u003d neutron_service.Service.create("},{"line_number":48,"context_line":"        binary\u003d\u0027neutron-dhcp-agent\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_01f86d7b","line":45,"updated":"2016-05-04 13:25:12.000000000","message":"Since this is an agent it should not need to configure the DB? Same for the other agents.","commit_id":"441588c6cf4d9750248ad55995a839cf96e87c23"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"6484ce0035bdc4b7c618a3a4689e1872638102a6","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def main():"},{"line_number":44,"context_line":"    register_options(cfg.CONF)"},{"line_number":45,"context_line":"    common_config.init(sys.argv[1:], configure_db\u003dTrue)"},{"line_number":46,"context_line":"    config.setup_logging()"},{"line_number":47,"context_line":"    server \u003d neutron_service.Service.create("},{"line_number":48,"context_line":"        binary\u003d\u0027neutron-dhcp-agent\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_72764da4","line":45,"in_reply_to":"1a122d0e_01f86d7b","updated":"2016-05-04 14:01:19.000000000","message":"Done","commit_id":"441588c6cf4d9750248ad55995a839cf96e87c23"}],"neutron/common/config.py":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"0408e6e014d623894dc5742e80820b022f9c30f7","unresolved":false,"context_lines":[{"line_number":231,"context_line":"logging.register_options(cfg.CONF)"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"def init(args, configure_db\u003dFalse, **kwargs):"},{"line_number":235,"context_line":"    cfg.CONF(args\u003dargs, project\u003d\u0027neutron\u0027,"},{"line_number":236,"context_line":"             version\u003d\u0027%%(prog)s %s\u0027 % version.version_info.release_string(),"},{"line_number":237,"context_line":"             **kwargs)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a122d0e_d9f5cfed","line":234,"range":{"start_line":234,"start_character":28,"end_line":234,"end_character":33},"updated":"2016-05-04 11:37:26.000000000","message":"Why must it default to False? This means we will need to fix every out-of-tree project before this can merge.","commit_id":"fe70ae4250df7d92738dbe4f8bc78720d42ba697"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ab695e9c28104e8ef237abeb915242e8b32eae05","unresolved":false,"context_lines":[{"line_number":231,"context_line":"logging.register_options(cfg.CONF)"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"def init(args, configure_db\u003dFalse, **kwargs):"},{"line_number":235,"context_line":"    cfg.CONF(args\u003dargs, project\u003d\u0027neutron\u0027,"},{"line_number":236,"context_line":"             version\u003d\u0027%%(prog)s %s\u0027 % version.version_info.release_string(),"},{"line_number":237,"context_line":"             **kwargs)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a122d0e_d99b0f65","line":234,"range":{"start_line":234,"start_character":28,"end_line":234,"end_character":33},"in_reply_to":"1a122d0e_d9f5cfed","updated":"2016-05-04 11:46:07.000000000","message":"I made it False due to this comment https://review.openstack.org/#/c/300017/10/neutron/common/config.py","commit_id":"fe70ae4250df7d92738dbe4f8bc78720d42ba697"},{"author":{"_account_id":6849,"name":"Roman Podoliaka","email":"roman.podoliaka@gmail.com","username":"rpodolyaka"},"change_message_id":"0d85b275af856e1a2887b119c37cc9514b5af60b","unresolved":false,"context_lines":[{"line_number":247,"context_line":"        msg \u003d _(\"Base MAC: %s\") % msg"},{"line_number":248,"context_line":"        raise Exception(msg)"},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"    if configure_db:"},{"line_number":251,"context_line":"        db_api.configure(cfg.CONF)"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"dab17558_c60a8d25","line":250,"updated":"2016-05-11 14:02:23.000000000","message":"Why do you need a condition here? Can init() be called multiple times after sessions / connections have actually been used? (that must be the only case why a subsequent configure() would fail)","commit_id":"d3afc882f16953288e68395e692bf49745470446"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"65ae96c9a465ef0ccdd8d5f372c9dd7f2ab1235c","unresolved":false,"context_lines":[{"line_number":247,"context_line":"        msg \u003d _(\"Base MAC: %s\") % msg"},{"line_number":248,"context_line":"        raise Exception(msg)"},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"    if configure_db:"},{"line_number":251,"context_line":"        db_api.configure(cfg.CONF)"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"dab17558_21be9aff","line":250,"in_reply_to":"dab17558_c60a8d25","updated":"2016-05-12 18:55:37.000000000","message":"Done","commit_id":"d3afc882f16953288e68395e692bf49745470446"}],"neutron/db/api.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"7204479c3eff014a8d203ddb261881070179b773","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"def get_engine():"},{"line_number":56,"context_line":"    \"\"\"Helper method to grab engine.\"\"\""},{"line_number":57,"context_line":"    return context_manager._factory.get_legacy_facade().get_engine()"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"def dispose():"}],"source_content_type":"text/x-python","patch_set":4,"id":"dab17558_8de6ebe5","line":57,"range":{"start_line":57,"start_character":11,"end_line":57,"end_character":53},"updated":"2016-05-11 11:54:27.000000000","message":"Can\u0027t we use context_manager.get_legacy_facade() instead?\n\nLooking at [1], it seems to do the same thing.\nIf correct, it is better to avoid accessing a private property.\n\n[1] https://github.com/openstack/oslo.db/blob/master/oslo_db/sqlalchemy/enginefacade.py#L628","commit_id":"c014a116c702ce246bcf617e74f10f0d4d027d96"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"cdadc3f40139fff84c5178b043851f36e89e4708","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"def get_engine():"},{"line_number":56,"context_line":"    \"\"\"Helper method to grab engine.\"\"\""},{"line_number":57,"context_line":"    return context_manager._factory.get_legacy_facade().get_engine()"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"def dispose():"}],"source_content_type":"text/x-python","patch_set":4,"id":"dab17558_30a118f9","line":57,"range":{"start_line":57,"start_character":11,"end_line":57,"end_character":53},"in_reply_to":"dab17558_8de6ebe5","updated":"2016-05-11 12:20:01.000000000","message":"Thanks for pointing this! Done","commit_id":"c014a116c702ce246bcf617e74f10f0d4d027d96"},{"author":{"_account_id":6849,"name":"Roman Podoliaka","email":"roman.podoliaka@gmail.com","username":"rpodolyaka"},"change_message_id":"0d85b275af856e1a2887b119c37cc9514b5af60b","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    context_manager.configure(sqlite_fk\u003dTrue, **conf.database)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"def get_engine():"},{"line_number":56,"context_line":"    \"\"\"Helper method to grab engine.\"\"\""},{"line_number":57,"context_line":"    return context_manager.get_legacy_facade().get_engine()"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"dab17558_e67a31bc","line":55,"updated":"2016-05-11 14:02:23.000000000","message":"If you updated all places in the code, which use sessions / connections, you should not need get_engine() / get_session() anymore.","commit_id":"d3afc882f16953288e68395e692bf49745470446"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"65ae96c9a465ef0ccdd8d5f372c9dd7f2ab1235c","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    context_manager.configure(sqlite_fk\u003dTrue, **conf.database)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"def get_engine():"},{"line_number":56,"context_line":"    \"\"\"Helper method to grab engine.\"\"\""},{"line_number":57,"context_line":"    return context_manager.get_legacy_facade().get_engine()"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"dab17558_61cf02b4","line":55,"in_reply_to":"dab17558_e67a31bc","updated":"2016-05-12 18:55:37.000000000","message":"This will be done later as there are a lot of places, where this is used. I will put TODO comment here","commit_id":"d3afc882f16953288e68395e692bf49745470446"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"caab0ae74b228babb0f74e29c02d9713c319e151","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"#TODO(akamyshnikova): get_engine can be used from"},{"line_number":53,"context_line":"# context_manager.get_legacy_facade() directly"},{"line_number":54,"context_line":"def get_engine():"},{"line_number":55,"context_line":"    \"\"\"Helper method to grab engine.\"\"\""},{"line_number":56,"context_line":"    return context_manager.get_legacy_facade().get_engine()"}],"source_content_type":"text/x-python","patch_set":7,"id":"bab6814e_93de7a0f","line":53,"updated":"2016-05-19 14:24:22.000000000","message":"What does this TODO mean? Does it mean we can drop get_engine() later?","commit_id":"e3f445afdd34f4c053535adc78dac2ca3427c702"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"29b0fe4f8dc9990353093baa125114b859114e9f","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"#TODO(akamyshnikova): get_engine can be used from"},{"line_number":53,"context_line":"# context_manager.get_legacy_facade() directly"},{"line_number":54,"context_line":"def get_engine():"},{"line_number":55,"context_line":"    \"\"\"Helper method to grab engine.\"\"\""},{"line_number":56,"context_line":"    return context_manager.get_legacy_facade().get_engine()"}],"source_content_type":"text/x-python","patch_set":7,"id":"bab6814e_75891075","line":53,"in_reply_to":"bab6814e_93de7a0f","updated":"2016-05-20 08:39:42.000000000","message":"Yes, as per Roman\u0027s comment on the 5th patch set, but only when rework all usage of sessions and engines.","commit_id":"e3f445afdd34f4c053535adc78dac2ca3427c702"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"617fa9a95a5779aba8c74912fbdc4ae27c7860bc","unresolved":false,"context_lines":[{"line_number":61,"context_line":"            any(_is_nested_instance(i, etypes) for i in e.inner_exceptions))"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"def set_profiler():"},{"line_number":65,"context_line":"    global _PROFILER_INITIALIZED"},{"line_number":66,"context_line":"    # TODO(akamyshnikova) this code should be in oslo.db"},{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_92b9317c","line":64,"range":{"start_line":64,"start_character":4,"end_line":64,"end_character":16},"updated":"2016-06-23 17:53:05.000000000","message":"do we really want this to be public?\nalso should we have a unit test for this?","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"bb331ed6dc844f44c60ca94f4b3c785b438718aa","unresolved":false,"context_lines":[{"line_number":61,"context_line":"            any(_is_nested_instance(i, etypes) for i in e.inner_exceptions))"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"def set_profiler():"},{"line_number":65,"context_line":"    global _PROFILER_INITIALIZED"},{"line_number":66,"context_line":"    # TODO(akamyshnikova) this code should be in oslo.db"},{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_cc46594e","line":64,"range":{"start_line":64,"start_character":4,"end_line":64,"end_character":16},"in_reply_to":"3aaa91ec_4ad0981f","updated":"2016-06-24 12:05:04.000000000","message":"Thanks for the response.\n\nIt\u0027s a refactor, but it appears to have made this function public now. I\u0027m not up to speed on the end API here, but based on what I see I would\u0027ve expected this to be private.","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"224841ea1119434b5d3a157b407b26fe561b6233","unresolved":false,"context_lines":[{"line_number":61,"context_line":"            any(_is_nested_instance(i, etypes) for i in e.inner_exceptions))"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"def set_profiler():"},{"line_number":65,"context_line":"    global _PROFILER_INITIALIZED"},{"line_number":66,"context_line":"    # TODO(akamyshnikova) this code should be in oslo.db"},{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_4ad0981f","line":64,"range":{"start_line":64,"start_character":4,"end_line":64,"end_character":16},"in_reply_to":"3aaa91ec_92b9317c","updated":"2016-06-24 07:22:30.000000000","message":"This method is just refactor, this was part of _create_facade_lazily previously and added in https://review.openstack.org/#/c/273951/","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ed9969c91e41d606c970d8155b9db6c6b5111dbf","unresolved":false,"context_lines":[{"line_number":61,"context_line":"            any(_is_nested_instance(i, etypes) for i in e.inner_exceptions))"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"def set_profiler():"},{"line_number":65,"context_line":"    global _PROFILER_INITIALIZED"},{"line_number":66,"context_line":"    # TODO(akamyshnikova) this code should be in oslo.db"},{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_6cdbe54f","line":64,"range":{"start_line":64,"start_character":4,"end_line":64,"end_character":16},"in_reply_to":"3aaa91ec_cc46594e","updated":"2016-06-24 12:10:19.000000000","message":"Done","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"c197c458ab817c3d286ca7c128131b745d598ded","unresolved":false,"context_lines":[{"line_number":64,"context_line":"def set_profiler():"},{"line_number":65,"context_line":"    global _PROFILER_INITIALIZED"},{"line_number":66,"context_line":"    # TODO(akamyshnikova) this code should be in oslo.db"},{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"},{"line_number":68,"context_line":"            cfg.CONF.profiler.trace_sqlalchemy:"},{"line_number":69,"context_line":"        _PROFILER_INITIALIZED \u003d True"},{"line_number":70,"context_line":"        osprofiler.sqlalchemy.add_tracing("}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_4ef47385","line":67,"range":{"start_line":67,"start_character":67,"end_line":67,"end_character":68},"updated":"2016-06-23 05:35:31.000000000","message":"nit: wrap in parentheses","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ed9969c91e41d606c970d8155b9db6c6b5111dbf","unresolved":false,"context_lines":[{"line_number":64,"context_line":"def set_profiler():"},{"line_number":65,"context_line":"    global _PROFILER_INITIALIZED"},{"line_number":66,"context_line":"    # TODO(akamyshnikova) this code should be in oslo.db"},{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"},{"line_number":68,"context_line":"            cfg.CONF.profiler.trace_sqlalchemy:"},{"line_number":69,"context_line":"        _PROFILER_INITIALIZED \u003d True"},{"line_number":70,"context_line":"        osprofiler.sqlalchemy.add_tracing("}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_ace94de8","line":67,"range":{"start_line":67,"start_character":67,"end_line":67,"end_character":68},"in_reply_to":"3aaa91ec_4ef47385","updated":"2016-06-24 12:10:19.000000000","message":"Done","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"bb331ed6dc844f44c60ca94f4b3c785b438718aa","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"},{"line_number":68,"context_line":"            cfg.CONF.profiler.trace_sqlalchemy:"},{"line_number":69,"context_line":"        _PROFILER_INITIALIZED \u003d True"},{"line_number":70,"context_line":"        osprofiler.sqlalchemy.add_tracing("},{"line_number":71,"context_line":"            sqlalchemy, context_manager.get_legacy_facade().get_engine(), \"db\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_ac982dc1","line":70,"range":{"start_line":70,"start_character":30,"end_line":70,"end_character":41},"updated":"2016-06-24 12:05:04.000000000","message":"Is this covered in the UTs somewhere? It seems we should have a UT that verified tracing is setup in a global (1-time-only) fashion.","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"c005aa84bded3d24d2e4b8bd0b8674544104d044","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"},{"line_number":68,"context_line":"            cfg.CONF.profiler.trace_sqlalchemy:"},{"line_number":69,"context_line":"        _PROFILER_INITIALIZED \u003d True"},{"line_number":70,"context_line":"        osprofiler.sqlalchemy.add_tracing("},{"line_number":71,"context_line":"            sqlalchemy, context_manager.get_legacy_facade().get_engine(), \"db\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_bf929f9d","line":70,"range":{"start_line":70,"start_character":30,"end_line":70,"end_character":41},"in_reply_to":"3aaa91ec_057bcf7b","updated":"2016-06-27 23:05:48.000000000","message":"Yes, I think boden has identified some issues with testing for osprofiler, but we should address them separately from this patch. The \"correct process\" here is a bit fuzzy.","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"7e8d48a03c00c1bbe63ab4d2ca5732f1e9b50267","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"},{"line_number":68,"context_line":"            cfg.CONF.profiler.trace_sqlalchemy:"},{"line_number":69,"context_line":"        _PROFILER_INITIALIZED \u003d True"},{"line_number":70,"context_line":"        osprofiler.sqlalchemy.add_tracing("},{"line_number":71,"context_line":"            sqlalchemy, context_manager.get_legacy_facade().get_engine(), \"db\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_c8011eb1","line":70,"range":{"start_line":70,"start_character":30,"end_line":70,"end_character":41},"in_reply_to":"3aaa91ec_32f64ff9","updated":"2016-06-24 14:18:56.000000000","message":"So because the original snuck in without UTs we can defer them to a separate patch here?\n\nNot trying to be a stickler, rather I\u0027m trying to understand for my own knowledge/benefit.","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"3cc92ecda5874a9c93b0bbf52b422fe432661fa8","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"},{"line_number":68,"context_line":"            cfg.CONF.profiler.trace_sqlalchemy:"},{"line_number":69,"context_line":"        _PROFILER_INITIALIZED \u003d True"},{"line_number":70,"context_line":"        osprofiler.sqlalchemy.add_tracing("},{"line_number":71,"context_line":"            sqlalchemy, context_manager.get_legacy_facade().get_engine(), \"db\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_a715e640","line":70,"range":{"start_line":70,"start_character":30,"end_line":70,"end_character":41},"in_reply_to":"3aaa91ec_6c24855f","updated":"2016-06-24 12:21:27.000000000","message":"Sorry I\u0027m not following - why is adding UTs that test code in this patch out of scope?","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"eb16c1114f8fd00b39a2432b2ca72879bb93cbba","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"},{"line_number":68,"context_line":"            cfg.CONF.profiler.trace_sqlalchemy:"},{"line_number":69,"context_line":"        _PROFILER_INITIALIZED \u003d True"},{"line_number":70,"context_line":"        osprofiler.sqlalchemy.add_tracing("},{"line_number":71,"context_line":"            sqlalchemy, context_manager.get_legacy_facade().get_engine(), \"db\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_fe193089","line":70,"range":{"start_line":70,"start_character":30,"end_line":70,"end_character":41},"in_reply_to":"3aaa91ec_882716c9","updated":"2016-06-24 15:00:21.000000000","message":"As Ann says, we are trying to keep this patch focused on the enginefacade BP. It is somewhat common practice to keep patches in focus and submit separate patches for issues discovered if they are unrelated.\n\nAs for OSProfiler support having \"snuck in without UTs\", I am not sure that is a fair critique. While I know very little about OSProfiler, its name suggests that it\u0027s something used for diagnostics. Its test coverage may be sufficient for its purpose, for all I know.\n\nThanks for keeping an eye out on test coverage though. Don\u0027t let my push-back discourage you, I am only trying to clarify this particular case.","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"ceb4bf7f39d46306e25f2116246679db6031a5ac","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"},{"line_number":68,"context_line":"            cfg.CONF.profiler.trace_sqlalchemy:"},{"line_number":69,"context_line":"        _PROFILER_INITIALIZED \u003d True"},{"line_number":70,"context_line":"        osprofiler.sqlalchemy.add_tracing("},{"line_number":71,"context_line":"            sqlalchemy, context_manager.get_legacy_facade().get_engine(), \"db\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_32f64ff9","line":70,"range":{"start_line":70,"start_character":30,"end_line":70,"end_character":41},"in_reply_to":"3aaa91ec_a715e640","updated":"2016-06-24 13:43:34.000000000","message":"It was basically moved here from line 83 in the old version of the file. I think it would be better to get in touch with the owner of https://review.openstack.org/273951 to see of this move requires extra testing, and if so that should be done in a follow-up patch.","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"9fd118bff6dcf8dc7b19aa39ac4e5aab5579e058","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"},{"line_number":68,"context_line":"            cfg.CONF.profiler.trace_sqlalchemy:"},{"line_number":69,"context_line":"        _PROFILER_INITIALIZED \u003d True"},{"line_number":70,"context_line":"        osprofiler.sqlalchemy.add_tracing("},{"line_number":71,"context_line":"            sqlalchemy, context_manager.get_legacy_facade().get_engine(), \"db\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_057bcf7b","line":70,"range":{"start_line":70,"start_character":30,"end_line":70,"end_character":41},"in_reply_to":"3aaa91ec_a8148b4c","updated":"2016-06-27 10:52:15.000000000","message":"Honesly, I think setting osprofiler should be done in oslo.db directly and add TODO comment about it. So, in my opinion the right approach is to move setting it there and create unit tests, etc in oslo.db.","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ed9969c91e41d606c970d8155b9db6c6b5111dbf","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"},{"line_number":68,"context_line":"            cfg.CONF.profiler.trace_sqlalchemy:"},{"line_number":69,"context_line":"        _PROFILER_INITIALIZED \u003d True"},{"line_number":70,"context_line":"        osprofiler.sqlalchemy.add_tracing("},{"line_number":71,"context_line":"            sqlalchemy, context_manager.get_legacy_facade().get_engine(), \"db\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_6c24855f","line":70,"range":{"start_line":70,"start_character":30,"end_line":70,"end_character":41},"in_reply_to":"3aaa91ec_ac982dc1","updated":"2016-06-24 12:10:19.000000000","message":"This is definitely out of scope of current patch, feel free to check and add unit tests if it is needed :)","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ee54cc22dc8b04e6287bfbf0c32799ed8afc5340","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"},{"line_number":68,"context_line":"            cfg.CONF.profiler.trace_sqlalchemy:"},{"line_number":69,"context_line":"        _PROFILER_INITIALIZED \u003d True"},{"line_number":70,"context_line":"        osprofiler.sqlalchemy.add_tracing("},{"line_number":71,"context_line":"            sqlalchemy, context_manager.get_legacy_facade().get_engine(), \"db\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_882716c9","line":70,"range":{"start_line":70,"start_character":30,"end_line":70,"end_character":41},"in_reply_to":"3aaa91ec_c8011eb1","updated":"2016-06-24 14:29:40.000000000","message":"Each change has its own purpose this current change in related to https://blueprints.launchpad.net/neutron/+spec/enginefacade-switch. This bp will affect a lot of things, but each change in the chain should do exactly what it is suppose to do. Otherwise:\n1. This bp will never be implemented\n2. It will be unclear what steps were implemented.","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"f52be380872dba5db92dab5f317d936bc22d32d0","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    if not _PROFILER_INITIALIZED and cfg.CONF.profiler.enabled and \\"},{"line_number":68,"context_line":"            cfg.CONF.profiler.trace_sqlalchemy:"},{"line_number":69,"context_line":"        _PROFILER_INITIALIZED \u003d True"},{"line_number":70,"context_line":"        osprofiler.sqlalchemy.add_tracing("},{"line_number":71,"context_line":"            sqlalchemy, context_manager.get_legacy_facade().get_engine(), \"db\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3aaa91ec_a8148b4c","line":70,"range":{"start_line":70,"start_character":30,"end_line":70,"end_character":41},"in_reply_to":"3aaa91ec_fe193089","updated":"2016-06-24 16:41:07.000000000","message":"I\u0027m just trying to make sure I understand the \"process\" is all, and no worries, I don\u0027t discourage easily : )\n\n\nJust so we are on the same page: all I was asking here is that we have UT that validates we do in fact call osprofiler.sqlalchemy.add_tracing() when the if condition is true...\n\n\nI\u0027m not suggesting to test tracing by any means; just our setup \"add_tracing()\" call to it.","commit_id":"1a84e3e9249402fb76ff30348bdfe815bc1e1925"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"cf15cb8089d50f293d0e19492cddbc60c8fcc3a0","unresolved":false,"context_lines":[{"line_number":99,"context_line":""},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"#TODO(akamyshnikova): when all places in the code, which use sessions/"},{"line_number":102,"context_line":"# connections will be updated, this won\u0027t be needed"},{"line_number":103,"context_line":"def get_engine():"},{"line_number":104,"context_line":"    \"\"\"Helper method to grab engine.\"\"\""},{"line_number":105,"context_line":"    _set_profiler()"}],"source_content_type":"text/x-python","patch_set":12,"id":"1aa78d24_6b711844","line":102,"updated":"2016-07-06 15:02:07.000000000","message":"At what point can we mark get_engine() and get_session() here as deprecated?","commit_id":"98b6564b5abf84ccff3b8bf1d2bf36220269cd73"}]}
