)]}'
{"barbican/api/controllers/quotas.py":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"78e827fbba013733865e452ac7a46803713caf81","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    def on_get(self, external_project_id, **kwargs):"},{"line_number":51,"context_line":"        LOG.debug(\u0027\u003d\u003d\u003d QuotasController GET \u003d\u003d\u003d\u0027)"},{"line_number":52,"context_line":"        # make sure project exists"},{"line_number":53,"context_line":"        res.get_or_create_project(external_project_id)"},{"line_number":54,"context_line":"        resp \u003d self.quota_driver.get_quotas(external_project_id)"},{"line_number":55,"context_line":"        return resp"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_27b86f29","line":53,"updated":"2015-09-01 11:58:28.000000000","message":"Why is this being done? Why not have it like the other calls have it? First retrieve the internal project id using the external project id. And subsequently use that id for the get_quotas call?","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"728e7586d3de451de924518de8417c63fc0888be","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    def on_get(self, external_project_id, **kwargs):"},{"line_number":51,"context_line":"        LOG.debug(\u0027\u003d\u003d\u003d QuotasController GET \u003d\u003d\u003d\u0027)"},{"line_number":52,"context_line":"        # make sure project exists"},{"line_number":53,"context_line":"        res.get_or_create_project(external_project_id)"},{"line_number":54,"context_line":"        resp \u003d self.quota_driver.get_quotas(external_project_id)"},{"line_number":55,"context_line":"        return resp"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_7a6b5e1e","line":53,"in_reply_to":"da20952f_27b86f29","updated":"2015-09-01 12:21:19.000000000","message":"The other calls are done by a service admin referencing a project that may or many not be in the database, and there is no need for it to be in the database.  It may not be a valid project.\n\nFor GET /v1/quotas, the call is made by a project admin with an authenticated project ID.  We know we have a valid project and it should be in the project table.\n\nThis is consistent with GET /v1/secrets.  If that is the first REST call made for a project, it will implicitly create the project.\nIn the same way, if GET /v1/quotas is the first REST call made for a project, it will do the same with this line.","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"4ca490a082b456c13e97df929debdfff80b68f70","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    def on_get(self, external_project_id, **kwargs):"},{"line_number":51,"context_line":"        LOG.debug(\u0027\u003d\u003d\u003d QuotasController GET \u003d\u003d\u003d\u0027)"},{"line_number":52,"context_line":"        # make sure project exists"},{"line_number":53,"context_line":"        res.get_or_create_project(external_project_id)"},{"line_number":54,"context_line":"        resp \u003d self.quota_driver.get_quotas(external_project_id)"},{"line_number":55,"context_line":"        return resp"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_acf52ecc","line":53,"in_reply_to":"da20952f_51e66f45","updated":"2015-09-01 17:59:04.000000000","message":"That had crossed my mind.  I decided against it, since then we would need two driver methods (one for internal ID and one for external ID) and two repository methods (one for each).  Or, we\u0027d need methods with two parameters, and extra logic to access the information either way.\n\nSince this function is not performance critical and I\u0027m guessing will be rarely used, I opted for less code instead of faster code.\n\nThoughts?","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"fe828a407022fed723fd932be968db96dc743e15","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    def on_get(self, external_project_id, **kwargs):"},{"line_number":51,"context_line":"        LOG.debug(\u0027\u003d\u003d\u003d QuotasController GET \u003d\u003d\u003d\u0027)"},{"line_number":52,"context_line":"        # make sure project exists"},{"line_number":53,"context_line":"        res.get_or_create_project(external_project_id)"},{"line_number":54,"context_line":"        resp \u003d self.quota_driver.get_quotas(external_project_id)"},{"line_number":55,"context_line":"        return resp"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_51e66f45","line":53,"in_reply_to":"da20952f_7a6b5e1e","updated":"2015-09-01 17:34:19.000000000","message":"Actually here get_or_create returns project and its project.id can be used to get project quotas. May be if optimization is concern then additional join can be avoided.","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"fdfd10f7ce474623d8db245638fcb74bd640063b","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    def on_get(self, external_project_id, **kwargs):"},{"line_number":51,"context_line":"        LOG.debug(\u0027\u003d\u003d\u003d QuotasController GET \u003d\u003d\u003d\u0027)"},{"line_number":52,"context_line":"        # make sure project exists"},{"line_number":53,"context_line":"        res.get_or_create_project(external_project_id)"},{"line_number":54,"context_line":"        resp \u003d self.quota_driver.get_quotas(external_project_id)"},{"line_number":55,"context_line":"        return resp"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_2d5fd776","line":53,"in_reply_to":"da20952f_acf52ecc","updated":"2015-09-01 19:22:40.000000000","message":"Additional info, saved from IRC:\nGET /v1/qutoas is a project admin with an authorized product ID asking for his own project whose existence has been confirmed by Keystone.  GET /v1/project-quotas/{external_id} is a service admin asking for the configured quota information of a project with {external_id}.  if nothing has been configured for that project, he\u0027ll get a 404.  we do not want barbican to create a project based on this command.\nso in the first case, we happen to have the internal project id, so we can performance optimize by adding more code.  but, i\u0027d rather just reuse the code from the second case.  less code \u003d\u003d better.","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"}],"barbican/common/quota.py":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"2fa1d794d8a1a955df66c6c68524c1714e297aad","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        :param external_project_id: ID of project for whose values are wanted"},{"line_number":123,"context_line":"        :return: the values"},{"line_number":124,"context_line":"        \"\"\""},{"line_number":125,"context_line":"        session \u003d self.repo.get_session()"},{"line_number":126,"context_line":"        try:"},{"line_number":127,"context_line":"            retrieved_project_quotas \u003d self.repo.get_by_external_project_id("},{"line_number":128,"context_line":"                external_project_id, session\u003dsession)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_46cd9883","line":125,"updated":"2015-08-31 14:43:28.000000000","message":"The methods are not consistent with the sessions. The set method above creates a session, uses it, and then commits. This method does not commit the session. Some of the other methods also do not close the session.\n\nI am not familiar with sqlalchemy, but I would expect to see something like:\n\nsession \u003d None\ntry:\n    session \u003d self.repo.get_session()\n    // do business logic\n    session.commit()\nexcept:\n    // do whatever\n    // session.rollback()\nfinally:\n    if session !\u003d None:\n        session.close()\n\nNot all of this may make sense. Like I said I\u0027m not as familiar with our db library, but at the very least I think they should be consistent with committing.","commit_id":"4aa5e87594a2d0e542ebaf0a701d0a4b29a611fb"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e2d55b51c5906ff28fd6eb729a293c6d694d3a6e","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        :param external_project_id: ID of project for whose values are wanted"},{"line_number":123,"context_line":"        :return: the values"},{"line_number":124,"context_line":"        \"\"\""},{"line_number":125,"context_line":"        session \u003d self.repo.get_session()"},{"line_number":126,"context_line":"        try:"},{"line_number":127,"context_line":"            retrieved_project_quotas \u003d self.repo.get_by_external_project_id("},{"line_number":128,"context_line":"                external_project_id, session\u003dsession)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_f97561ca","line":125,"in_reply_to":"da20952f_46cd9883","updated":"2015-08-31 21:10:57.000000000","message":"Looking at the other controllers, it does look like I was using sessions wrong.  The session logic should all be in the repositories.py file. I removed all use of sessions from this file, and made sure all session usage for project quotas in repositories.py is consistent with all other repos.","commit_id":"4aa5e87594a2d0e542ebaf0a701d0a4b29a611fb"}],"barbican/model/migration/alembic_migrations/versions/46b98cde536_add_project_quotas_table.py":[{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"324278e08382314e4146e00d7f44cbeb86fd8d60","unresolved":false,"context_lines":[{"line_number":17,"context_line":"def upgrade():"},{"line_number":18,"context_line":"    ctx \u003d op.get_context()"},{"line_number":19,"context_line":"    con \u003d op.get_bind()"},{"line_number":20,"context_line":"    table_exists \u003d ctx.dialect.has_table(con.engine, \u0027order_barbican_metadata\u0027)"},{"line_number":21,"context_line":"    if not table_exists:"},{"line_number":22,"context_line":"        op.create_table("},{"line_number":23,"context_line":"            \u0027project_quotas\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_ad6c55d1","line":20,"updated":"2015-09-01 15:36:58.000000000","message":"Why does the script only look for order_barbican_metadata and not the other dependent tables as well?","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"4ca490a082b456c13e97df929debdfff80b68f70","unresolved":false,"context_lines":[{"line_number":17,"context_line":"def upgrade():"},{"line_number":18,"context_line":"    ctx \u003d op.get_context()"},{"line_number":19,"context_line":"    con \u003d op.get_bind()"},{"line_number":20,"context_line":"    table_exists \u003d ctx.dialect.has_table(con.engine, \u0027order_barbican_metadata\u0027)"},{"line_number":21,"context_line":"    if not table_exists:"},{"line_number":22,"context_line":"        op.create_table("},{"line_number":23,"context_line":"            \u0027project_quotas\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_0cd21a35","line":20,"in_reply_to":"da20952f_715e1314","updated":"2015-09-01 17:59:04.000000000","message":"Done","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"4ca490a082b456c13e97df929debdfff80b68f70","unresolved":false,"context_lines":[{"line_number":17,"context_line":"def upgrade():"},{"line_number":18,"context_line":"    ctx \u003d op.get_context()"},{"line_number":19,"context_line":"    con \u003d op.get_bind()"},{"line_number":20,"context_line":"    table_exists \u003d ctx.dialect.has_table(con.engine, \u0027order_barbican_metadata\u0027)"},{"line_number":21,"context_line":"    if not table_exists:"},{"line_number":22,"context_line":"        op.create_table("},{"line_number":23,"context_line":"            \u0027project_quotas\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_4c19f221","line":20,"in_reply_to":"da20952f_ad6c55d1","updated":"2015-09-01 17:59:04.000000000","message":"Done","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"fe828a407022fed723fd932be968db96dc743e15","unresolved":false,"context_lines":[{"line_number":17,"context_line":"def upgrade():"},{"line_number":18,"context_line":"    ctx \u003d op.get_context()"},{"line_number":19,"context_line":"    con \u003d op.get_bind()"},{"line_number":20,"context_line":"    table_exists \u003d ctx.dialect.has_table(con.engine, \u0027order_barbican_metadata\u0027)"},{"line_number":21,"context_line":"    if not table_exists:"},{"line_number":22,"context_line":"        op.create_table("},{"line_number":23,"context_line":"            \u0027project_quotas\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_715e1314","line":20,"in_reply_to":"da20952f_ad6c55d1","updated":"2015-09-01 17:34:19.000000000","message":"Looks like table exists check needs to use \u0027project_quotas\u0027 table name instead.","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"}],"barbican/model/models.py":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"fc287aba517b45cccafc29f37dc0da8e66d49c2f","unresolved":false,"context_lines":[{"line_number":1263,"context_line":"    external_project_id \u003d sa.Column("},{"line_number":1264,"context_line":"        sa.String(255),"},{"line_number":1265,"context_line":"        index\u003dTrue,"},{"line_number":1266,"context_line":"        unique\u003dTrue,"},{"line_number":1267,"context_line":"        nullable\u003dFalse)"},{"line_number":1268,"context_line":"    secrets \u003d sa.Column(sa.Integer, nullable\u003dTrue)"},{"line_number":1269,"context_line":"    orders \u003d sa.Column(sa.Integer, nullable\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"da20952f_03c7db45","line":1266,"updated":"2015-08-28 15:55:56.000000000","message":"I do not understand why external_project_id is needed. Having a column for both is likely to lead to inconsistencies. I think the external_project_id should be removed and only use the project_id. The project_id is a FK to projects table that can reveal the external_project_id.\n\nIt seems like this should be possible because the controller code creates a project from external project ID if one is not already present in the database.\n\nCan you please comment on this?","commit_id":"0e86bb0bac9aaa492d6fd3fa2b7f5357f66a9662"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"f746418189b06a29471a062dab47fc8bd925a0a6","unresolved":false,"context_lines":[{"line_number":1263,"context_line":"    external_project_id \u003d sa.Column("},{"line_number":1264,"context_line":"        sa.String(255),"},{"line_number":1265,"context_line":"        index\u003dTrue,"},{"line_number":1266,"context_line":"        unique\u003dTrue,"},{"line_number":1267,"context_line":"        nullable\u003dFalse)"},{"line_number":1268,"context_line":"    secrets \u003d sa.Column(sa.Integer, nullable\u003dTrue)"},{"line_number":1269,"context_line":"    orders \u003d sa.Column(sa.Integer, nullable\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"da20952f_09105958","line":1266,"in_reply_to":"da20952f_03c7db45","updated":"2015-08-28 17:08:51.000000000","message":"+1. I will think that only project table needs to be aware of external project_id, other tables can store barbican generated id on their side with foreign key constraint. Whenever there is need to look for entries based on  keystone project_id, one way could be to use table join with project using foreign key reference.","commit_id":"0e86bb0bac9aaa492d6fd3fa2b7f5357f66a9662"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"c997e79d04f18c85db9fd031eb3194286e2ab455","unresolved":false,"context_lines":[{"line_number":1263,"context_line":"    external_project_id \u003d sa.Column("},{"line_number":1264,"context_line":"        sa.String(255),"},{"line_number":1265,"context_line":"        index\u003dTrue,"},{"line_number":1266,"context_line":"        unique\u003dTrue,"},{"line_number":1267,"context_line":"        nullable\u003dFalse)"},{"line_number":1268,"context_line":"    secrets \u003d sa.Column(sa.Integer, nullable\u003dTrue)"},{"line_number":1269,"context_line":"    orders \u003d sa.Column(sa.Integer, nullable\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"da20952f_3d5b17f8","line":1266,"in_reply_to":"da20952f_09105958","updated":"2015-08-28 18:22:45.000000000","message":"+1 to the comments above.","commit_id":"0e86bb0bac9aaa492d6fd3fa2b7f5357f66a9662"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e98679b7c2a1db4f6a7e61dfda0d38ea754fc082","unresolved":false,"context_lines":[{"line_number":1263,"context_line":"    external_project_id \u003d sa.Column("},{"line_number":1264,"context_line":"        sa.String(255),"},{"line_number":1265,"context_line":"        index\u003dTrue,"},{"line_number":1266,"context_line":"        unique\u003dTrue,"},{"line_number":1267,"context_line":"        nullable\u003dFalse)"},{"line_number":1268,"context_line":"    secrets \u003d sa.Column(sa.Integer, nullable\u003dTrue)"},{"line_number":1269,"context_line":"    orders \u003d sa.Column(sa.Integer, nullable\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"da20952f_78d75d4b","line":1266,"in_reply_to":"da20952f_3d5b17f8","updated":"2015-08-28 18:43:22.000000000","message":"+1","commit_id":"0e86bb0bac9aaa492d6fd3fa2b7f5357f66a9662"}],"barbican/model/repositories.py":[{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"fe828a407022fed723fd932be968db96dc743e15","unresolved":false,"context_lines":[{"line_number":1914,"context_line":"            entity.save(session)"},{"line_number":1915,"context_line":""},{"line_number":1916,"context_line":"    def get_by_external_project_id(self, external_project_id,"},{"line_number":1917,"context_line":"                                   suppress_exception\u003dFalse, session\u003dNone):"},{"line_number":1918,"context_line":"        \"\"\"Return configured Project Quotas for a project by project_id."},{"line_number":1919,"context_line":""},{"line_number":1920,"context_line":"        :param external_project_id: external ID of project to get quotas for"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_313bbb9e","line":1917,"updated":"2015-09-01 17:34:19.000000000","message":"May be has support for project_id parameter as well.","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"4ca490a082b456c13e97df929debdfff80b68f70","unresolved":false,"context_lines":[{"line_number":1914,"context_line":"            entity.save(session)"},{"line_number":1915,"context_line":""},{"line_number":1916,"context_line":"    def get_by_external_project_id(self, external_project_id,"},{"line_number":1917,"context_line":"                                   suppress_exception\u003dFalse, session\u003dNone):"},{"line_number":1918,"context_line":"        \"\"\"Return configured Project Quotas for a project by project_id."},{"line_number":1919,"context_line":""},{"line_number":1920,"context_line":"        :param external_project_id: external ID of project to get quotas for"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_2c8cbe34","line":1917,"in_reply_to":"da20952f_313bbb9e","updated":"2015-09-01 17:59:04.000000000","message":"I don\u0027t think the performance improvement in this case is worth the code bloat.  But, I can be convinced.","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"78e827fbba013733865e452ac7a46803713caf81","unresolved":false,"context_lines":[{"line_number":1950,"context_line":"        session \u003d self.get_session(session)"},{"line_number":1951,"context_line":"        query \u003d session.query(models.ProjectQuotas)"},{"line_number":1952,"context_line":"        query \u003d query.join(models.Project, models.ProjectQuotas.project)"},{"line_number":1953,"context_line":"        query \u003d query.filter(models.Project.external_id \u003d\u003d external_project_id)"},{"line_number":1954,"context_line":"        try:"},{"line_number":1955,"context_line":"            entity \u003d query.one()"},{"line_number":1956,"context_line":"        except sa_orm.exc.NoResultFound:"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_c75973fe","line":1953,"updated":"2015-09-01 11:58:28.000000000","message":"I\u0027m not very keen on using the externl project ids since we will end up doing joins for each time we want to access the quotas. Why was this approach taken?","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"728e7586d3de451de924518de8417c63fc0888be","unresolved":false,"context_lines":[{"line_number":1950,"context_line":"        session \u003d self.get_session(session)"},{"line_number":1951,"context_line":"        query \u003d session.query(models.ProjectQuotas)"},{"line_number":1952,"context_line":"        query \u003d query.join(models.Project, models.ProjectQuotas.project)"},{"line_number":1953,"context_line":"        query \u003d query.filter(models.Project.external_id \u003d\u003d external_project_id)"},{"line_number":1954,"context_line":"        try:"},{"line_number":1955,"context_line":"            entity \u003d query.one()"},{"line_number":1956,"context_line":"        except sa_orm.exc.NoResultFound:"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_fd79a893","line":1953,"in_reply_to":"da20952f_c75973fe","updated":"2015-09-01 12:21:19.000000000","message":"Through the patch set history, you can see I\u0027ve coded it both ways. :-)  This way turned out the best and most consistent with the other controllers and repositories.\n\nPerformance-wise, two lookups will be slower than a join.\nAlso, there is no guarantee that this project exists in the table.","commit_id":"16c07b53e537d6021313d6d8e0f01a6b1a69f4bd"}],"barbican/tests/model/repositories/test_repositories_quotas.py":[{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"8d1bc217fff2bf7787c453ee63e48fbbb203ef45","unresolved":false,"context_lines":[{"line_number":217,"context_line":"        self.assertEqual(0, offset)"},{"line_number":218,"context_line":"        self.assertEqual(10, limit)"},{"line_number":219,"context_line":"        self.assertEqual(0, total)"},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"    def test_should_delete(self):"},{"line_number":222,"context_line":"        self.project_quotas_repo.create_or_update_by_project_id("},{"line_number":223,"context_line":"            self.project_1.id,"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_5a24c35e","line":220,"updated":"2015-08-29 00:39:40.000000000","message":"FYI, I had to remove the unit test for raise_add_duplicate_project_id.  The in-memory database used for unit testing does not enforce this constraint, so the test will not pass.","commit_id":"4aa5e87594a2d0e542ebaf0a701d0a4b29a611fb"}]}
