)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1b193b362d6e5a992e8c9ca751f40166a16663f9","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Wangliangyu \u003cwangliangyu@gohighsec.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2019-01-24 14:41:38 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"There is only one prompt for cidr and gateway_ip"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This commit makes 3 changes:"},{"line_number":10,"context_line":" - There should be only one prompt for field self. But required check"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9fdfeff1_3311675e","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":8},"updated":"2019-01-29 19:35:22.000000000","message":"Ensure?","commit_id":"689c5dce21ed9364dea7f5d3fea4a5809fbd6b06"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"891d90ef0d3d2dbaadcb4eb9cb41a77b6c9e89d8","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Wangliangyu \u003cwangliangyu@gohighsec.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2019-01-24 14:41:38 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"There is only one prompt for cidr and gateway_ip"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This commit makes 3 changes:"},{"line_number":10,"context_line":" - There should be only one prompt for field self. But required check"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9fdfeff1_9720c39d","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":8},"in_reply_to":"9fdfeff1_3311675e","updated":"2019-02-06 08:01:43.000000000","message":"Done","commit_id":"689c5dce21ed9364dea7f5d3fea4a5809fbd6b06"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1b193b362d6e5a992e8c9ca751f40166a16663f9","unresolved":false,"context_lines":[{"line_number":12,"context_line":"   So this commit set the fields required and remove the prompt when"},{"line_number":13,"context_line":"   unnecessary."},{"line_number":14,"context_line":" - According to below code:"},{"line_number":15,"context_line":"   https://github.com/openstack/horizon/blob/master/horizon/workflows/base.py#L157"},{"line_number":16,"context_line":"   We know that initial equals context, and hidden with_subnet under"},{"line_number":17,"context_line":"   subnet tab will be conflict with the one under networks tab."},{"line_number":18,"context_line":"   So, this commit get with_subnet from initial, instead of cleaned_data."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9fdfeff1_b32b1793","line":15,"range":{"start_line":15,"start_character":3,"end_line":15,"end_character":82},"updated":"2019-01-29 19:35:22.000000000","message":"Could you use more specific URL with a commit hash like [1]? Otherwise, the commit message will be unclear soon.\n\n[1] https://github.com/openstack/horizon/blob/65545fb1591de6053bc0885f91bfe682df524e4c/horizon/workflows/base.py#L157","commit_id":"689c5dce21ed9364dea7f5d3fea4a5809fbd6b06"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"891d90ef0d3d2dbaadcb4eb9cb41a77b6c9e89d8","unresolved":false,"context_lines":[{"line_number":12,"context_line":"   So this commit set the fields required and remove the prompt when"},{"line_number":13,"context_line":"   unnecessary."},{"line_number":14,"context_line":" - According to below code:"},{"line_number":15,"context_line":"   https://github.com/openstack/horizon/blob/master/horizon/workflows/base.py#L157"},{"line_number":16,"context_line":"   We know that initial equals context, and hidden with_subnet under"},{"line_number":17,"context_line":"   subnet tab will be conflict with the one under networks tab."},{"line_number":18,"context_line":"   So, this commit get with_subnet from initial, instead of cleaned_data."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9fdfeff1_3731d7ed","line":15,"range":{"start_line":15,"start_character":3,"end_line":15,"end_character":82},"in_reply_to":"9fdfeff1_b32b1793","updated":"2019-02-06 08:01:43.000000000","message":"Done","commit_id":"689c5dce21ed9364dea7f5d3fea4a5809fbd6b06"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1b193b362d6e5a992e8c9ca751f40166a16663f9","unresolved":false,"context_lines":[{"line_number":14,"context_line":" - According to below code:"},{"line_number":15,"context_line":"   https://github.com/openstack/horizon/blob/master/horizon/workflows/base.py#L157"},{"line_number":16,"context_line":"   We know that initial equals context, and hidden with_subnet under"},{"line_number":17,"context_line":"   subnet tab will be conflict with the one under networks tab."},{"line_number":18,"context_line":"   So, this commit get with_subnet from initial, instead of cleaned_data."},{"line_number":19,"context_line":" - Even with_subnet is False, the field checks are also valid and prevent"},{"line_number":20,"context_line":"   the submitting.So, this commit remove there fields error promprts."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9fdfeff1_f30e7f39","line":17,"range":{"start_line":17,"start_character":14,"end_line":17,"end_character":30},"updated":"2019-01-29 19:35:22.000000000","message":"\"will conflict\"?","commit_id":"689c5dce21ed9364dea7f5d3fea4a5809fbd6b06"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"891d90ef0d3d2dbaadcb4eb9cb41a77b6c9e89d8","unresolved":false,"context_lines":[{"line_number":14,"context_line":" - According to below code:"},{"line_number":15,"context_line":"   https://github.com/openstack/horizon/blob/master/horizon/workflows/base.py#L157"},{"line_number":16,"context_line":"   We know that initial equals context, and hidden with_subnet under"},{"line_number":17,"context_line":"   subnet tab will be conflict with the one under networks tab."},{"line_number":18,"context_line":"   So, this commit get with_subnet from initial, instead of cleaned_data."},{"line_number":19,"context_line":" - Even with_subnet is False, the field checks are also valid and prevent"},{"line_number":20,"context_line":"   the submitting.So, this commit remove there fields error promprts."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9fdfeff1_176293d9","line":17,"range":{"start_line":17,"start_character":14,"end_line":17,"end_character":30},"in_reply_to":"9fdfeff1_f30e7f39","updated":"2019-02-06 08:01:43.000000000","message":"Done","commit_id":"689c5dce21ed9364dea7f5d3fea4a5809fbd6b06"}],"openstack_dashboard/dashboards/project/networks/workflows.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"076645154d78d8425bbbaa42f48bf77ede6d68e5","unresolved":false,"context_lines":[{"line_number":312,"context_line":"            if netaddr.IPAddress(gateway_ip).version is not ip_version:"},{"line_number":313,"context_line":"                msg \u003d _(\u0027Gateway IP and IP version are inconsistent.\u0027)"},{"line_number":314,"context_line":"                raise forms.ValidationError(msg)"},{"line_number":315,"context_line":"        if not is_create and not no_gateway and not gateway_ip:"},{"line_number":316,"context_line":"            msg \u003d _(\u0027Specify IP address of gateway or \u0027"},{"line_number":317,"context_line":"                    \u0027check \"Disable Gateway\" checkbox.\u0027)"},{"line_number":318,"context_line":"            raise forms.ValidationError(msg)"},{"line_number":319,"context_line":"        if no_gateway and \u0027gateway_ip\u0027 in self._errors:"},{"line_number":320,"context_line":"            del self._errors[\u0027gateway_ip\u0027]"},{"line_number":321,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bfdaf3ff_27c5c9f1","side":"PARENT","line":318,"range":{"start_line":315,"start_character":7,"end_line":318,"end_character":44},"updated":"2019-01-17 19:27:40.000000000","message":"You dropped this. Why can you drop this check?","commit_id":"64542397d8c1ba67d9c83e350d8bc46c8e390453"},{"author":{"_account_id":25946,"name":"Wangliangyu","email":"wangly2097@chinaunicom.cn","username":"wangliangyu"},"change_message_id":"3a931527a0455ef6e00d3f4c432f9f304fbb52de","unresolved":false,"context_lines":[{"line_number":312,"context_line":"            if netaddr.IPAddress(gateway_ip).version is not ip_version:"},{"line_number":313,"context_line":"                msg \u003d _(\u0027Gateway IP and IP version are inconsistent.\u0027)"},{"line_number":314,"context_line":"                raise forms.ValidationError(msg)"},{"line_number":315,"context_line":"        if not is_create and not no_gateway and not gateway_ip:"},{"line_number":316,"context_line":"            msg \u003d _(\u0027Specify IP address of gateway or \u0027"},{"line_number":317,"context_line":"                    \u0027check \"Disable Gateway\" checkbox.\u0027)"},{"line_number":318,"context_line":"            raise forms.ValidationError(msg)"},{"line_number":319,"context_line":"        if no_gateway and \u0027gateway_ip\u0027 in self._errors:"},{"line_number":320,"context_line":"            del self._errors[\u0027gateway_ip\u0027]"},{"line_number":321,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bfdaf3ff_07e0b6f9","side":"PARENT","line":318,"range":{"start_line":315,"start_character":7,"end_line":318,"end_character":44},"in_reply_to":"bfdaf3ff_27c5c9f1","updated":"2019-01-18 13:23:52.000000000","message":"is_create default is True, and this condition default is False. So, that is okay.\nThe parameter is_create is False in the above changed file.But I had already set its gateway_ip field required\u003dTrue and its error message \u0027Specify IP address of gateway or check \"Disable Gateway\" checkbox.\u0027","commit_id":"64542397d8c1ba67d9c83e350d8bc46c8e390453"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"076645154d78d8425bbbaa42f48bf77ede6d68e5","unresolved":false,"context_lines":[{"line_number":143,"context_line":"                                       \u0027data-slug\u0027: \u0027ipversion\u0027,"},{"line_number":144,"context_line":"                                   }),"},{"line_number":145,"context_line":"                                   label\u003d_(\"IP Version\"),"},{"line_number":146,"context_line":"                                   required\u003dFalse)"},{"line_number":147,"context_line":"    cidr \u003d forms.IPField(label\u003d_(\"Network Address\"),"},{"line_number":148,"context_line":"                         initial\u003d\"\","},{"line_number":149,"context_line":"                         error_messages\u003d{"}],"source_content_type":"text/x-python","patch_set":1,"id":"bfdaf3ff_47e24da2","line":146,"updated":"2019-01-17 19:27:40.000000000","message":"why do you move this field?\nI would like to know how it is related to this change.","commit_id":"b2cf81574cb22e5c364382737e308ee3d34f0fbf"},{"author":{"_account_id":25946,"name":"Wangliangyu","email":"wangly2097@chinaunicom.cn","username":"wangliangyu"},"change_message_id":"3a931527a0455ef6e00d3f4c432f9f304fbb52de","unresolved":false,"context_lines":[{"line_number":143,"context_line":"                                       \u0027data-slug\u0027: \u0027ipversion\u0027,"},{"line_number":144,"context_line":"                                   }),"},{"line_number":145,"context_line":"                                   label\u003d_(\"IP Version\"),"},{"line_number":146,"context_line":"                                   required\u003dFalse)"},{"line_number":147,"context_line":"    cidr \u003d forms.IPField(label\u003d_(\"Network Address\"),"},{"line_number":148,"context_line":"                         initial\u003d\"\","},{"line_number":149,"context_line":"                         error_messages\u003d{"}],"source_content_type":"text/x-python","patch_set":1,"id":"bfdaf3ff_87ba6607","line":146,"in_reply_to":"bfdaf3ff_47e24da2","updated":"2019-01-18 13:23:52.000000000","message":"For getting the ip_version from the cleaned data in method clean_gateway_ip and clean_cidr.","commit_id":"b2cf81574cb22e5c364382737e308ee3d34f0fbf"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"372b430c2298ac4fe17d67e35d28a5f987159fa3","unresolved":false,"context_lines":[{"line_number":143,"context_line":"                                       \u0027data-slug\u0027: \u0027ipversion\u0027,"},{"line_number":144,"context_line":"                                   }),"},{"line_number":145,"context_line":"                                   label\u003d_(\"IP Version\"),"},{"line_number":146,"context_line":"                                   required\u003dFalse)"},{"line_number":147,"context_line":"    cidr \u003d forms.IPField(label\u003d_(\"Network Address\"),"},{"line_number":148,"context_line":"                         initial\u003d\"\","},{"line_number":149,"context_line":"                         error_messages\u003d{"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_a405ae7c","line":146,"in_reply_to":"bfdaf3ff_87ba6607","updated":"2019-01-21 05:59:54.000000000","message":"clean_xxx method should focus on a check inside a target field and it should not refer to other fields. Cross-field check should be implemented in clean() method.\n\nIt is not a good idea to change the order of the fields to allow cross field check.","commit_id":"b2cf81574cb22e5c364382737e308ee3d34f0fbf"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"076645154d78d8425bbbaa42f48bf77ede6d68e5","unresolved":false,"context_lines":[{"line_number":281,"context_line":"                        \u0027allowed\u0027: range_str})"},{"line_number":282,"context_line":"                raise forms.ValidationError(msg)"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    def clean_gateway_ip(self):"},{"line_number":285,"context_line":"        ip_version \u003d int(self.cleaned_data.get(\u0027ip_version\u0027))"},{"line_number":286,"context_line":"        gateway_ip \u003d self.cleaned_data.get(\u0027gateway_ip\u0027)"},{"line_number":287,"context_line":"        if (gateway_ip and"}],"source_content_type":"text/x-python","patch_set":1,"id":"bfdaf3ff_47900dee","line":284,"updated":"2019-01-17 19:27:40.000000000","message":"Don\u0027t you need to consider \"no_gateway\" here?\nWhen no_gateway is True, you don\u0027t need to validate a specified data in \"gateway_ip\".","commit_id":"b2cf81574cb22e5c364382737e308ee3d34f0fbf"},{"author":{"_account_id":25946,"name":"Wangliangyu","email":"wangly2097@chinaunicom.cn","username":"wangliangyu"},"change_message_id":"3a931527a0455ef6e00d3f4c432f9f304fbb52de","unresolved":false,"context_lines":[{"line_number":281,"context_line":"                        \u0027allowed\u0027: range_str})"},{"line_number":282,"context_line":"                raise forms.ValidationError(msg)"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    def clean_gateway_ip(self):"},{"line_number":285,"context_line":"        ip_version \u003d int(self.cleaned_data.get(\u0027ip_version\u0027))"},{"line_number":286,"context_line":"        gateway_ip \u003d self.cleaned_data.get(\u0027gateway_ip\u0027)"},{"line_number":287,"context_line":"        if (gateway_ip and"}],"source_content_type":"text/x-python","patch_set":1,"id":"bfdaf3ff_0744361a","line":284,"in_reply_to":"bfdaf3ff_47900dee","updated":"2019-01-18 13:23:52.000000000","message":"Okay, for getting no gateway here, I also moved the its field.","commit_id":"b2cf81574cb22e5c364382737e308ee3d34f0fbf"},{"author":{"_account_id":29313,"name":"Vishal Manchanda","email":"manchandavishal143@gmail.com","username":"vishalmanchanda"},"change_message_id":"e2ef2b08723215d4ce3c1c3a143c892b88cc88f7","unresolved":false,"context_lines":[{"line_number":285,"context_line":"        ip_version \u003d int(self.cleaned_data.get(\u0027ip_version\u0027))"},{"line_number":286,"context_line":"        gateway_ip \u003d self.cleaned_data.get(\u0027gateway_ip\u0027)"},{"line_number":287,"context_line":"        if (gateway_ip and"},{"line_number":288,"context_line":"            netaddr.IPAddress(gateway_ip).version is not ip_version):"},{"line_number":289,"context_line":"            msg \u003d _(\u0027Gateway IP and IP version are inconsistent.\u0027)"},{"line_number":290,"context_line":"            raise forms.ValidationError(msg)"},{"line_number":291,"context_line":"        return gateway_ip"}],"source_content_type":"text/x-python","patch_set":1,"id":"bfdaf3ff_dace15b3","line":288,"range":{"start_line":288,"start_character":12,"end_line":288,"end_character":69},"updated":"2019-01-17 17:22:07.000000000","message":"This is a known issue (pep8 e129) which isn\u0027t ignored in horizon, you can correct it by indenting this line with 4 extra spaces, for more info regarding this failure you can refer here [1]\n[1] https://github.com/PyCQA/pycodestyle/issues/386","commit_id":"b2cf81574cb22e5c364382737e308ee3d34f0fbf"},{"author":{"_account_id":25946,"name":"Wangliangyu","email":"wangly2097@chinaunicom.cn","username":"wangliangyu"},"change_message_id":"3a931527a0455ef6e00d3f4c432f9f304fbb52de","unresolved":false,"context_lines":[{"line_number":285,"context_line":"        ip_version \u003d int(self.cleaned_data.get(\u0027ip_version\u0027))"},{"line_number":286,"context_line":"        gateway_ip \u003d self.cleaned_data.get(\u0027gateway_ip\u0027)"},{"line_number":287,"context_line":"        if (gateway_ip and"},{"line_number":288,"context_line":"            netaddr.IPAddress(gateway_ip).version is not ip_version):"},{"line_number":289,"context_line":"            msg \u003d _(\u0027Gateway IP and IP version are inconsistent.\u0027)"},{"line_number":290,"context_line":"            raise forms.ValidationError(msg)"},{"line_number":291,"context_line":"        return gateway_ip"}],"source_content_type":"text/x-python","patch_set":1,"id":"bfdaf3ff_874fc632","line":288,"range":{"start_line":288,"start_character":12,"end_line":288,"end_character":69},"in_reply_to":"bfdaf3ff_a702193c","updated":"2019-01-18 13:23:52.000000000","message":"Done","commit_id":"b2cf81574cb22e5c364382737e308ee3d34f0fbf"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"076645154d78d8425bbbaa42f48bf77ede6d68e5","unresolved":false,"context_lines":[{"line_number":285,"context_line":"        ip_version \u003d int(self.cleaned_data.get(\u0027ip_version\u0027))"},{"line_number":286,"context_line":"        gateway_ip \u003d self.cleaned_data.get(\u0027gateway_ip\u0027)"},{"line_number":287,"context_line":"        if (gateway_ip and"},{"line_number":288,"context_line":"            netaddr.IPAddress(gateway_ip).version is not ip_version):"},{"line_number":289,"context_line":"            msg \u003d _(\u0027Gateway IP and IP version are inconsistent.\u0027)"},{"line_number":290,"context_line":"            raise forms.ValidationError(msg)"},{"line_number":291,"context_line":"        return gateway_ip"}],"source_content_type":"text/x-python","patch_set":1,"id":"bfdaf3ff_a702193c","line":288,"range":{"start_line":288,"start_character":12,"end_line":288,"end_character":69},"in_reply_to":"bfdaf3ff_dace15b3","updated":"2019-01-17 19:27:40.000000000","message":"In addition, \u0027is not\u0027 operation is not appropriate here. Use \u0027\u003d\u003d\u0027 instead.","commit_id":"b2cf81574cb22e5c364382737e308ee3d34f0fbf"}]}
