Fix, test and Docs cruds: vehicle, client, rental plan#19
Open
critBus wants to merge 34 commits into
Open
Conversation
En el endpoint de obtener una instancia de Vehicle se agrego el soporte para 404, que estaba siendo solapado ‘except Exception’
En el endpoint de editar una instancia de Client se agrego el soporte para 404, que estaba siendo solapado por otras validaciones del serializador, lo que provocaba que no se retornase una adecuada respuesta 404 En este mismo endpoint se estaba tratando un QueryDict como un Dict, al intentar agregar y sobrescribir el valor del id de la instancia, esto se soluciono agregando y usando una funcion para pasar los datos de un QueryDict a un Dict
En el endpoint de obtener una instancia de Client se agrego el soporte para 404, que estaba siendo solapado ‘except Exception’
En el endpoint de editar un Rental Plan se agrego al principio un obtención de la entidad a editar, con su respectiva comprobación 404, fue necesario agregar este código en este sitio puesto que después se necesitaba esta instancia para pasársela al serializador con el objetivo de comprobar que los datos a editar eran únicos entre el resto de los Rental Plan existentes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.