Skip to content

Conversation

@aldoEMatamala
Copy link
Contributor

@aldoEMatamala aldoEMatamala commented Jul 12, 2023

Requerimiento

https://proyectos.andes.gob.ar/browse/RUP-354

Funcionalidad desarrollada

  1. Se agrega restricción de no tener turnos disponibles para poder agregar un sobreturno desde RUP.
  2. Se agrega restricción de la agenda tenga al menos un paciente para poder agregar un sobreturno desde RUP.

UserStory llegó a completarse

  • Si
  • No
  • No corresponde

Requiere actualizaciones en la base de datos

  • Si
  • No

Requiere actualizaciones en la API

  • Si
  • No

Requiere actualizaciones en andes-test-integracion

  • Si
  • No

@aldoEMatamala aldoEMatamala requested review from a team as code owners July 12, 2023 13:42
@silviroa
Copy link
Contributor

USUARIO: amatamala
BUILD NUMBER: 9200
CYPRESS RUN: 8346
TEST START: 2023-07-12T14:01:40.447Z
TOTAL: 403
SUCCESS: 400
FAIL: 1
SKIPPED: 2

@silviroa
Copy link
Contributor

USUARIO: amatamala
BUILD NUMBER: 9204
CYPRESS RUN: 8350
TEST START: 2023-07-12T16:06:20.550Z
TOTAL: 403
SUCCESS: 401
FAIL: 0
SKIPPED: 2

@silviroa silviroa added test ok Los test estan ok and removed test fail labels Jul 12, 2023
Comment on lines 499 to 523
agendaTienePaciente(agenda) {
let existePaciente = false;
const lengthBloques = agenda.bloques.length;
let indexBloque = 0;
while (indexBloque < lengthBloques && !existePaciente) {
const _turnos = agenda.bloques[indexBloque].turnos.filter(t => {
existePaciente = (t.paciente && t.paciente.id) ? true : false;
});
indexBloque++;
}
return existePaciente;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Una forma de poder resumir un while con un filter es a través del metodo some(). Va un ejemplo:

agendaTienePaciente(agenda) {
return agenda.bloques.some((bloque) => {
return bloque.turnos.some((turno) => {
return turno.paciente && turno.paciente.id;
});
});
}

En caso de utilizarlo como guía dejar un comentario en dicha función para una mejor interpretación!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Buenas campe! gracias por la sugerencia, queda mas corto es verdad, quedo aplicado con un pequeño comentario. Saludos !

@negro89
Copy link
Contributor

negro89 commented Jul 24, 2023

Esperar hasta mediados de agosto para incorporar a prod.

@negro89 negro89 added the En pausa Desarrollo pausado label Jul 24, 2023
@aldoEMatamala aldoEMatamala force-pushed the RUP-354 branch 2 times, most recently from 6f25f27 to 95d39fa Compare August 16, 2023 12:18
@maring0019 maring0019 assigned maring0019 and unassigned maring0019 Oct 2, 2023
@maring0019 maring0019 self-requested a review October 2, 2023 15:34
maring0019

This comment was marked as off-topic.

@maring0019 maring0019 added changes requested Se solicitaron cambios and removed changes done changes requested Se solicitaron cambios labels Oct 2, 2023
@maring0019 maring0019 requested review from maring0019 and removed request for maring0019 October 2, 2023 18:05
@maring0019 maring0019 requested review from maring0019 and removed request for maring0019 October 2, 2023 18:16
@negro89
Copy link
Contributor

negro89 commented Dec 11, 2023

Tarea momentáneamente bloqueada por otro requerimiento.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Aprobado En pausa Desarrollo pausado has_conflicts test ok Los test estan ok

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants