)]}'
{"openstack_dashboard/dashboards/admin/networks/forms.py":[{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"27d9bf26310c3905225292b10f74d6e944adaf9b","unresolved":false,"context_lines":[{"line_number":289,"context_line":"        network_type \u003d data.get(\u0027network_type\u0027)"},{"line_number":290,"context_line":"        if \u0027segmentation_id\u0027 in self._errors:"},{"line_number":291,"context_line":"            if network_type not in self.nettypes_with_seg_id and \\"},{"line_number":292,"context_line":"                    len(self.data.get(\"segmentation_id\", \"\")) \u003d\u003d 0:"},{"line_number":293,"context_line":"                # In this case the segmentation ID is not required, so we can"},{"line_number":294,"context_line":"                # ignore the field is required error."},{"line_number":295,"context_line":"                del self._errors[\u0027segmentation_id\u0027]"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a71b18c_56c0852a","line":292,"range":{"start_line":292,"start_character":20,"end_line":292,"end_character":66},"updated":"2016-12-09 12:34:10.000000000","message":"nit: you don\u0027t need the \u003d\u003d0. Python treats 0 as False anyway :)","commit_id":"4a032336855461cb928a5b870282729f1a421994"},{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"3397e73d91aaf31a550f2575b9c55b4a2f1e2b3c","unresolved":false,"context_lines":[{"line_number":289,"context_line":"        network_type \u003d data.get(\u0027network_type\u0027)"},{"line_number":290,"context_line":"        if \u0027segmentation_id\u0027 in self._errors:"},{"line_number":291,"context_line":"            if network_type not in self.nettypes_with_seg_id and \\"},{"line_number":292,"context_line":"                    len(self.data.get(\"segmentation_id\", \"\")) \u003d\u003d 0:"},{"line_number":293,"context_line":"                # In this case the segmentation ID is not required, so we can"},{"line_number":294,"context_line":"                # ignore the field is required error."},{"line_number":295,"context_line":"                del self._errors[\u0027segmentation_id\u0027]"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a71b18c_d221f3fd","line":292,"range":{"start_line":292,"start_character":20,"end_line":292,"end_character":66},"in_reply_to":"3a71b18c_56c0852a","updated":"2016-12-09 17:35:16.000000000","message":"Done","commit_id":"4a032336855461cb928a5b870282729f1a421994"},{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"a48487858afe6ab564f1054e4c9932f098eaa4de","unresolved":false,"context_lines":[{"line_number":289,"context_line":"        network_type \u003d data.get(\u0027network_type\u0027)"},{"line_number":290,"context_line":"        if \u0027segmentation_id\u0027 in self._errors:"},{"line_number":291,"context_line":"            if network_type not in self.nettypes_with_seg_id and \\"},{"line_number":292,"context_line":"                    len(self.data.get(\"segmentation_id\", \"\")) \u003d\u003d 0:"},{"line_number":293,"context_line":"                # In this case the segmentation ID is not required, so we can"},{"line_number":294,"context_line":"                # ignore the field is required error."},{"line_number":295,"context_line":"                del self._errors[\u0027segmentation_id\u0027]"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a71b18c_431b5780","line":292,"range":{"start_line":292,"start_character":20,"end_line":292,"end_character":66},"in_reply_to":"3a71b18c_d221f3fd","updated":"2016-12-09 18:55:18.000000000","message":"Hi Rob,\nI just realized that removing the \"\u003d\u003d0\" will do the opposite of what we want. We want the condition to be evaluated as True when the length is zero, and removing that \"\u003d\u003d 0\" will evaluate it as False. So I reverted the latest change.","commit_id":"4a032336855461cb928a5b870282729f1a421994"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"0802e406393c0a2d2985d847bef702a7fced95ee","unresolved":false,"context_lines":[{"line_number":288,"context_line":"    def _clean_segmentation_id(self, data):"},{"line_number":289,"context_line":"        network_type \u003d data.get(\u0027network_type\u0027)"},{"line_number":290,"context_line":"        if \u0027segmentation_id\u0027 in self._errors:"},{"line_number":291,"context_line":"            if network_type not in self.nettypes_with_seg_id and \\"},{"line_number":292,"context_line":"                    len(self.data.get(\"segmentation_id\", \"\")) \u003d\u003d 0:"},{"line_number":293,"context_line":"                # In this case the segmentation ID is not required, so we can"},{"line_number":294,"context_line":"                # ignore the field is required error."}],"source_content_type":"text/x-python","patch_set":6,"id":"1a6eadb0_0b1bd6ca","line":291,"updated":"2016-12-16 13:27:42.000000000","message":"Please don\u0027t use \\, instead put the whole expression in parens.","commit_id":"fb1ada5397639107a879cae23707bc56f7e64a8d"},{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"1a7789cfed788b87e7060d0f91f3b395b7826b9a","unresolved":false,"context_lines":[{"line_number":288,"context_line":"    def _clean_segmentation_id(self, data):"},{"line_number":289,"context_line":"        network_type \u003d data.get(\u0027network_type\u0027)"},{"line_number":290,"context_line":"        if \u0027segmentation_id\u0027 in self._errors:"},{"line_number":291,"context_line":"            if network_type not in self.nettypes_with_seg_id and \\"},{"line_number":292,"context_line":"                    len(self.data.get(\"segmentation_id\", \"\")) \u003d\u003d 0:"},{"line_number":293,"context_line":"                # In this case the segmentation ID is not required, so we can"},{"line_number":294,"context_line":"                # ignore the field is required error."}],"source_content_type":"text/x-python","patch_set":6,"id":"1a6eadb0_aa76f73b","line":291,"in_reply_to":"1a6eadb0_0b1bd6ca","updated":"2016-12-20 02:54:46.000000000","message":"Done","commit_id":"fb1ada5397639107a879cae23707bc56f7e64a8d"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"0802e406393c0a2d2985d847bef702a7fced95ee","unresolved":false,"context_lines":[{"line_number":289,"context_line":"        network_type \u003d data.get(\u0027network_type\u0027)"},{"line_number":290,"context_line":"        if \u0027segmentation_id\u0027 in self._errors:"},{"line_number":291,"context_line":"            if network_type not in self.nettypes_with_seg_id and \\"},{"line_number":292,"context_line":"                    len(self.data.get(\"segmentation_id\", \"\")) \u003d\u003d 0:"},{"line_number":293,"context_line":"                # In this case the segmentation ID is not required, so we can"},{"line_number":294,"context_line":"                # ignore the field is required error."},{"line_number":295,"context_line":"                del self._errors[\u0027segmentation_id\u0027]"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a6eadb0_eb485ace","line":292,"updated":"2016-12-16 13:27:42.000000000","message":"nit: use just self.data.get() in place of len(...) \u003d\u003d 0 -- in Python empty values are false.","commit_id":"fb1ada5397639107a879cae23707bc56f7e64a8d"},{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"1a7789cfed788b87e7060d0f91f3b395b7826b9a","unresolved":false,"context_lines":[{"line_number":289,"context_line":"        network_type \u003d data.get(\u0027network_type\u0027)"},{"line_number":290,"context_line":"        if \u0027segmentation_id\u0027 in self._errors:"},{"line_number":291,"context_line":"            if network_type not in self.nettypes_with_seg_id and \\"},{"line_number":292,"context_line":"                    len(self.data.get(\"segmentation_id\", \"\")) \u003d\u003d 0:"},{"line_number":293,"context_line":"                # In this case the segmentation ID is not required, so we can"},{"line_number":294,"context_line":"                # ignore the field is required error."},{"line_number":295,"context_line":"                del self._errors[\u0027segmentation_id\u0027]"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a6eadb0_ca717346","line":292,"in_reply_to":"1a6eadb0_eb485ace","updated":"2016-12-20 02:54:46.000000000","message":"Done","commit_id":"fb1ada5397639107a879cae23707bc56f7e64a8d"}]}
