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

Aperta
#406 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, openapi
Ambito
api, backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
C#
Stelle
1
Fork
0
Merge medio
2h 2m
PR unite (30g)
98

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nevridge/TaskFlow

Tutte le issue di nevridge/TaskFlow

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.