)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"bbb712ffa5045c96e787ebab0723b8a20051fd69","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2015-09-30 13:55:55 +0100"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Prevent removal of share server used by CG"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I6577eee837cb10119934108032e99835e63b7bd2"},{"line_number":10,"context_line":"Closes-bug: 1501326"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a1a9d01_4a7031a4","line":8,"updated":"2015-09-30 14:00:59.000000000","message":"Commit message should have bug description.","commit_id":"af749a91c554918d4313c1564806cb934341fd4b"},{"author":{"_account_id":18643,"name":"John Spray","email":"jspray@redhat.com","username":"jcsp"},"change_message_id":"43dd70094709a163fe58ce4317b827110fc9010d","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2015-09-30 13:55:55 +0100"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Prevent removal of share server used by CG"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I6577eee837cb10119934108032e99835e63b7bd2"},{"line_number":10,"context_line":"Closes-bug: 1501326"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a740942_b9db0aed","line":8,"in_reply_to":"9a1a9d01_4a7031a4","updated":"2015-12-03 23:17:06.000000000","message":"Done","commit_id":"af749a91c554918d4313c1564806cb934341fd4b"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"171e81a9ba3062024c97184c6892111250f64950","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously, it was possible to remove such a share"},{"line_number":10,"context_line":"server, which would lead to exceptions when"},{"line_number":11,"context_line":"attempting to remove the CG."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I6577eee837cb10119934108032e99835e63b7bd2"},{"line_number":14,"context_line":"Closes-bug: 1501326"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"7a740942_c755c0c6","line":11,"updated":"2015-12-04 05:22:19.000000000","message":"Needs APIImpact flag\n\nThis is altering a previously allowed action.","commit_id":"49d56a8126bc9102a2a7a8506c093c89fa5899a4"}],"manila/db/api.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b97dfe15392b903aab4a1754cad54553162312db","unresolved":false,"context_lines":[{"line_number":910,"context_line":""},{"line_number":911,"context_line":"def consistency_group_get_all_by_share_server(context, share_server_id):"},{"line_number":912,"context_line":"    \"\"\"Get all consistency groups associated with a share server.\"\"\""},{"line_number":913,"context_line":"    return IMPL.consistency_group_create(context, share_server_id)"},{"line_number":914,"context_line":""},{"line_number":915,"context_line":""},{"line_number":916,"context_line":"def consistency_group_get_all_by_project(context, project_id, detailed\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_8ceeff89","line":913,"updated":"2015-12-04 05:20:26.000000000","message":"copy paste error.. \n\n    return IMPL.consistency_group_get_all_by_share_server(context, share_server_id)","commit_id":"49d56a8126bc9102a2a7a8506c093c89fa5899a4"},{"author":{"_account_id":18643,"name":"John Spray","email":"jspray@redhat.com","username":"jcsp"},"change_message_id":"7d64be65376df011f9c970dca2692869e9e29762","unresolved":false,"context_lines":[{"line_number":910,"context_line":""},{"line_number":911,"context_line":"def consistency_group_get_all_by_share_server(context, share_server_id):"},{"line_number":912,"context_line":"    \"\"\"Get all consistency groups associated with a share server.\"\"\""},{"line_number":913,"context_line":"    return IMPL.consistency_group_create(context, share_server_id)"},{"line_number":914,"context_line":""},{"line_number":915,"context_line":""},{"line_number":916,"context_line":"def consistency_group_get_all_by_project(context, project_id, detailed\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_009ddd64","line":913,"in_reply_to":"7a740942_8ceeff89","updated":"2015-12-15 12:17:30.000000000","message":"Done","commit_id":"49d56a8126bc9102a2a7a8506c093c89fa5899a4"}],"manila/db/sqlalchemy/api.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b97dfe15392b903aab4a1754cad54553162312db","unresolved":false,"context_lines":[{"line_number":3067,"context_line":"def consistency_group_get_all_by_share_server(context, share_server_id):"},{"line_number":3068,"context_line":"    result \u003d ("},{"line_number":3069,"context_line":"        model_query(context, models.ConsistencyGroup).filter("},{"line_number":3070,"context_line":"            models.ConsistencyGroup.share_server_id \u003d\u003d share_server_id,"},{"line_number":3071,"context_line":"        ).all()"},{"line_number":3072,"context_line":"    )"},{"line_number":3073,"context_line":"    return result"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_0c03ef43","line":3070,"updated":"2015-12-04 05:20:26.000000000","message":"This needs a db session; \n\nor you can reuse the _consistency_groups_get_all_query in this file, it creates a session if you don\u0027t give it one...\n\n    query \u003d _consistency_group_get_all_query(context).filter_by(\n        share_server_id\u003dshare_server_id)","commit_id":"49d56a8126bc9102a2a7a8506c093c89fa5899a4"},{"author":{"_account_id":18643,"name":"John Spray","email":"jspray@redhat.com","username":"jcsp"},"change_message_id":"7d64be65376df011f9c970dca2692869e9e29762","unresolved":false,"context_lines":[{"line_number":3067,"context_line":"def consistency_group_get_all_by_share_server(context, share_server_id):"},{"line_number":3068,"context_line":"    result \u003d ("},{"line_number":3069,"context_line":"        model_query(context, models.ConsistencyGroup).filter("},{"line_number":3070,"context_line":"            models.ConsistencyGroup.share_server_id \u003d\u003d share_server_id,"},{"line_number":3071,"context_line":"        ).all()"},{"line_number":3072,"context_line":"    )"},{"line_number":3073,"context_line":"    return result"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a710552_5f9bd2c9","line":3070,"in_reply_to":"7a740942_0c03ef43","updated":"2015-12-15 12:17:30.000000000","message":"Done","commit_id":"49d56a8126bc9102a2a7a8506c093c89fa5899a4"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b97dfe15392b903aab4a1754cad54553162312db","unresolved":false,"context_lines":[{"line_number":3070,"context_line":"            models.ConsistencyGroup.share_server_id \u003d\u003d share_server_id,"},{"line_number":3071,"context_line":"        ).all()"},{"line_number":3072,"context_line":"    )"},{"line_number":3073,"context_line":"    return result"},{"line_number":3074,"context_line":""},{"line_number":3075,"context_line":""},{"line_number":3076,"context_line":"@require_context"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_c74b8058","line":3073,"updated":"2015-12-04 05:20:26.000000000","message":"also, this needs unit test/s in:\n\nmanila/tests/db/sqlalchemy/test_api.py","commit_id":"49d56a8126bc9102a2a7a8506c093c89fa5899a4"},{"author":{"_account_id":18643,"name":"John Spray","email":"jspray@redhat.com","username":"jcsp"},"change_message_id":"7d64be65376df011f9c970dca2692869e9e29762","unresolved":false,"context_lines":[{"line_number":3070,"context_line":"            models.ConsistencyGroup.share_server_id \u003d\u003d share_server_id,"},{"line_number":3071,"context_line":"        ).all()"},{"line_number":3072,"context_line":"    )"},{"line_number":3073,"context_line":"    return result"},{"line_number":3074,"context_line":""},{"line_number":3075,"context_line":""},{"line_number":3076,"context_line":"@require_context"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a710552_3ff846e5","line":3073,"in_reply_to":"7a740942_c74b8058","updated":"2015-12-15 12:17:30.000000000","message":"Done","commit_id":"49d56a8126bc9102a2a7a8506c093c89fa5899a4"}],"manila/share/api.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"120c9a91f083f277ebf5f3ddc048ab75f203d036","unresolved":false,"context_lines":[{"line_number":484,"context_line":"        cgs \u003d self.db.consistency_group_get_all_by_share_server(context,"},{"line_number":485,"context_line":"                                                                server[\u0027id\u0027])"},{"line_number":486,"context_line":"        if cgs:"},{"line_number":487,"context_line":"            LOG.warn(\"share server \u0027%(ssid)s\u0027 in use by CGs\","},{"line_number":488,"context_line":"                     {\u0027ssid\u0027: server[\u0027id\u0027]})"},{"line_number":489,"context_line":"            raise exception.ShareServerInUse(share_server_id\u003dserver[\u0027id\u0027])"},{"line_number":490,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a2fa921_c1962394","line":487,"updated":"2015-10-06 01:42:38.000000000","message":"Please use LOG.warning instead of LOG.warn as LOG.warn is deprecated.  Also needs _LW for warning msg.","commit_id":"af749a91c554918d4313c1564806cb934341fd4b"},{"author":{"_account_id":18643,"name":"John Spray","email":"jspray@redhat.com","username":"jcsp"},"change_message_id":"43dd70094709a163fe58ce4317b827110fc9010d","unresolved":false,"context_lines":[{"line_number":484,"context_line":"        cgs \u003d self.db.consistency_group_get_all_by_share_server(context,"},{"line_number":485,"context_line":"                                                                server[\u0027id\u0027])"},{"line_number":486,"context_line":"        if cgs:"},{"line_number":487,"context_line":"            LOG.warn(\"share server \u0027%(ssid)s\u0027 in use by CGs\","},{"line_number":488,"context_line":"                     {\u0027ssid\u0027: server[\u0027id\u0027]})"},{"line_number":489,"context_line":"            raise exception.ShareServerInUse(share_server_id\u003dserver[\u0027id\u0027])"},{"line_number":490,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_99a72e4f","line":487,"in_reply_to":"7a2fa921_c1962394","updated":"2015-12-03 23:17:06.000000000","message":"Done","commit_id":"af749a91c554918d4313c1564806cb934341fd4b"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b97dfe15392b903aab4a1754cad54553162312db","unresolved":false,"context_lines":[{"line_number":472,"context_line":"        cgs \u003d self.db.consistency_group_get_all_by_share_server(context,"},{"line_number":473,"context_line":"                                                                server[\u0027id\u0027])"},{"line_number":474,"context_line":"        if cgs:"},{"line_number":475,"context_line":"            LOG.warning(_LW(\"share server \u0027%(ssid)s\u0027 in use by CGs\"),"},{"line_number":476,"context_line":"                        {\u0027ssid\u0027: server[\u0027id\u0027]})"},{"line_number":477,"context_line":"            raise exception.ShareServerInUse(share_server_id\u003dserver[\u0027id\u0027])"},{"line_number":478,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_0c0d2f3e","line":475,"updated":"2015-12-04 05:20:26.000000000","message":"You should be using LOG.error... this isn\u0027t a warning. The action initiated will fail..","commit_id":"49d56a8126bc9102a2a7a8506c093c89fa5899a4"},{"author":{"_account_id":18643,"name":"John Spray","email":"jspray@redhat.com","username":"jcsp"},"change_message_id":"7d64be65376df011f9c970dca2692869e9e29762","unresolved":false,"context_lines":[{"line_number":472,"context_line":"        cgs \u003d self.db.consistency_group_get_all_by_share_server(context,"},{"line_number":473,"context_line":"                                                                server[\u0027id\u0027])"},{"line_number":474,"context_line":"        if cgs:"},{"line_number":475,"context_line":"            LOG.warning(_LW(\"share server \u0027%(ssid)s\u0027 in use by CGs\"),"},{"line_number":476,"context_line":"                        {\u0027ssid\u0027: server[\u0027id\u0027]})"},{"line_number":477,"context_line":"            raise exception.ShareServerInUse(share_server_id\u003dserver[\u0027id\u0027])"},{"line_number":478,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5a710552_9fb939ec","line":475,"in_reply_to":"7a740942_0c0d2f3e","updated":"2015-12-15 12:17:30.000000000","message":"Done","commit_id":"49d56a8126bc9102a2a7a8506c093c89fa5899a4"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"e6a69f557a78dc7fc3a91b79857ec6b87a2282cc","unresolved":false,"context_lines":[{"line_number":472,"context_line":"        cgs \u003d self.db.consistency_group_get_all_by_share_server(context,"},{"line_number":473,"context_line":"                                                                server[\u0027id\u0027])"},{"line_number":474,"context_line":"        if cgs:"},{"line_number":475,"context_line":"            LOG.error(_LE(\"share server \u0027%(ssid)s\u0027 in use by CGs\"),"},{"line_number":476,"context_line":"                      {\u0027ssid\u0027: server[\u0027id\u0027]})"},{"line_number":477,"context_line":"            raise exception.ShareServerInUse(share_server_id\u003dserver[\u0027id\u0027])"},{"line_number":478,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5a710552_0602903d","line":475,"updated":"2015-12-16 16:54:24.000000000","message":"If you make another patch, please capitalize s in share.","commit_id":"2516733710c6b3f1c6ff9fcadef9de628f1b84cd"}]}
