)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"e9c1720f7633f3c4feeca53f3ea8246c5e9f5e04","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Support loading of service plugins via entrypoints"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"servce_plugins are documented to use plan names that"},{"line_number":10,"context_line":"are mapped via entrypoints to class names. However"},{"line_number":11,"context_line":"neutron-db-manage was not handling this case."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"AAAAWH%2F9tk8%3D","line":9,"updated":"2014-04-02 16:22:39.000000000","message":"plan \u003e plain","commit_id":"68c6072db736d1929c817241ad906116d521e4c1"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"fd3be7d32ab429a4e74547b151008733ff71e19f","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Support loading of service plugins via entrypoints"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"servce_plugins are documented to use plain names that"},{"line_number":10,"context_line":"are mapped via entrypoints to class names. However"},{"line_number":11,"context_line":"neutron-db-manage was not handling this case."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7adec928_9bccfdbc","line":9,"updated":"2014-05-20 04:51:28.000000000","message":"*service_plugins","commit_id":"a476779b46ef558d62185a8e52be8945cd56e522"}],"neutron/db/migration/alembic_migrations/env.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"32b6a66045094ba7f34d448499d1a0e823707961","unresolved":false,"context_lines":[{"line_number":44,"context_line":"for plugin in active_plugins:"},{"line_number":45,"context_line":"    try:"},{"line_number":46,"context_line":"        # Try to resolve plugin by name"},{"line_number":47,"context_line":"        driver.DriverManager(\u0027neutron.service_plugins\u0027, plugin)"},{"line_number":48,"context_line":"    except RuntimeError:"},{"line_number":49,"context_line":"        # fallback to class name"},{"line_number":50,"context_line":"        importutils.import_class(plugin)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAW3%2F%2F6TI%3D","line":47,"updated":"2014-04-09 14:55:35.000000000","message":"neutron core plugin is also configured with a plain name and it has another namespace in setup.cfg - neutron.core_plugins. I think we need to handle it here as well","commit_id":"68c6072db736d1929c817241ad906116d521e4c1"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"1e36899812214c9d2cb5cbbcc80c33f78d5e659e","unresolved":false,"context_lines":[{"line_number":44,"context_line":"for plugin in active_plugins:"},{"line_number":45,"context_line":"    try:"},{"line_number":46,"context_line":"        # Try to resolve plugin by name"},{"line_number":47,"context_line":"        driver.DriverManager(\u0027neutron.service_plugins\u0027, plugin)"},{"line_number":48,"context_line":"    except RuntimeError:"},{"line_number":49,"context_line":"        # fallback to class name"},{"line_number":50,"context_line":"        importutils.import_class(plugin)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAW3%2F%2F6BQ%3D","line":47,"in_reply_to":"AAAAW3%2F%2F6TI%3D","updated":"2014-04-09 15:18:44.000000000","message":"Seems it is handled in https://review.openstack.org/#/c/81221/6","commit_id":"68c6072db736d1929c817241ad906116d521e4c1"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"fd3be7d32ab429a4e74547b151008733ff71e19f","unresolved":false,"context_lines":[{"line_number":40,"context_line":"active_plugins +\u003d neutron_config.service_plugins"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"for ns in (\u0027neutron.core_plugins\u0027, \u0027neutron.service_plugins\u0027):"},{"line_number":43,"context_line":"    for plugin in active_plugins:"},{"line_number":44,"context_line":"        try:"},{"line_number":45,"context_line":"            # Try to resolve plugin by name"},{"line_number":46,"context_line":"            driver.DriverManager(ns, plugin)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7adec928_1bc2ad52","line":43,"updated":"2014-05-20 04:51:28.000000000","message":"This looks a bit funny to me.  Is this correct to try loading all four combinations of ns and plugin?","commit_id":"a476779b46ef558d62185a8e52be8945cd56e522"},{"author":{"_account_id":6593,"name":"Dirk Mueller","email":"dirk@dmllr.de","username":"dmllr"},"change_message_id":"8450ef5f1260ff0cf4638b8ff315bbd424ddc751","unresolved":false,"context_lines":[{"line_number":40,"context_line":"active_plugins +\u003d neutron_config.service_plugins"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"for ns in (\u0027neutron.core_plugins\u0027, \u0027neutron.service_plugins\u0027):"},{"line_number":43,"context_line":"    for plugin in active_plugins:"},{"line_number":44,"context_line":"        try:"},{"line_number":45,"context_line":"            # Try to resolve plugin by name"},{"line_number":46,"context_line":"            driver.DriverManager(ns, plugin)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_8fee4e8a","line":43,"in_reply_to":"7adec928_1bc2ad52","updated":"2014-05-30 14:29:44.000000000","message":"Done","commit_id":"a476779b46ef558d62185a8e52be8945cd56e522"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"fd3be7d32ab429a4e74547b151008733ff71e19f","unresolved":false,"context_lines":[{"line_number":46,"context_line":"            driver.DriverManager(ns, plugin)"},{"line_number":47,"context_line":"        except RuntimeError:"},{"line_number":48,"context_line":"            # fallback to class name"},{"line_number":49,"context_line":"            importutils.import_class(plugin)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"# set the target for \u0027autogenerate\u0027 support"},{"line_number":52,"context_line":"target_metadata \u003d model_base.BASEV2.metadata"}],"source_content_type":"text/x-python","patch_set":3,"id":"7adec928_3ba4c9b8","line":49,"updated":"2014-05-20 04:51:28.000000000","message":"This is removed in https://review.openstack.org/#/c/81221.  How does this patch relate to that one?","commit_id":"a476779b46ef558d62185a8e52be8945cd56e522"},{"author":{"_account_id":6593,"name":"Dirk Mueller","email":"dirk@dmllr.de","username":"dmllr"},"change_message_id":"8450ef5f1260ff0cf4638b8ff315bbd424ddc751","unresolved":false,"context_lines":[{"line_number":46,"context_line":"            driver.DriverManager(ns, plugin)"},{"line_number":47,"context_line":"        except RuntimeError:"},{"line_number":48,"context_line":"            # fallback to class name"},{"line_number":49,"context_line":"            importutils.import_class(plugin)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"# set the target for \u0027autogenerate\u0027 support"},{"line_number":52,"context_line":"target_metadata \u003d model_base.BASEV2.metadata"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_afc14ae6","line":49,"in_reply_to":"7adec928_3ba4c9b8","updated":"2014-05-30 14:29:44.000000000","message":"its more or less doing the same thing. My review is only 6000 Reviews earlier than the other one, so I didn\u0027t know about it yet.","commit_id":"a476779b46ef558d62185a8e52be8945cd56e522"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"91d109c4bcd058202c0c05031580fbd38da4ff11","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    try:"},{"line_number":44,"context_line":"        ns \u003d \u0027neutron.service_plugins\u0027"},{"line_number":45,"context_line":"        if plugin \u003d\u003d neutron_config.core_plugin:"},{"line_number":46,"context_line":"            ns \u003d \u0027neutron.core_plugins\u0027"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        # Try to resolve plugin by name"},{"line_number":49,"context_line":"        driver.DriverManager(ns, plugin)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_80129db2","line":46,"updated":"2014-05-30 15:25:20.000000000","message":"Lines 44-46 should not be under the try.","commit_id":"7029bea528c345112d4ba192a5e0c8820aa67fb4"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"72230616591cbf8e4ea1fa00e52356e6975f9c38","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    try:"},{"line_number":44,"context_line":"        ns \u003d \u0027neutron.service_plugins\u0027"},{"line_number":45,"context_line":"        if plugin \u003d\u003d neutron_config.core_plugin:"},{"line_number":46,"context_line":"            ns \u003d \u0027neutron.core_plugins\u0027"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        # Try to resolve plugin by name"},{"line_number":49,"context_line":"        driver.DriverManager(ns, plugin)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_4eb6a33f","line":46,"in_reply_to":"1ae5cdf2_80129db2","updated":"2014-06-11 04:11:34.000000000","message":"+1","commit_id":"7029bea528c345112d4ba192a5e0c8820aa67fb4"},{"author":{"_account_id":7170,"name":"Zang MingJie","email":"zealot0630@gmail.com","username":"zealot"},"change_message_id":"e6793a83e3d5b0f60e2954142adaa8a5bc5105c4","unresolved":false,"context_lines":[{"line_number":46,"context_line":"            ns \u003d \u0027neutron.core_plugins\u0027"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        # Try to resolve plugin by name"},{"line_number":49,"context_line":"        driver.DriverManager(ns, plugin)"},{"line_number":50,"context_line":"    except RuntimeError:"},{"line_number":51,"context_line":"        # fallback to class name"},{"line_number":52,"context_line":"        importutils.import_class(plugin)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_f909ea84","line":49,"updated":"2014-06-11 12:41:21.000000000","message":"loading the plugin doesn\u0027t fix the problem, `active_plugins` must be updated to contain full class names instead of the short aliases","commit_id":"7029bea528c345112d4ba192a5e0c8820aa67fb4"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"17a6dfaef969e7156695ca2482ecab2d29e36881","unresolved":false,"context_lines":[{"line_number":38,"context_line":"active_plugins \u003d []"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"for plugin in [neutron_config.core_plugin] + neutron_config.service_plugins:"},{"line_number":41,"context_line":"    ns \u003d \u0027neutron.service_plugins\u0027"},{"line_number":42,"context_line":"    if plugin \u003d\u003d neutron_config.core_plugin:"},{"line_number":43,"context_line":"        ns \u003d \u0027neutron.core_plugins\u0027"},{"line_number":44,"context_line":"    plugin_path \u003d None"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_62c65018","line":41,"updated":"2014-06-17 12:07:41.000000000","message":"Nit: IMO it would read easier if you change \u0027ns\u0027 to \u0027namespace\u0027.","commit_id":"e46d739b27e1c73371e8f173ddb1feb832dd18be"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"17a6dfaef969e7156695ca2482ecab2d29e36881","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    plugin_path \u003d None"},{"line_number":45,"context_line":"    try:"},{"line_number":46,"context_line":"        # Try to resolve plugin by name"},{"line_number":47,"context_line":"        mgr \u003d driver.DriverManager(ns, plugin)"},{"line_number":48,"context_line":"        plugin_class \u003d mgr.driver"},{"line_number":49,"context_line":"        plugin_path \u003d \"%s.%s\" % (plugin_class.__module__, plugin_class.__name__)"},{"line_number":50,"context_line":"    except RuntimeError:"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_62bbb075","line":47,"updated":"2014-06-17 12:07:41.000000000","message":"Nit: This is the statement that can raise a RunTimeError. Lines 48+49 could go in an else clause.","commit_id":"e46d739b27e1c73371e8f173ddb1feb832dd18be"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"17a6dfaef969e7156695ca2482ecab2d29e36881","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        # Try to resolve plugin by name"},{"line_number":47,"context_line":"        mgr \u003d driver.DriverManager(ns, plugin)"},{"line_number":48,"context_line":"        plugin_class \u003d mgr.driver"},{"line_number":49,"context_line":"        plugin_path \u003d \"%s.%s\" % (plugin_class.__module__, plugin_class.__name__)"},{"line_number":50,"context_line":"    except RuntimeError:"},{"line_number":51,"context_line":"        # fallback to class name"},{"line_number":52,"context_line":"        importutils.import_class(plugin)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_c27e446a","line":49,"updated":"2014-06-17 12:07:41.000000000","message":"pep8 is complaining this line is one character too long.","commit_id":"e46d739b27e1c73371e8f173ddb1feb832dd18be"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"17a6dfaef969e7156695ca2482ecab2d29e36881","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        importutils.import_class(plugin)"},{"line_number":53,"context_line":"        plugin_path \u003d plugin"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    if plugin_path:"},{"line_number":56,"context_line":"        active_plugins.append(plugin_path)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"# set the target for \u0027autogenerate\u0027 support"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_e25c204f","line":55,"updated":"2014-06-17 12:07:41.000000000","message":"Under what circumstances would plugin_path be null?","commit_id":"e46d739b27e1c73371e8f173ddb1feb832dd18be"}]}
