-
Notifications
You must be signed in to change notification settings - Fork 3
Add DateModified to domain models + delta API endpoints #121
Copy link
Copy link
Open
Description
Parent PRD
Depends on
Nothing — fully server-side, can be worked in parallel.
Summary
Add DateModified (UTC timestamp) to the Post and Note domain models and their Azure Table Storage representations. Extend existing API endpoints to support a modifiedAfter query parameter for delta sync.
Domain changes
- Add
DateModified(DateTime UTC) toPost(inNoteBookmark.Domain/Post.cs) - Add
DateModified(DateTime UTC) toNote(inNoteBookmark.Domain/Note.cs) - Set
DateModifiedautomatically on every create and update operation
API changes
GET /api/posts?modifiedAfter={ISO8601}— returns only posts modified after the given timestamp; returns all posts if param omitted (non-breaking)GET /api/notes?modifiedAfter={ISO8601}— same for notesPATCH /api/posts/{id}andPATCH /api/notes/{id}correctly updateDateModified
Tests
GET /posts?modifiedAfter={ts}returns only records modified after tsGET /notes?modifiedAfter={ts}same- Both endpoints return all records when param omitted
- Empty-result and multi-result cases covered
- Use existing
WebApplicationFactory+NoteBookmarkApiTestFactorypattern
Acceptance Criteria
-
DateModifiedfield on Post and Note - All create/update paths set
DateModified = DateTime.UtcNow -
modifiedAfterparam on both list endpoints (non-breaking — omitting returns all) - API integration tests pass
Sync stories from PRD
User stories 7, 8, 19
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Projects
Status
In progress
Status
No status