)]}'
{"manila/api/contrib/share_unmanage.py":[{"author":{"_account_id":7652,"name":"Luis Pabón","email":"lpabon@gmail.com","username":"lpabon"},"change_message_id":"2630e0490bcb488e6dd392323af2c77aa1707288","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            share \u003d self.share_api.get(context, id)"},{"line_number":48,"context_line":"            if share.get(\u0027share_server_id\u0027):"},{"line_number":49,"context_line":"                msg \u003d _(\"Operation \u0027unmanage\u0027 is not supported for shares \""},{"line_number":50,"context_line":"                        \"that are created on top of share servers \""},{"line_number":51,"context_line":"                        \"(created with share-networks).\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a6ced46_76ad5a88","line":48,"updated":"2015-03-23 15:11:53.000000000","message":"This may be an overloaded value.  What if a driver chooses to use share_server_id to track it\u0027s manage/unmanaged shares?  I think it would be more explicit to have the share state which type it is through an enumerator.","commit_id":"a0703047d52b700ef8917996dd45ca3fb16e5f5d"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"6062c8ce433be96fcbee8d05cf723704400bd1ec","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            share \u003d self.share_api.get(context, id)"},{"line_number":48,"context_line":"            if share.get(\u0027share_server_id\u0027):"},{"line_number":49,"context_line":"                msg \u003d _(\"Operation \u0027unmanage\u0027 is not supported for shares \""},{"line_number":50,"context_line":"                        \"that are created on top of share servers \""},{"line_number":51,"context_line":"                        \"(created with share-networks).\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a6ced46_b536df01","line":48,"in_reply_to":"1a6ced46_76ad5a88","updated":"2015-03-23 18:33:26.000000000","message":"\"What if a driver chooses to use share_server_id to track it\u0027s manage/unmanaged shares?\"\n\nIt would be incorrect behaviour and won\u0027t get to master.\n\n\"This may be an overloaded value\"\n\nNo, it can not. \"manage/unmanage\" does not support \"share servers\". So, we need exactly this check here because it is not supported.","commit_id":"a0703047d52b700ef8917996dd45ca3fb16e5f5d"},{"author":{"_account_id":7652,"name":"Luis Pabón","email":"lpabon@gmail.com","username":"lpabon"},"change_message_id":"2630e0490bcb488e6dd392323af2c77aa1707288","unresolved":false,"context_lines":[{"line_number":48,"context_line":"            if share.get(\u0027share_server_id\u0027):"},{"line_number":49,"context_line":"                msg \u003d _(\"Operation \u0027unmanage\u0027 is not supported for shares \""},{"line_number":50,"context_line":"                        \"that are created on top of share servers \""},{"line_number":51,"context_line":"                        \"(created with share-networks).\")"},{"line_number":52,"context_line":"                raise exc.HTTPForbidden(explanation\u003dmsg)"},{"line_number":53,"context_line":"            # NOTE(vponomaryov): use \u0027upper\u0027 translation because share"},{"line_number":54,"context_line":"            # statuses not always used from common place yet."}],"source_content_type":"text/x-python","patch_set":4,"id":"1a6ced46_d6636eaf","line":51,"updated":"2015-03-23 15:11:53.000000000","message":"This string is confusing because it uses the word \u0027share\u0027 multiple times.  What does it mean by \u0027created on *top* of a share server?","commit_id":"a0703047d52b700ef8917996dd45ca3fb16e5f5d"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a2d06ef9d2530bb9d9543ed957f849ffdf92af17","unresolved":false,"context_lines":[{"line_number":48,"context_line":"            if share.get(\u0027share_server_id\u0027):"},{"line_number":49,"context_line":"                msg \u003d _(\"Operation \u0027unmanage\u0027 is not supported for shares \""},{"line_number":50,"context_line":"                        \"that are created on top of share servers \""},{"line_number":51,"context_line":"                        \"(created with share-networks).\")"},{"line_number":52,"context_line":"                raise exc.HTTPForbidden(explanation\u003dmsg)"},{"line_number":53,"context_line":"            # NOTE(vponomaryov): use \u0027upper\u0027 translation because share"},{"line_number":54,"context_line":"            # statuses not always used from common place yet."}],"source_content_type":"text/x-python","patch_set":4,"id":"1a6ced46_99f67dd6","line":51,"in_reply_to":"1a6ced46_793aa1ce","updated":"2015-03-23 18:34:34.000000000","message":"s/meaning/meanings/\n\ns/running of host/running on host/","commit_id":"a0703047d52b700ef8917996dd45ca3fb16e5f5d"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"6062c8ce433be96fcbee8d05cf723704400bd1ec","unresolved":false,"context_lines":[{"line_number":48,"context_line":"            if share.get(\u0027share_server_id\u0027):"},{"line_number":49,"context_line":"                msg \u003d _(\"Operation \u0027unmanage\u0027 is not supported for shares \""},{"line_number":50,"context_line":"                        \"that are created on top of share servers \""},{"line_number":51,"context_line":"                        \"(created with share-networks).\")"},{"line_number":52,"context_line":"                raise exc.HTTPForbidden(explanation\u003dmsg)"},{"line_number":53,"context_line":"            # NOTE(vponomaryov): use \u0027upper\u0027 translation because share"},{"line_number":54,"context_line":"            # statuses not always used from common place yet."}],"source_content_type":"text/x-python","patch_set":4,"id":"1a6ced46_793aa1ce","line":51,"in_reply_to":"1a6ced46_d6636eaf","updated":"2015-03-23 18:33:26.000000000","message":"\"share\" and \"share server\" two meaning used within Manila project. \"on top\" means share is running of host (share server) that is handled by manila.","commit_id":"a0703047d52b700ef8917996dd45ca3fb16e5f5d"},{"author":{"_account_id":7652,"name":"Luis Pabón","email":"lpabon@gmail.com","username":"lpabon"},"change_message_id":"2630e0490bcb488e6dd392323af2c77aa1707288","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                raise exc.HTTPForbidden(explanation\u003dmsg)"},{"line_number":53,"context_line":"            # NOTE(vponomaryov): use \u0027upper\u0027 translation because share"},{"line_number":54,"context_line":"            # statuses not always used from common place yet."},{"line_number":55,"context_line":"            elif share[\u0027status\u0027].upper() in constants.TRANSITIONAL_STATUSES:"},{"line_number":56,"context_line":"                msg \u003d _(\"Share with transitional state can not be unmanaged. \""},{"line_number":57,"context_line":"                        \"Share \u0027%(s_id)s\u0027 is in \u0027%(state)s\u0027 state.\") % dict("},{"line_number":58,"context_line":"                            state\u003dshare[\u0027status\u0027], s_id\u003dshare[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a6ced46_56f5be81","line":55,"updated":"2015-03-23 15:11:53.000000000","message":"I think this has the same issue as line 47.  This may work today, but as the code matures, it may not be explicit enough to make this decision.","commit_id":"a0703047d52b700ef8917996dd45ca3fb16e5f5d"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"6062c8ce433be96fcbee8d05cf723704400bd1ec","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                raise exc.HTTPForbidden(explanation\u003dmsg)"},{"line_number":53,"context_line":"            # NOTE(vponomaryov): use \u0027upper\u0027 translation because share"},{"line_number":54,"context_line":"            # statuses not always used from common place yet."},{"line_number":55,"context_line":"            elif share[\u0027status\u0027].upper() in constants.TRANSITIONAL_STATUSES:"},{"line_number":56,"context_line":"                msg \u003d _(\"Share with transitional state can not be unmanaged. \""},{"line_number":57,"context_line":"                        \"Share \u0027%(s_id)s\u0027 is in \u0027%(state)s\u0027 state.\") % dict("},{"line_number":58,"context_line":"                            state\u003dshare[\u0027status\u0027], s_id\u003dshare[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a6ced46_f99bf1c6","line":55,"in_reply_to":"1a6ced46_56f5be81","updated":"2015-03-23 18:33:26.000000000","message":"line 47? Which issue? I do not understand your concern here at all. \n\nHere, on line 55, we verify that share does not have transitional state. And we restrict \"unmanage\" operation on any share that is being changed.","commit_id":"a0703047d52b700ef8917996dd45ca3fb16e5f5d"}],"manila/tests/api/contrib/test_share_unmanage.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"18e5e034f2355e2444afaa9549d0e2083c5a471f","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        self.assertEqual(202, actual_result.status_int)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def test_unmanage_share_with_transitional_state(self):"},{"line_number":59,"context_line":"        share \u003d dict(share_server_id\u003d\u0027foo_id\u0027, id\u003d\u0027bar_id\u0027)"},{"line_number":60,"context_line":"        self.mock_object("},{"line_number":61,"context_line":"            self.controller.share_api, \u0027get\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_e95191d9","line":58,"updated":"2015-03-21 23:11:08.000000000","message":"Should this test be named \"test_unmanage_share_based_on_share_server\"?","commit_id":"89c2952ff8d1caa85ffdfe3b693d33c9b5ebe448"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"12154c638aced65db121d9bedb87eb5ab3ff7a61","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        self.assertEqual(202, actual_result.status_int)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def test_unmanage_share_with_transitional_state(self):"},{"line_number":59,"context_line":"        share \u003d dict(share_server_id\u003d\u0027foo_id\u0027, id\u003d\u0027bar_id\u0027)"},{"line_number":60,"context_line":"        self.mock_object("},{"line_number":61,"context_line":"            self.controller.share_api, \u0027get\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_2c12d2b4","line":58,"in_reply_to":"1a6ced46_e95191d9","updated":"2015-03-22 18:57:48.000000000","message":"Done","commit_id":"89c2952ff8d1caa85ffdfe3b693d33c9b5ebe448"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"18e5e034f2355e2444afaa9549d0e2083c5a471f","unresolved":false,"context_lines":[{"line_number":69,"context_line":"            self.request.environ[\u0027manila.context\u0027], share[\u0027id\u0027])"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    @ddt.data(*constants.TRANSITIONAL_STATUSES)"},{"line_number":72,"context_line":"    def test_unmanage_share_based_on_share_server(self, share_status):"},{"line_number":73,"context_line":"        share \u003d dict(status\u003dshare_status, id\u003d\u0027foo_id\u0027)"},{"line_number":74,"context_line":"        self.mock_object("},{"line_number":75,"context_line":"            self.controller.share_api, \u0027get\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_2963a9b2","line":72,"updated":"2015-03-21 23:11:08.000000000","message":"Should this test be named \"test_unmanage_share_with_transitional_state\"?  The names of these two tests seem to reversed.","commit_id":"89c2952ff8d1caa85ffdfe3b693d33c9b5ebe448"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"12154c638aced65db121d9bedb87eb5ab3ff7a61","unresolved":false,"context_lines":[{"line_number":69,"context_line":"            self.request.environ[\u0027manila.context\u0027], share[\u0027id\u0027])"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    @ddt.data(*constants.TRANSITIONAL_STATUSES)"},{"line_number":72,"context_line":"    def test_unmanage_share_based_on_share_server(self, share_status):"},{"line_number":73,"context_line":"        share \u003d dict(status\u003dshare_status, id\u003d\u0027foo_id\u0027)"},{"line_number":74,"context_line":"        self.mock_object("},{"line_number":75,"context_line":"            self.controller.share_api, \u0027get\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_4c170ea4","line":72,"in_reply_to":"1a6ced46_2963a9b2","updated":"2015-03-22 18:57:48.000000000","message":"Done","commit_id":"89c2952ff8d1caa85ffdfe3b693d33c9b5ebe448"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"18e5e034f2355e2444afaa9549d0e2083c5a471f","unresolved":false,"context_lines":[{"line_number":94,"context_line":"    @ddt.data(exception.InvalidShare(reason\u003d\"fake\"),"},{"line_number":95,"context_line":"              exception.PolicyNotAuthorized(action\u003d\"fake\"),)"},{"line_number":96,"context_line":"    def test_unmanage_share_invalid(self, side_effect):"},{"line_number":97,"context_line":"        share \u003d dict(status\u003d\u0027available\u0027, id\u003d\u0027foo_id\u0027)"},{"line_number":98,"context_line":"        self.mock_object(share_api.API, \u0027get\u0027, mock.Mock(return_value\u003dshare))"},{"line_number":99,"context_line":"        self.mock_object(share_api.API, \u0027unmanage\u0027, mock.Mock("},{"line_number":100,"context_line":"            side_effect\u003dside_effect))"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_293c8993","line":97,"updated":"2015-03-21 23:11:08.000000000","message":"Please use variable defined in the constants.py for \u0027available\u0027.","commit_id":"89c2952ff8d1caa85ffdfe3b693d33c9b5ebe448"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"12154c638aced65db121d9bedb87eb5ab3ff7a61","unresolved":false,"context_lines":[{"line_number":94,"context_line":"    @ddt.data(exception.InvalidShare(reason\u003d\"fake\"),"},{"line_number":95,"context_line":"              exception.PolicyNotAuthorized(action\u003d\"fake\"),)"},{"line_number":96,"context_line":"    def test_unmanage_share_invalid(self, side_effect):"},{"line_number":97,"context_line":"        share \u003d dict(status\u003d\u0027available\u0027, id\u003d\u0027foo_id\u0027)"},{"line_number":98,"context_line":"        self.mock_object(share_api.API, \u0027get\u0027, mock.Mock(return_value\u003dshare))"},{"line_number":99,"context_line":"        self.mock_object(share_api.API, \u0027unmanage\u0027, mock.Mock("},{"line_number":100,"context_line":"            side_effect\u003dside_effect))"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6ced46_0c7436fc","line":97,"in_reply_to":"1a6ced46_293c8993","updated":"2015-03-22 18:57:48.000000000","message":"Done","commit_id":"89c2952ff8d1caa85ffdfe3b693d33c9b5ebe448"}]}
