)]}'
{"barbican/model/migration/alembic_migrations/versions/28e18a614a65_add_project_column_to_consumer_table.py":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"03c760844fd12ca0cef0f55053e8ac1d2ccdf2b9","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"def upgrade():"},{"line_number":18,"context_line":"    op.add_column(\u0027container_consumer_metadata\u0027, sa.Column(\u0027project_id\u0027, sa.String(length\u003d36), nullable\u003dTrue))"},{"line_number":19,"context_line":"    op.create_index(op.f(\u0027ix_container_consumer_metadata_project_id\u0027), \u0027container_consumer_metadata\u0027, [\u0027project_id\u0027], unique\u003dFalse)"},{"line_number":20,"context_line":"    op.create_foreign_key(None, \u0027container_consumer_metadata\u0027, \u0027projects\u0027, [\u0027project_id\u0027], [\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":5,"id":"da20952f_48d5f0b6","line":19,"updated":"2015-08-28 15:48:58.000000000","message":"Is \u0027ix_container_*\u0027 what you want or is there something missing there?","commit_id":"bca0f51648115ff47e5e156292cffe2462624496"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"f77f39e548589c4d2033f91396ecd45afe95e525","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"def upgrade():"},{"line_number":18,"context_line":"    op.add_column(\u0027container_consumer_metadata\u0027, sa.Column(\u0027project_id\u0027, sa.String(length\u003d36), nullable\u003dTrue))"},{"line_number":19,"context_line":"    op.create_index(op.f(\u0027ix_container_consumer_metadata_project_id\u0027), \u0027container_consumer_metadata\u0027, [\u0027project_id\u0027], unique\u003dFalse)"},{"line_number":20,"context_line":"    op.create_foreign_key(None, \u0027container_consumer_metadata\u0027, \u0027projects\u0027, [\u0027project_id\u0027], [\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":5,"id":"da20952f_b91c20c2","line":19,"in_reply_to":"da20952f_48d5f0b6","updated":"2015-08-28 16:41:19.000000000","message":"This was written by a bot, so it must be right. :-)\nBut really, consumer records are stored in the container_consumer_metadata table, and the project_id is stored in a column in that table, so that index name look OK to me: ix_ + container_consumer_metadata + project_id.","commit_id":"bca0f51648115ff47e5e156292cffe2462624496"}],"barbican/model/models.py":[{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"31b73533114d9998dc242ac0b7fd3f47ae1de4a2","unresolved":false,"context_lines":[{"line_number":745,"context_line":"    container_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027containers.id\u0027),"},{"line_number":746,"context_line":"                             index\u003dTrue, nullable\u003dFalse)"},{"line_number":747,"context_line":"    project_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027projects.id\u0027),"},{"line_number":748,"context_line":"                           index\u003dTrue, nullable\u003dFalse)"},{"line_number":749,"context_line":"    name \u003d sa.Column(sa.String(36))"},{"line_number":750,"context_line":"    URL \u003d sa.Column(sa.String(500))"},{"line_number":751,"context_line":"    data_hash \u003d sa.Column(sa.CHAR(64))"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_f60412c7","line":748,"updated":"2015-08-24 17:21:03.000000000","message":"Since this changes the model, does it need a migration script?","commit_id":"eceb929dd9146a65e0e321276fc10aedf1dde2fd"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"a54e6472c4bfd1a66be6d9fb2f6be1e91964d0a5","unresolved":false,"context_lines":[{"line_number":745,"context_line":"    container_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027containers.id\u0027),"},{"line_number":746,"context_line":"                             index\u003dTrue, nullable\u003dFalse)"},{"line_number":747,"context_line":"    project_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027projects.id\u0027),"},{"line_number":748,"context_line":"                           index\u003dTrue, nullable\u003dFalse)"},{"line_number":749,"context_line":"    name \u003d sa.Column(sa.String(36))"},{"line_number":750,"context_line":"    URL \u003d sa.Column(sa.String(500))"},{"line_number":751,"context_line":"    data_hash \u003d sa.Column(sa.CHAR(64))"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_a5117a5f","line":748,"in_reply_to":"fa1b9901_3fb9fd15","updated":"2015-08-24 19:32:07.000000000","message":"Ah okay so it works as it always start with empty database.\n\nIt may have issue where existing database is used. I use mysql locally and existing database to reuse already created secrets and containers.  \n\nI guess it fine as long as the change lands shortly thereafter. Are you expecting that patch with migration script to land within liberty-3 milestone?","commit_id":"eceb929dd9146a65e0e321276fc10aedf1dde2fd"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"6b98a144ff4278ac1d21bb9be4a6f994c7c9b62f","unresolved":false,"context_lines":[{"line_number":745,"context_line":"    container_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027containers.id\u0027),"},{"line_number":746,"context_line":"                             index\u003dTrue, nullable\u003dFalse)"},{"line_number":747,"context_line":"    project_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027projects.id\u0027),"},{"line_number":748,"context_line":"                           index\u003dTrue, nullable\u003dFalse)"},{"line_number":749,"context_line":"    name \u003d sa.Column(sa.String(36))"},{"line_number":750,"context_line":"    URL \u003d sa.Column(sa.String(500))"},{"line_number":751,"context_line":"    data_hash \u003d sa.Column(sa.CHAR(64))"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_3fb9fd15","line":748,"in_reply_to":"fa1b9901_442f4488","updated":"2015-08-24 18:27:27.000000000","message":"The code works fine, and runs in unit and functional tests in the gate.  For the gate, tests always start with an empty database and new tables with the new models are created.  For a dev environment, it\u0027s always a good idea to rm /var/lib/barbican/barbican.sqlite each time you start barbican.sh.\n\nI thought the migration scripts are only needed if you have important (real) information in the database and that database needs to be migrated to the new format.  I thought that it was typical to write the migration scripts last in a release and combine all changes for that release.\n\nIf I\u0027m wrong on this, please let me know.","commit_id":"eceb929dd9146a65e0e321276fc10aedf1dde2fd"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"64b3a9e442c1b28586bc787200fdb4abe5ed2c1a","unresolved":false,"context_lines":[{"line_number":745,"context_line":"    container_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027containers.id\u0027),"},{"line_number":746,"context_line":"                             index\u003dTrue, nullable\u003dFalse)"},{"line_number":747,"context_line":"    project_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027projects.id\u0027),"},{"line_number":748,"context_line":"                           index\u003dTrue, nullable\u003dFalse)"},{"line_number":749,"context_line":"    name \u003d sa.Column(sa.String(36))"},{"line_number":750,"context_line":"    URL \u003d sa.Column(sa.String(500))"},{"line_number":751,"context_line":"    data_hash \u003d sa.Column(sa.CHAR(64))"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_442f4488","line":748,"in_reply_to":"fa1b9901_b63a1ae6","updated":"2015-08-24 18:06:43.000000000","message":"When this patch is merged to master without migration script, will master branch work as developer box will not have necessary db changes (without migration script).\n\nSlightly puzzled how its working successfully on various gate builds without migration script. Does this mean that there is NO code executed against this column value.","commit_id":"eceb929dd9146a65e0e321276fc10aedf1dde2fd"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"a9749531dbbf391955b2cd71f2b6e74a5e787f04","unresolved":false,"context_lines":[{"line_number":745,"context_line":"    container_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027containers.id\u0027),"},{"line_number":746,"context_line":"                             index\u003dTrue, nullable\u003dFalse)"},{"line_number":747,"context_line":"    project_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027projects.id\u0027),"},{"line_number":748,"context_line":"                           index\u003dTrue, nullable\u003dFalse)"},{"line_number":749,"context_line":"    name \u003d sa.Column(sa.String(36))"},{"line_number":750,"context_line":"    URL \u003d sa.Column(sa.String(500))"},{"line_number":751,"context_line":"    data_hash \u003d sa.Column(sa.CHAR(64))"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_298822e7","line":748,"in_reply_to":"fa1b9901_f60412c7","updated":"2015-08-27 02:53:28.000000000","message":"Done","commit_id":"eceb929dd9146a65e0e321276fc10aedf1dde2fd"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"c662f40ce80b01692a6f749e070101e19d17aa4f","unresolved":false,"context_lines":[{"line_number":745,"context_line":"    container_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027containers.id\u0027),"},{"line_number":746,"context_line":"                             index\u003dTrue, nullable\u003dFalse)"},{"line_number":747,"context_line":"    project_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027projects.id\u0027),"},{"line_number":748,"context_line":"                           index\u003dTrue, nullable\u003dFalse)"},{"line_number":749,"context_line":"    name \u003d sa.Column(sa.String(36))"},{"line_number":750,"context_line":"    URL \u003d sa.Column(sa.String(500))"},{"line_number":751,"context_line":"    data_hash \u003d sa.Column(sa.CHAR(64))"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_b63a1ae6","line":748,"in_reply_to":"fa1b9901_f60412c7","updated":"2015-08-24 17:34:17.000000000","message":"Yes.  The migration script is on my to-do list in the blueprint. The script also needs to cover the addition of the project quota table.","commit_id":"eceb929dd9146a65e0e321276fc10aedf1dde2fd"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"03c760844fd12ca0cef0f55053e8ac1d2ccdf2b9","unresolved":false,"context_lines":[{"line_number":746,"context_line":"    container_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027containers.id\u0027),"},{"line_number":747,"context_line":"                             index\u003dTrue, nullable\u003dFalse)"},{"line_number":748,"context_line":"    project_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027projects.id\u0027),"},{"line_number":749,"context_line":"                           index\u003dTrue, nullable\u003dTrue)"},{"line_number":750,"context_line":"    name \u003d sa.Column(sa.String(36))"},{"line_number":751,"context_line":"    URL \u003d sa.Column(sa.String(500))"},{"line_number":752,"context_line":"    data_hash \u003d sa.Column(sa.CHAR(64))"}],"source_content_type":"text/x-python","patch_set":5,"id":"da20952f_088618b9","line":749,"updated":"2015-08-28 15:48:58.000000000","message":"Do we want this to be nullable? It seems like it should not be. Is this for preserving backwards compatibility?","commit_id":"bca0f51648115ff47e5e156292cffe2462624496"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"f77f39e548589c4d2033f91396ecd45afe95e525","unresolved":false,"context_lines":[{"line_number":746,"context_line":"    container_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027containers.id\u0027),"},{"line_number":747,"context_line":"                             index\u003dTrue, nullable\u003dFalse)"},{"line_number":748,"context_line":"    project_id \u003d sa.Column(sa.String(36), sa.ForeignKey(\u0027projects.id\u0027),"},{"line_number":749,"context_line":"                           index\u003dTrue, nullable\u003dTrue)"},{"line_number":750,"context_line":"    name \u003d sa.Column(sa.String(36))"},{"line_number":751,"context_line":"    URL \u003d sa.Column(sa.String(500))"},{"line_number":752,"context_line":"    data_hash \u003d sa.Column(sa.CHAR(64))"}],"source_content_type":"text/x-python","patch_set":5,"id":"da20952f_99aefc83","line":749,"in_reply_to":"da20952f_088618b9","updated":"2015-08-28 16:41:19.000000000","message":"You\u0027re exactly right.  Ideally it will never be null, but when migrating from an old database we can\u0027t know the correct value, so the model has to allow for null.","commit_id":"bca0f51648115ff47e5e156292cffe2462624496"}],"barbican/model/repositories.py":[{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"e8135b7797757622309d18bc55824fc3f34fcf71","unresolved":false,"context_lines":[{"line_number":509,"context_line":"        if query:"},{"line_number":510,"context_line":"            return query.count()"},{"line_number":511,"context_line":"        else:"},{"line_number":512,"context_line":"            return 0"},{"line_number":513,"context_line":""},{"line_number":514,"context_line":"    def delete_project_entities(self, project_id,"},{"line_number":515,"context_line":"                                suppress_exception\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_e5f1dc6b","line":512,"updated":"2015-08-14 14:28:04.000000000","message":"Minor: the coverage gate is complaining about this return statement. Is there a good way to force the query to None in the tests to trigger the else here?","commit_id":"d416f015559950a3d0a1668e6a9be0e93e648c56"}],"barbican/tests/model/repositories/test_repositories_secrets.py":[{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"7adbdb6e961d558cb5400ea3e88af2b51111ce60","unresolved":false,"context_lines":[{"line_number":160,"context_line":"            \"my keystone id\","},{"line_number":161,"context_line":"            session\u003dsession,"},{"line_number":162,"context_line":"            suppress_exception\u003dFalse)"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    def test_should_get_count_zero(self):"},{"line_number":165,"context_line":"        session \u003d self.repo.get_session()"},{"line_number":166,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_f863a6db","line":163,"updated":"2015-08-24 16:09:23.000000000","message":"Does this test need to be in every test_\u003cresource\u003e module? Wouldn\u0027t you just test it once. It looks like the same test to me in each testing module.","commit_id":"eceb929dd9146a65e0e321276fc10aedf1dde2fd"},{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"ae346e4f6f471449392425a89c4f1f63e03ecf77","unresolved":false,"context_lines":[{"line_number":160,"context_line":"            \"my keystone id\","},{"line_number":161,"context_line":"            session\u003dsession,"},{"line_number":162,"context_line":"            suppress_exception\u003dFalse)"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    def test_should_get_count_zero(self):"},{"line_number":165,"context_line":"        session \u003d self.repo.get_session()"},{"line_number":166,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_ce77f8d2","line":163,"in_reply_to":"fa1b9901_ee6d1c9a","updated":"2015-08-24 16:31:35.000000000","message":"Ah ok. Thanks for the clarification","commit_id":"eceb929dd9146a65e0e321276fc10aedf1dde2fd"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e4a27ea24c96f1a1bfadce2a4c1840db24111fb1","unresolved":false,"context_lines":[{"line_number":160,"context_line":"            \"my keystone id\","},{"line_number":161,"context_line":"            session\u003dsession,"},{"line_number":162,"context_line":"            suppress_exception\u003dFalse)"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    def test_should_get_count_zero(self):"},{"line_number":165,"context_line":"        session \u003d self.repo.get_session()"},{"line_number":166,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_ee6d1c9a","line":163,"in_reply_to":"fa1b9901_f863a6db","updated":"2015-08-24 16:24:17.000000000","message":"It\u0027s the same test code and the same base class method, but with method overrides in the children classes, it\u0027s exercising different code for each resource.","commit_id":"eceb929dd9146a65e0e321276fc10aedf1dde2fd"}]}
