)]}'
{"etc/manila/policy.json":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a568fbd13250f9c541707460ddaa1451c3283718","unresolved":false,"context_lines":[{"line_number":20,"context_line":"    \"share:access_get_all\": \"rule:default\","},{"line_number":21,"context_line":"    \"share:allow_access\": \"rule:default\","},{"line_number":22,"context_line":"    \"share:deny_access\": \"rule:default\","},{"line_number":23,"context_line":"    \"share:extend\": \"rule:default\","},{"line_number":24,"context_line":"    \"share:get_share_metadata\": \"rule:default\","},{"line_number":25,"context_line":"    \"share:delete_share_metadata\": \"rule:default\","},{"line_number":26,"context_line":"    \"share:update_share_metadata\": \"rule:default\","}],"source_content_type":"application/json","patch_set":5,"id":"7a016987_a32726b5","line":23,"updated":"2015-05-18 11:15:01.000000000","message":"File \"https://github.com/openstack/manila/blob/master/manila/tests/policy.json\" should be updated too.","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"be91ede2e6fdde4ed499eefaf0e141f5af642ea8","unresolved":false,"context_lines":[{"line_number":20,"context_line":"    \"share:access_get_all\": \"rule:default\","},{"line_number":21,"context_line":"    \"share:allow_access\": \"rule:default\","},{"line_number":22,"context_line":"    \"share:deny_access\": \"rule:default\","},{"line_number":23,"context_line":"    \"share:extend\": \"rule:default\","},{"line_number":24,"context_line":"    \"share:get_share_metadata\": \"rule:default\","},{"line_number":25,"context_line":"    \"share:delete_share_metadata\": \"rule:default\","},{"line_number":26,"context_line":"    \"share:update_share_metadata\": \"rule:default\","}],"source_content_type":"application/json","patch_set":5,"id":"7a016987_ba7d07b3","line":23,"in_reply_to":"7a016987_a32726b5","updated":"2015-05-18 14:23:22.000000000","message":"Done","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"}],"manila/common/constants.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a568fbd13250f9c541707460ddaa1451c3283718","unresolved":false,"context_lines":[{"line_number":29,"context_line":"STATUS_UNMANAGING \u003d \u0027UNMANAGE_STARTING\u0027"},{"line_number":30,"context_line":"STATUS_UNMANAGE_ERROR \u003d \u0027UNMANAGE_ERROR\u0027"},{"line_number":31,"context_line":"STATUS_UNMANAGED \u003d \u0027UNMANAGED\u0027"},{"line_number":32,"context_line":"STATUS_EXTENDING \u003d \u0027EXTENDING\u0027"},{"line_number":33,"context_line":"STATUS_EXTENDING_ERROR \u003d \u0027EXTENDING_ERROR\u0027"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"TRANSITIONAL_STATUSES \u003d ("}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_63592efe","line":32,"updated":"2015-05-18 11:15:01.000000000","message":"\"STATUS_EXTENDING\" should be added to tuple \"TRANSITIONAL_STATUSES\".","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"be91ede2e6fdde4ed499eefaf0e141f5af642ea8","unresolved":false,"context_lines":[{"line_number":29,"context_line":"STATUS_UNMANAGING \u003d \u0027UNMANAGE_STARTING\u0027"},{"line_number":30,"context_line":"STATUS_UNMANAGE_ERROR \u003d \u0027UNMANAGE_ERROR\u0027"},{"line_number":31,"context_line":"STATUS_UNMANAGED \u003d \u0027UNMANAGED\u0027"},{"line_number":32,"context_line":"STATUS_EXTENDING \u003d \u0027EXTENDING\u0027"},{"line_number":33,"context_line":"STATUS_EXTENDING_ERROR \u003d \u0027EXTENDING_ERROR\u0027"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"TRANSITIONAL_STATUSES \u003d ("}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_1a609b00","line":32,"in_reply_to":"7a016987_63592efe","updated":"2015-05-18 14:23:22.000000000","message":"Done","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"}],"manila/exception.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a568fbd13250f9c541707460ddaa1451c3283718","unresolved":false,"context_lines":[{"line_number":482,"context_line":"                \"%(reason)s\")"},{"line_number":483,"context_line":""},{"line_number":484,"context_line":""},{"line_number":485,"context_line":"class ShareExtendingDriverError(ManilaException):"},{"line_number":486,"context_line":"    message \u003d _(\"Share %(share_id)s could not be extended due to error \""},{"line_number":487,"context_line":"                \"in the driver: %(reason)s\")"},{"line_number":488,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_a30606cc","line":485,"updated":"2015-05-18 11:15:01.000000000","message":"Why do you need \"driver\" in the name?","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"be91ede2e6fdde4ed499eefaf0e141f5af642ea8","unresolved":false,"context_lines":[{"line_number":482,"context_line":"                \"%(reason)s\")"},{"line_number":483,"context_line":""},{"line_number":484,"context_line":""},{"line_number":485,"context_line":"class ShareExtendingDriverError(ManilaException):"},{"line_number":486,"context_line":"    message \u003d _(\"Share %(share_id)s could not be extended due to error \""},{"line_number":487,"context_line":"                \"in the driver: %(reason)s\")"},{"line_number":488,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_9a324b0f","line":485,"in_reply_to":"7a016987_a30606cc","updated":"2015-05-18 14:23:22.000000000","message":"Done","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"}],"manila/share/api.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"b0dcc577ec6339f585cf8af20e1a55dae3efb935","unresolved":false,"context_lines":[{"line_number":679,"context_line":"    def extend(self, context, share, new_size):"},{"line_number":680,"context_line":"        policy.check_policy(context, \u0027share\u0027, \u0027extend\u0027)"},{"line_number":681,"context_line":""},{"line_number":682,"context_line":"        if str(share[\u0027status\u0027]).upper() !\u003d constants.STATUS_AVAILABLE:"},{"line_number":683,"context_line":"            msg_params \u003d {"},{"line_number":684,"context_line":"                \u0027valid_status\u0027: constants.STATUS_AVAILABLE,"},{"line_number":685,"context_line":"                \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_a7652e46","line":682,"updated":"2015-05-15 04:51:10.000000000","message":"str -\u003e six.text_type","commit_id":"7c15facc3e92824d712183e0fd504c9722bd0ddb"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"ee8035713887eecadee22ed6796e59bc16035d18","unresolved":false,"context_lines":[{"line_number":679,"context_line":"    def extend(self, context, share, new_size):"},{"line_number":680,"context_line":"        policy.check_policy(context, \u0027share\u0027, \u0027extend\u0027)"},{"line_number":681,"context_line":""},{"line_number":682,"context_line":"        if str(share[\u0027status\u0027]).upper() !\u003d constants.STATUS_AVAILABLE:"},{"line_number":683,"context_line":"            msg_params \u003d {"},{"line_number":684,"context_line":"                \u0027valid_status\u0027: constants.STATUS_AVAILABLE,"},{"line_number":685,"context_line":"                \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_428ae5c0","line":682,"in_reply_to":"7a016987_a7652e46","updated":"2015-05-15 08:17:36.000000000","message":"Done","commit_id":"7c15facc3e92824d712183e0fd504c9722bd0ddb"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a568fbd13250f9c541707460ddaa1451c3283718","unresolved":false,"context_lines":[{"line_number":679,"context_line":"    def extend(self, context, share, new_size):"},{"line_number":680,"context_line":"        policy.check_policy(context, \u0027share\u0027, \u0027extend\u0027)"},{"line_number":681,"context_line":""},{"line_number":682,"context_line":"        if str(share[\u0027status\u0027]).upper() !\u003d constants.STATUS_AVAILABLE:"},{"line_number":683,"context_line":"            msg_params \u003d {"},{"line_number":684,"context_line":"                \u0027valid_status\u0027: constants.STATUS_AVAILABLE,"},{"line_number":685,"context_line":"                \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_23221653","line":682,"updated":"2015-05-18 11:15:01.000000000","message":"For py 2/3 compatibility we should use \"six.text_type\" instead of built-in \"str\". Also, why do you need type convertion here at all? \"status\" always should be a text/string.","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"be91ede2e6fdde4ed499eefaf0e141f5af642ea8","unresolved":false,"context_lines":[{"line_number":679,"context_line":"    def extend(self, context, share, new_size):"},{"line_number":680,"context_line":"        policy.check_policy(context, \u0027share\u0027, \u0027extend\u0027)"},{"line_number":681,"context_line":""},{"line_number":682,"context_line":"        if str(share[\u0027status\u0027]).upper() !\u003d constants.STATUS_AVAILABLE:"},{"line_number":683,"context_line":"            msg_params \u003d {"},{"line_number":684,"context_line":"                \u0027valid_status\u0027: constants.STATUS_AVAILABLE,"},{"line_number":685,"context_line":"                \u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_fa213fb5","line":682,"in_reply_to":"7a016987_23221653","updated":"2015-05-18 14:23:22.000000000","message":"Done","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a568fbd13250f9c541707460ddaa1451c3283718","unresolved":false,"context_lines":[{"line_number":690,"context_line":"                    \"%(status)s.\") % msg_params"},{"line_number":691,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":692,"context_line":""},{"line_number":693,"context_line":"        size_increase \u003d (int(new_size)) - share[\u0027size\u0027]"},{"line_number":694,"context_line":"        if size_increase \u003c\u003d 0:"},{"line_number":695,"context_line":"            msg \u003d (_(\"New size for extend must be greater \""},{"line_number":696,"context_line":"                     \"than current size. (current: %(size)s, \""}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_83d78a22","line":693,"updated":"2015-05-18 11:15:01.000000000","message":"redundant wrapper parenthesis","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"be91ede2e6fdde4ed499eefaf0e141f5af642ea8","unresolved":false,"context_lines":[{"line_number":690,"context_line":"                    \"%(status)s.\") % msg_params"},{"line_number":691,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":692,"context_line":""},{"line_number":693,"context_line":"        size_increase \u003d (int(new_size)) - share[\u0027size\u0027]"},{"line_number":694,"context_line":"        if size_increase \u003c\u003d 0:"},{"line_number":695,"context_line":"            msg \u003d (_(\"New size for extend must be greater \""},{"line_number":696,"context_line":"                     \"than current size. (current: %(size)s, \""}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_da30c303","line":693,"in_reply_to":"7a016987_83d78a22","updated":"2015-05-18 14:23:22.000000000","message":"Done","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"}],"manila/share/manager.py":[{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"04225c876a879d61f2e4437322906008d9b01f62","unresolved":false,"context_lines":[{"line_number":840,"context_line":"        share_server \u003d self._get_share_server(context, share)"},{"line_number":841,"context_line":""},{"line_number":842,"context_line":"        try:"},{"line_number":843,"context_line":"            self.driver.extend_share(share, new_size, share_server)"},{"line_number":844,"context_line":"        except Exception as e:"},{"line_number":845,"context_line":"            LOG.exception(_LE(\"Extend share failed.\"), resource\u003dshare)"},{"line_number":846,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_578f3ecc","line":843,"updated":"2015-05-15 13:39:15.000000000","message":"In all other calls to the driver, share_server is a keyword argument.  Please do the same here.","commit_id":"355a1c888d622d20ecf2c65ef8a27e3dd2906a8b"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"b2548a0759bb2b8c2e36f6efddca0b7b2e44a174","unresolved":false,"context_lines":[{"line_number":840,"context_line":"        share_server \u003d self._get_share_server(context, share)"},{"line_number":841,"context_line":""},{"line_number":842,"context_line":"        try:"},{"line_number":843,"context_line":"            self.driver.extend_share(share, new_size, share_server)"},{"line_number":844,"context_line":"        except Exception as e:"},{"line_number":845,"context_line":"            LOG.exception(_LE(\"Extend share failed.\"), resource\u003dshare)"},{"line_number":846,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_a2caae6c","line":843,"in_reply_to":"7a016987_578f3ecc","updated":"2015-05-15 13:50:44.000000000","message":"Done","commit_id":"355a1c888d622d20ecf2c65ef8a27e3dd2906a8b"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"04225c876a879d61f2e4437322906008d9b01f62","unresolved":false,"context_lines":[{"line_number":847,"context_line":"            try:"},{"line_number":848,"context_line":"                self.db.share_update("},{"line_number":849,"context_line":"                    context, share[\u0027id\u0027],"},{"line_number":850,"context_line":"                    {\u0027status\u0027: constants.STATUS_EXTENDING_ERROR}"},{"line_number":851,"context_line":"                )"},{"line_number":852,"context_line":"                raise exception.ShareExtendingDriverError("},{"line_number":853,"context_line":"                    reason\u003dsix.text_type(e), share_id\u003dshare_id)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_97ac9636","line":850,"updated":"2015-05-15 13:39:15.000000000","message":"constants.STATUS_EXTENDING_ERROR.lower()","commit_id":"355a1c888d622d20ecf2c65ef8a27e3dd2906a8b"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"b2548a0759bb2b8c2e36f6efddca0b7b2e44a174","unresolved":false,"context_lines":[{"line_number":847,"context_line":"            try:"},{"line_number":848,"context_line":"                self.db.share_update("},{"line_number":849,"context_line":"                    context, share[\u0027id\u0027],"},{"line_number":850,"context_line":"                    {\u0027status\u0027: constants.STATUS_EXTENDING_ERROR}"},{"line_number":851,"context_line":"                )"},{"line_number":852,"context_line":"                raise exception.ShareExtendingDriverError("},{"line_number":853,"context_line":"                    reason\u003dsix.text_type(e), share_id\u003dshare_id)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a016987_82c9f27a","line":850,"in_reply_to":"7a016987_97ac9636","updated":"2015-05-15 13:50:44.000000000","message":"Done","commit_id":"355a1c888d622d20ecf2c65ef8a27e3dd2906a8b"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a568fbd13250f9c541707460ddaa1451c3283718","unresolved":false,"context_lines":[{"line_number":849,"context_line":"            try:"},{"line_number":850,"context_line":"                self.db.share_update("},{"line_number":851,"context_line":"                    context, share[\u0027id\u0027],"},{"line_number":852,"context_line":"                    {\u0027status\u0027: constants.STATUS_EXTENDING_ERROR.lower()}"},{"line_number":853,"context_line":"                )"},{"line_number":854,"context_line":"                raise exception.ShareExtendingDriverError("},{"line_number":855,"context_line":"                    reason\u003dsix.text_type(e), share_id\u003dshare_id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_03cefa59","line":852,"updated":"2015-05-18 11:15:01.000000000","message":"Lower case for shares is left-over. For new things we use upper case statuses from constants. So, either left here upper case or add NOTE that it should be updated when share statuses will be transformed to upper case using constants from common place as it is done for share servers.","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"be91ede2e6fdde4ed499eefaf0e141f5af642ea8","unresolved":false,"context_lines":[{"line_number":849,"context_line":"            try:"},{"line_number":850,"context_line":"                self.db.share_update("},{"line_number":851,"context_line":"                    context, share[\u0027id\u0027],"},{"line_number":852,"context_line":"                    {\u0027status\u0027: constants.STATUS_EXTENDING_ERROR.lower()}"},{"line_number":853,"context_line":"                )"},{"line_number":854,"context_line":"                raise exception.ShareExtendingDriverError("},{"line_number":855,"context_line":"                    reason\u003dsix.text_type(e), share_id\u003dshare_id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_7a1c2f77","line":852,"in_reply_to":"7a016987_03cefa59","updated":"2015-05-18 14:23:22.000000000","message":"Done","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a568fbd13250f9c541707460ddaa1451c3283718","unresolved":false,"context_lines":[{"line_number":860,"context_line":""},{"line_number":861,"context_line":"        share_update \u003d {"},{"line_number":862,"context_line":"            \u0027size\u0027: int(new_size),"},{"line_number":863,"context_line":"            \u0027status\u0027: constants.STATUS_AVAILABLE.lower()"},{"line_number":864,"context_line":"        }"},{"line_number":865,"context_line":"        share \u003d self.db.share_update(context, share[\u0027id\u0027], share_update)"},{"line_number":866,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_43b4f2cf","line":863,"updated":"2015-05-18 11:15:01.000000000","message":"Here we \"need\" to use \"lowercase\" for compatibility with existing approach. But, please, add NOTE, that translation to lower case should be removed in a row with usage of upper case in all places.","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"be91ede2e6fdde4ed499eefaf0e141f5af642ea8","unresolved":false,"context_lines":[{"line_number":860,"context_line":""},{"line_number":861,"context_line":"        share_update \u003d {"},{"line_number":862,"context_line":"            \u0027size\u0027: int(new_size),"},{"line_number":863,"context_line":"            \u0027status\u0027: constants.STATUS_AVAILABLE.lower()"},{"line_number":864,"context_line":"        }"},{"line_number":865,"context_line":"        share \u003d self.db.share_update(context, share[\u0027id\u0027], share_update)"},{"line_number":866,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_550a6422","line":863,"in_reply_to":"7a016987_43b4f2cf","updated":"2015-05-18 14:23:22.000000000","message":"Done","commit_id":"41928a6daa9333b94afc8a58e7e87199fe2a654b"}],"manila/share/rpcapi.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"67aaacf616570f4a86e9da4f252fbd0535a407a6","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        host \u003d utils.extract_host(share[\u0027host\u0027])"},{"line_number":116,"context_line":"        cctxt \u003d self.client.prepare(server\u003dhost, version\u003d\u00271.2\u0027)"},{"line_number":117,"context_line":"        cctxt.cast(ctxt, \u0027extend_share\u0027, share_id\u003dshare[\u0027id\u0027],"},{"line_number":118,"context_line":"                   new_size\u003dnew_size, reservations\u003dreservations)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a016987_91471f4b","line":118,"updated":"2015-05-26 18:52:09.000000000","message":"guidelines say use separate lines for params if they don\u0027t fit on one.","commit_id":"f67bcf81ae3ee43733481d547fb46d3c54efca87"}]}
