-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PERINATAL - Revisar filtros y scroll listado perinatal #2857
base: master
Are you sure you want to change the base?
Conversation
2861d09
to
9d60d15
Compare
@@ -63,7 +63,7 @@ export class CarnetPerinatalService extends ResourceBaseHttp { | |||
if (profesional) { | |||
params.profesional = (profesional as IProfesional).id; | |||
} | |||
params.fechaControl = this.queryDateParams(fechaDesde as Date, fechaHasta as Date); | |||
params.fecha = this.queryDateParams(fechaDesde as Date, fechaHasta as Date); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cuidado con esto:
la fecha es la fecha inicial en la que se iniciaron los controles de embarazo y "fechaControl" es la fecha de un control.
El objetivo del listado es poder filtrar por fechas de controles, no necesariamente tiene que ser la fecha de la columna "Fecha inicio" del listado. La tarea no pide que se modifique el objetivo de la query, si no que coincidan los controles listados con la descarga csv.
Mismo comentario al intentar modificar: "controles.fechaControl" por “fecha”.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Se han realizado cambios.
f5f669e
to
50e5fa9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sugiero aumentar el tiempo de rebote [debounce] en "fechaHasta" ej: "2000", porque cambia rapidamente la fecha ingresada por tener la propiedad [min]="fechaDesdeEntrada".
El problema quedó resuelto. El motivo de ese problema no era el debounce sino la actualización de la fechaHastaEntrada en this.fechaHastaEntrada = moment(this.fechaHastaEntrada).endOf('day');
b6d8c4a
to
154cf31
Compare
public fechaHastaEntrada; | ||
public fechaDesdeEntrada: any; | ||
public fechaHastaEntrada: any; | ||
public fechaHastaEntrada2: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seria optimo para las buenas practicas de programacion en TS, evitaria utilizar en any y le asignaria un tipo de dato a estas variables, por ejemplo, como en este caso se trata de fecha, utilizaria Date como tipo. En el componente: fuera-agenda.component.ts hay un ejemplo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seria optimo para las buenas practicas de programacion en TS, evitaria utilizar en any y le asignaria un tipo de dato a estas variables, por ejemplo, como en este caso se trata de fecha, utilizaria Date como tipo. En el componente: fuera-agenda.component.ts hay un ejemplo.
Cambios hechos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mari estaria correcta las correciones de las observaciones que te realice. Ahora me aparece el siguiente error.
https://www.loom.com/share/5ae83f9dcc724d84b1f9cb7f1335ca23
Fijarse que la base de datos esté activa y el microservice también. |
@@ -123,14 +124,16 @@ export class ListadoPerinatalComponent implements OnInit { | |||
this.carnetPerinatalService.lastResults.next(null); | |||
this.carnetPerinatalService.paciente.next(this.paciente); | |||
this.carnetPerinatalService.fechaDesde.next(this.fechaDesdeEntrada); | |||
this.carnetPerinatalService.fechaHasta.next(this.fechaHastaEntrada); | |||
if (this.fechaHastaEntrada) { | |||
this.fechaHastaEntrada2 = moment(this.fechaHastaEntrada).endOf('day'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corregir esta linea ya que fechaHastaEntrada2 se encuentra declarada como Date y se le esta asignando un moment()
Requerimiento
https://proyectos.andes.gob.ar/browse/PER-82
Funcionalidad desarrollada
UserStory llegó a completarse
Requiere actualizaciones en la base de datos
Requiere actualizaciones en la API
Requiere actualizaciones en andes-test-integracion