)]}'
{"horizon/forms/views.py":[{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"a0da8ee62817301eaa80dc878480c2968fe0afdb","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        return form_class(self.request, **self.get_form_kwargs())"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def form_invalid(self, form):"},{"line_number":173,"context_line":"        context \u003d self.get_context_data()"},{"line_number":174,"context_line":"        context \u003d self._populate_context(context)"},{"line_number":175,"context_line":"        context[\u0027form\u0027] \u003d form"},{"line_number":176,"context_line":"        return self.render_to_response(context)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_2e9f51b5","line":173,"range":{"start_line":173,"start_character":18,"end_line":173,"end_character":41},"updated":"2016-07-05 18:45:20.000000000","message":"That obviously leads to calling self._populate_context() twice (see line 148). Does it really fixes invalid field messages? If it does, then something is definitely broken in how we\u0027re handling forms validation.","commit_id":"1f4cb5a0a34bdd26206644df69fb9940e9932e9e"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"4e7ca56d1d43ae6dcd3f5e2d1dea3e4867c428f4","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        return form_class(self.request, **self.get_form_kwargs())"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def form_invalid(self, form):"},{"line_number":173,"context_line":"        context \u003d self.get_context_data()"},{"line_number":174,"context_line":"        context \u003d self._populate_context(context)"},{"line_number":175,"context_line":"        context[\u0027form\u0027] \u003d form"},{"line_number":176,"context_line":"        return self.render_to_response(context)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_fbfa1f42","line":173,"range":{"start_line":173,"start_character":18,"end_line":173,"end_character":41},"in_reply_to":"1aa78d24_2e9f51b5","updated":"2016-07-05 22:19:06.000000000","message":"It only might end up calling it twice.   I agree that this is not ideal.   \n\nIf you look at https://github.com/openstack/horizon/commit/fd92d8ec59c2f4d91f4a1c5463d95d1237f07b21  this is where the problem started at.   \n\nI can say with certainty that form validation is 100% broken if you have a form that also needs to populate get_context_data.","commit_id":"1f4cb5a0a34bdd26206644df69fb9940e9932e9e"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"df481d7dfbdec44d180dd658b25bf76b28238d45","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        return form_class(self.request, **self.get_form_kwargs())"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def form_invalid(self, form):"},{"line_number":173,"context_line":"        context \u003d self.get_context_data()"},{"line_number":174,"context_line":"        context \u003d self._populate_context(context)"},{"line_number":175,"context_line":"        context[\u0027form\u0027] \u003d form"},{"line_number":176,"context_line":"        return self.render_to_response(context)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_2ce0d828","line":173,"range":{"start_line":173,"start_character":18,"end_line":173,"end_character":41},"in_reply_to":"1aa78d24_fbfa1f42","updated":"2016-07-06 10:46:34.000000000","message":"Do we have some existing form validation scenario (in openstack_dashboard codebase) that was broken by above commit? This would be helpful in debugging the issue.","commit_id":"1f4cb5a0a34bdd26206644df69fb9940e9932e9e"}],"openstack_dashboard/dashboards/project/volumes/volumes/views.py":[{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"18c66bfc77fe3633d3934cb29ef5f867fbd77058","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        except Exception:"},{"line_number":128,"context_line":"            exceptions.handle(self.request,"},{"line_number":129,"context_line":"                              _(\u0027Unable to retrieve volume type list.\u0027))"},{"line_number":130,"context_line":"            return None"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"        # check if we have default volume type so we can present the"},{"line_number":133,"context_line":"        # description of no volume type differently"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_d5d90385","line":130,"updated":"2016-07-05 16:10:41.000000000","message":"I\u0027m not 100% sure this is correct, but helps with tests passing","commit_id":"bb0f7060757ef23079f44a2a40f1b3889aa9227a"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"06e9028cd5fa82cac7d713ca143506dd18b3c923","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        except Exception:"},{"line_number":128,"context_line":"            exceptions.handle(self.request,"},{"line_number":129,"context_line":"                              _(\u0027Unable to retrieve volume type list.\u0027))"},{"line_number":130,"context_line":"            return None"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"        # check if we have default volume type so we can present the"},{"line_number":133,"context_line":"        # description of no volume type differently"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_b542770e","line":130,"updated":"2016-07-05 16:11:13.000000000","message":"not 100% sure this is correct here or not   :\\    Helps to get tests to pass though","commit_id":"1f4cb5a0a34bdd26206644df69fb9940e9932e9e"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"067c661f960faa217bc0217bd23a39acaed4cde1","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"    def _get_volume_types(self):"},{"line_number":125,"context_line":"        try:"},{"line_number":126,"context_line":"            volume_types \u003d []"},{"line_number":127,"context_line":"            volume_types \u003d cinder.volume_type_list(self.request)"},{"line_number":128,"context_line":"        except Exception:"},{"line_number":129,"context_line":"            exceptions.handle(self.request,"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_5bb955cb","line":126,"updated":"2016-08-01 16:16:23.000000000","message":"this should be outside the try, while it works it\u0027s clearer to move up two lines.","commit_id":"215dbd8f5618ab1892fb74ee70e69cd70e839b62"}]}
