Attribute PUT /JournalEntries todoTaskItemIds by the user's local date

Abierto
#406 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp, openapi
Área
api, backend

Línea de trabajo

Start by grooming the issue, then inspect the PUT /JournalEntries/{id} handler, the other journal endpoints that accept a timezone offset, and the assistant's update_journal caller. Check how the web app calls this endpoint and update docs/API.md; done means the assistant sends the offset, the response uses the user's local date, and an integration test covers the change.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

Follow-up to #387. Part of #366.

Problem

PUT /JournalEntries/{id} attributes the todoTaskItemIds in its response by UTC date, not by the user's local date. Journal dates are the user's local dates, and carry-forward already uses the client's timezone offset with no UTC fallback, so near midnight the response can attribute tasks to the wrong day.

#387 leaves this as it is: the behaviour is documented, and nothing in the web app reads the field.

To decide in grooming

  • Add a timezone offset to the request and attribute by the user's local date, as the other journal endpoints do.
  • Check whether the assistant (update_journal) reads todoTaskItemIds. If it does, this is more urgent.
  • Check how the web app calls the endpoint, and update docs/API.md.

Notes

  • This changes the API contract, so the assistant has to send the offset. After the monorepo move (#397), so both ship in one PR and the integration test covers it.
  • Needs grooming first.
Lenguaje dominante
C#
Estrellas
1
Forks
0
Merge medio
2 h 2 min
PR fusionados (30 d)
98

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nevridge/TaskFlow

Todos los issues de nevridge/TaskFlow

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.