Skip to content

Conversation

@ma7payne
Copy link
Contributor

Requerimiento

https://proyectos.andes.gob.ar/browse/REC-134

Funcionalidad desarrollada

  1. Se crea un ID unico de receta llamado "idReceta"
  2. Se aplica el codigo al crear una receta o al realizar las consultar mediante "buscarRecetas"

UserStories llegó a completarse

  • Si
  • No

Requiere actualizaciones en la base de datos

  • Si
  • No

Copy link
Contributor

@aldoEMatamala aldoEMatamala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

funcionamiento ok!

Copy link
Contributor

@MCele MCele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se solicitan cambios que quedan en la tarea https://proyectos.andes.gob.ar/browse/REC-146

@MCele MCele self-requested a review September 25, 2025 18:30
@MCele MCele added the receta label Oct 1, 2025
@agustin1996ra agustin1996ra force-pushed the REC-134 branch 2 times, most recently from a9ed630 to f0c7a82 Compare October 1, 2025 15:20
Copy link
Contributor

@agustin1996ra agustin1996ra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esta funcionando bien!!

@MCele MCele added the Aprobado label Oct 1, 2025
for (let i = 0;i < cantRecetas;i++) {
try {
receta = new Receta();
receta.idReceta = generarIdDesdeFecha();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mati el funcionamiento lo veo ok. Pero falta considerar que la creación del idReceta debería realizarse con el dato del campo createdAt, para evitar que alguna vez pudieran generarse dos recetas al mismo tiempo desde distintas instancias de la api. En la tarea https://proyectos.andes.gob.ar/browse/REC-146 se lo aclara como:
El id generado debe coincidir con los datos de la fecha crearse con la fecha de creación), si esto no pasa ver si no es conveniente aplicar otra estrategia de creación para que se haga luego de crear la receta (ver api recetar de ejemplo).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Listos los cambios @MCele! Ahora se comporta igual que en recetar la generación del ID, a partir de un post-save en el esquema de BD.

@MCele MCele removed the Aprobado label Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants