Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Este PR agrega lógica condicional y validación al wizard de postulación, para omitir preguntas no aplicables según respuestas previas (p.ej. has_idea) y validar inputs antes de avanzar, preservando estado entre turnos.
Changes:
- Se incorporó evaluación de condiciones (
conditional,condition_field,condition_values) para saltear preguntas no aplicables. - Se agregó validación de respuestas (email/teléfono/CI/opciones/longitud mínima) con errores que no avanzan el wizard.
- Se ajustó la rehidratación del wizard para usar
current_question=1como fallback.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| app/utils/validators.py | Nuevos helpers de validación (email/teléfono/CI) y excepción ValidationError. |
| app/utils/init.py | Marca app.utils como paquete e introduce docstring de módulo. |
| app/graph/workflow.py | Cambia fallback de rehidratación de current_question a 1. |
| app/config/questions.py | Añade metadatos condicionales a preguntas 13–20 basados en has_idea. |
| app/agents/wizard_workflow/wizard_graph.py | Ajustes de routing del sub-grafo del wizard y mensaje de finalización. |
| app/agents/wizard_workflow/nodes.py | Implementa salto condicional de preguntas y validación antes de persistir respuestas. |
| app/agents/validator.py | Corrige import para usar app.utils.validators vía import relativo. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
EmiLabarthe
approved these changes
Feb 24, 2026
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.
Se implementó lógica condicional y validación en el wizard de postulación.
Ahora el flujo evalúa conditional/condition_field/condition_values en [questions.py] para saltar preguntas no aplicables (ej. con has_idea=NO no muestra 13–20), valida respuestas antes de avanzar (email/teléfono/CI/opciones/longitud mínima), mantiene la misma pregunta cuando hay error de validación y persiste correctamente wizard_responses/estado entre turnos.
Además, se ajustó la rehidratación para iniciar en current_question=1 como fallback seguro. Se implementó lógica condicional y validación en el wizard de postulación.
Ahora el flujo evalúa conditional/condition_field/condition_values en [questions.py] para saltar preguntas no aplicables (ej. con has_idea=NO no muestra 13–20), valida respuestas antes de avanzar (email/teléfono/CI/opciones/longitud mínima), mantiene la misma pregunta cuando hay error de validación y persiste correctamente wizard_responses/estado entre turnos.
Además, se ajustó la rehidratación para iniciar en current_question=1 como fallback seguro.