)]}'
{"openstack_dashboard/conf/trove_policy.json":[{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"4ba0e50f516622923f19ee8ad2091643e9c6e923","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{"},{"line_number":2,"context_line":"    \"context_is_admin\":  \"role:admin\","},{"line_number":3,"context_line":"    \"admin_or_owner\":  \"is_admin:True or project_id:%(project_id)s\","},{"line_number":4,"context_line":"    \"default\": \"rule:admin_or_owner\""},{"line_number":5,"context_line":"}"}],"source_content_type":"application/json","patch_set":5,"id":"3a50d1a3_d7e5f008","line":2,"updated":"2015-07-28 18:41:09.000000000","message":"Does this file mean that only admins or owners can access the panel? If so, I don\u0027t think that should be the case.","commit_id":"bb73defdd0870072a10340ac85c12c8446a1f27b"},{"author":{"_account_id":8876,"name":"Romain Hardouin","email":"romain_hardouin@yahoo.fr","username":"romainh"},"change_message_id":"5e9dfca837f657aad08e4d4a06e3aa015185cecc","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{"},{"line_number":2,"context_line":"    \"context_is_admin\":  \"role:admin\","},{"line_number":3,"context_line":"    \"admin_or_owner\":  \"is_admin:True or project_id:%(project_id)s\","},{"line_number":4,"context_line":"    \"default\": \"rule:admin_or_owner\""},{"line_number":5,"context_line":"}"}],"source_content_type":"application/json","patch_set":5,"id":"3a50d1a3_4cde123f","line":2,"in_reply_to":"3a50d1a3_d7e5f008","updated":"2015-07-29 11:51:02.000000000","message":"No. This file is here because people prefer policies over permissions (see older patchsets). And to use policies, we need such a file. Like nova_policy.json, etc.","commit_id":"bb73defdd0870072a10340ac85c12c8446a1f27b"}],"openstack_dashboard/dashboards/project/database_datastores/tables.py":[{"author":{"_account_id":6914,"name":"Tatiana Ovchinnikova","email":"t.v.ovtchinnikova@gmail.com","username":"tmazur"},"change_message_id":"469dd77b860da214914e555ba1b24152c20c6629","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    name \u003d tables.Column(\"name\","},{"line_number":36,"context_line":"                         link\u003d\"horizon:project:database_datastores:detail\","},{"line_number":37,"context_line":"                         verbose_name\u003d_(\"Datastore Name\"))"},{"line_number":38,"context_line":"    id \u003d tables.Column(\"id\", verbose_name\u003d\"Datastore ID\")"},{"line_number":39,"context_line":"    version \u003d tables.Column(get_version_name,"},{"line_number":40,"context_line":"                            verbose_name\u003d_(\"Default Version\"))"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_4770fa3f","line":38,"updated":"2015-06-11 10:13:42.000000000","message":"Nit: name should be translatable.","commit_id":"0b800e4031aed613abd3936326df02c8f7aa5288"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"4ba0e50f516622923f19ee8ad2091643e9c6e923","unresolved":false,"context_lines":[{"line_number":22,"context_line":"def get_version_name(datastore):"},{"line_number":23,"context_line":"    try:"},{"line_number":24,"context_line":"        version_id \u003d datastore.default_version"},{"line_number":25,"context_line":"    except AttributeError:"},{"line_number":26,"context_line":"        pass"},{"line_number":27,"context_line":"    else:"},{"line_number":28,"context_line":"        for version in datastore.versions:"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_e2a737a5","line":25,"updated":"2015-07-28 18:41:09.000000000","message":"Shouldn\u0027t other errors be accounted for as well?","commit_id":"bb73defdd0870072a10340ac85c12c8446a1f27b"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"d0af3ada0e1bf6963ce9c040360f4acd6ea5848f","unresolved":false,"context_lines":[{"line_number":22,"context_line":"def get_version_name(datastore):"},{"line_number":23,"context_line":"    try:"},{"line_number":24,"context_line":"        version_id \u003d datastore.default_version"},{"line_number":25,"context_line":"    except AttributeError:"},{"line_number":26,"context_line":"        pass"},{"line_number":27,"context_line":"    else:"},{"line_number":28,"context_line":"        for version in datastore.versions:"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_24ab8176","line":25,"in_reply_to":"3a50d1a3_ac7556fa","updated":"2015-08-05 23:03:51.000000000","message":"I can\u0027t think of any and your explanation on the other comment cleared up why it\u0027s good to be specific while catching errors","commit_id":"bb73defdd0870072a10340ac85c12c8446a1f27b"},{"author":{"_account_id":8876,"name":"Romain Hardouin","email":"romain_hardouin@yahoo.fr","username":"romainh"},"change_message_id":"5e9dfca837f657aad08e4d4a06e3aa015185cecc","unresolved":false,"context_lines":[{"line_number":22,"context_line":"def get_version_name(datastore):"},{"line_number":23,"context_line":"    try:"},{"line_number":24,"context_line":"        version_id \u003d datastore.default_version"},{"line_number":25,"context_line":"    except AttributeError:"},{"line_number":26,"context_line":"        pass"},{"line_number":27,"context_line":"    else:"},{"line_number":28,"context_line":"        for version in datastore.versions:"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_ac7556fa","line":25,"in_reply_to":"3a50d1a3_e2a737a5","updated":"2015-07-29 11:51:02.000000000","message":"AttributeError is here because default_version does not always exist. What kind of exceptions are you expecting?","commit_id":"bb73defdd0870072a10340ac85c12c8446a1f27b"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"4ba0e50f516622923f19ee8ad2091643e9c6e923","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    id \u003d tables.Column(\"id\", verbose_name\u003d_(\"Version ID\"))"},{"line_number":54,"context_line":"    active \u003d tables.Column(\"active\", verbose_name\u003d_(\"Active\"),"},{"line_number":55,"context_line":"                           filters\u003d(filters.yesno, filters.capfirst),"},{"line_number":56,"context_line":"                           policy_rules\u003d((\u0027trove\u0027, \u0027context_is_admin\u0027),))"},{"line_number":57,"context_line":"    packages \u003d tables.Column(\"packages\", verbose_name\u003d_(\"Packages\"),"},{"line_number":58,"context_line":"                             policy_rules\u003d((\u0027trove\u0027, \u0027context_is_admin\u0027),))"},{"line_number":59,"context_line":"    image \u003d tables.Column(\"image\", verbose_name\u003d_(\"Image ID\"),"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_02d34305","line":56,"updated":"2015-07-28 18:41:09.000000000","message":"Can a non-admin user not access the table?","commit_id":"bb73defdd0870072a10340ac85c12c8446a1f27b"},{"author":{"_account_id":8876,"name":"Romain Hardouin","email":"romain_hardouin@yahoo.fr","username":"romainh"},"change_message_id":"5e9dfca837f657aad08e4d4a06e3aa015185cecc","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    id \u003d tables.Column(\"id\", verbose_name\u003d_(\"Version ID\"))"},{"line_number":54,"context_line":"    active \u003d tables.Column(\"active\", verbose_name\u003d_(\"Active\"),"},{"line_number":55,"context_line":"                           filters\u003d(filters.yesno, filters.capfirst),"},{"line_number":56,"context_line":"                           policy_rules\u003d((\u0027trove\u0027, \u0027context_is_admin\u0027),))"},{"line_number":57,"context_line":"    packages \u003d tables.Column(\"packages\", verbose_name\u003d_(\"Packages\"),"},{"line_number":58,"context_line":"                             policy_rules\u003d((\u0027trove\u0027, \u0027context_is_admin\u0027),))"},{"line_number":59,"context_line":"    image \u003d tables.Column(\"image\", verbose_name\u003d_(\"Image ID\"),"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_ec04be4a","line":56,"in_reply_to":"3a50d1a3_02d34305","updated":"2015-07-29 11:51:02.000000000","message":"The table, yes. The column, no. I think you should read the bp datatable-column-level-policy-checks","commit_id":"bb73defdd0870072a10340ac85c12c8446a1f27b"}],"openstack_dashboard/dashboards/project/database_datastores/tabs.py":[{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"4ba0e50f516622923f19ee8ad2091643e9c6e923","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        template_file \u003d \u0027_detail_overview_%s.html\u0027 % datastore.name"},{"line_number":35,"context_line":"        try:"},{"line_number":36,"context_line":"            template.loader.get_template(template_file)"},{"line_number":37,"context_line":"        except template.TemplateDoesNotExist:"},{"line_number":38,"context_line":"            # This datastore type does not have a template file"},{"line_number":39,"context_line":"            # Just use the base template file"},{"line_number":40,"context_line":"            template_file \u003d \u0027_detail_overview.html\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_8205137b","line":37,"updated":"2015-07-28 18:41:09.000000000","message":"Again, is it necessary to be specific to a particular error? What happens if a different error occurs?","commit_id":"bb73defdd0870072a10340ac85c12c8446a1f27b"},{"author":{"_account_id":8876,"name":"Romain Hardouin","email":"romain_hardouin@yahoo.fr","username":"romainh"},"change_message_id":"5e9dfca837f657aad08e4d4a06e3aa015185cecc","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        template_file \u003d \u0027_detail_overview_%s.html\u0027 % datastore.name"},{"line_number":35,"context_line":"        try:"},{"line_number":36,"context_line":"            template.loader.get_template(template_file)"},{"line_number":37,"context_line":"        except template.TemplateDoesNotExist:"},{"line_number":38,"context_line":"            # This datastore type does not have a template file"},{"line_number":39,"context_line":"            # Just use the base template file"},{"line_number":40,"context_line":"            template_file \u003d \u0027_detail_overview.html\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_ec0efe39","line":37,"in_reply_to":"3a50d1a3_8205137b","updated":"2015-07-29 11:51:02.000000000","message":"Catching broad exceptions is not a good practice in any languages. Because 1) you can catch or swallow errors that you shouldn\u0027t 2) other developers don\u0027t understand your intent.\nHere I want to fallback to a default template if a custom one does not exist. I don\u0027t want to catch any other kind of exceptions.","commit_id":"bb73defdd0870072a10340ac85c12c8446a1f27b"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"d0af3ada0e1bf6963ce9c040360f4acd6ea5848f","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        template_file \u003d \u0027_detail_overview_%s.html\u0027 % datastore.name"},{"line_number":35,"context_line":"        try:"},{"line_number":36,"context_line":"            template.loader.get_template(template_file)"},{"line_number":37,"context_line":"        except template.TemplateDoesNotExist:"},{"line_number":38,"context_line":"            # This datastore type does not have a template file"},{"line_number":39,"context_line":"            # Just use the base template file"},{"line_number":40,"context_line":"            template_file \u003d \u0027_detail_overview.html\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_84793531","line":37,"in_reply_to":"3a50d1a3_ec0efe39","updated":"2015-08-05 23:03:51.000000000","message":"Okay, makes sense. Thanks for the explanation!","commit_id":"bb73defdd0870072a10340ac85c12c8446a1f27b"}],"openstack_dashboard/dashboards/project/database_datastores/tests.py":[{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"e28b3f429bb3dcd17dd7190d67bd7e17443d2446","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"class DatastoresTests(test.TestCase):"},{"line_number":19,"context_line":"    pass"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_5d3ba69c","line":19,"updated":"2015-06-09 04:36:50.000000000","message":"tests?","commit_id":"0b800e4031aed613abd3936326df02c8f7aa5288"}],"openstack_dashboard/dashboards/project/database_datastores/views.py":[{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"4ba0e50f516622923f19ee8ad2091643e9c6e923","unresolved":false,"context_lines":[{"line_number":71,"context_line":"            datastore \u003d api.trove.datastore_get(self.request, datastore_id)"},{"line_number":72,"context_line":"        except Exception:"},{"line_number":73,"context_line":"            msg \u003d _(\u0027Unable to retrieve details \u0027"},{"line_number":74,"context_line":"                    \u0027for datastore: %s\u0027) % datastore_id"},{"line_number":75,"context_line":"            exceptions.handle(self.request, msg,"},{"line_number":76,"context_line":"                              redirect\u003dself.get_redirect_url())"},{"line_number":77,"context_line":"        return datastore"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_9cdf8fd5","line":74,"updated":"2015-07-28 18:41:09.000000000","message":"Missing full stop at the end of the error message","commit_id":"bb73defdd0870072a10340ac85c12c8446a1f27b"}]}
