)]}'
{"bgpvpn_dashboard/dashboards/project/bgpvpn/forms.py":[{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"8a763a2b365c9afdce768e02e724b85c353b55e4","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    def handle(self, request, data):"},{"line_number":54,"context_line":"        params \u003d {}"},{"line_number":55,"context_line":"        for key in bgpvpn_common.RT_FORMAT_ATTRIBUTES:"},{"line_number":56,"context_line":"            params[key] \u003d bgpvpn_common.format_rt(data.pop(key, None))"},{"line_number":57,"context_line":"        params.update(data)"},{"line_number":58,"context_line":"        try:"},{"line_number":59,"context_line":"            if self.action \u003d\u003d \u0027update\u0027:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff82abbf_89dc5a19","line":56,"range":{"start_line":56,"start_character":12,"end_line":56,"end_character":70},"updated":"2017-11-20 09:58:16.000000000","message":"why do you reemove the \"if key in data\" check ?\n\nit seems to me that adding the key is possibly a source of issues in the case where the user is not allowed to touch this attribute\n\nI would be more comfortable if we had a unit test testing this part of the code for both admin an non-admin.","commit_id":"7f09ffd592ea5ffe1139296503fcb310f19fd17b"},{"author":{"_account_id":21800,"name":"Cedric Savignan","email":"cedric.savignan@orange.com","username":"csavignan"},"change_message_id":"111bd5e65c1231d280b76fb59e4838d6222f1ca6","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    def handle(self, request, data):"},{"line_number":54,"context_line":"        params \u003d {}"},{"line_number":55,"context_line":"        for key in bgpvpn_common.RT_FORMAT_ATTRIBUTES:"},{"line_number":56,"context_line":"            params[key] \u003d bgpvpn_common.format_rt(data.pop(key, None))"},{"line_number":57,"context_line":"        params.update(data)"},{"line_number":58,"context_line":"        try:"},{"line_number":59,"context_line":"            if self.action \u003d\u003d \u0027update\u0027:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff82abbf_2c1e7c0c","line":56,"range":{"start_line":56,"start_character":12,"end_line":56,"end_character":70},"in_reply_to":"ff82abbf_89dc5a19","updated":"2017-11-20 10:27:58.000000000","message":"It\u0027s my mistake.\nIt can\u0027t be to have a issue on the key. If a non admin user is logged this user has only access to bgpvpn form present in project section. The route targets fields aren\u0027t exists in this form (even is the admin user is logged) so these attributes are not in data. So is this case the condition is always false.","commit_id":"7f09ffd592ea5ffe1139296503fcb310f19fd17b"}]}
