feat: Implement user preferences (saved cities, search history) with Redis storage and API handlers

This commit is contained in:
2026-08-17 14:30:54 +03:00
parent 2907ed3e0d
commit 5842667fff
8 changed files with 1073 additions and 81 deletions

View File

@@ -221,11 +221,11 @@ Implement the complete multimodal trip planning service as specified in `docs/sp
- [x] Write tests: TestRouteReSearchOnChange
- [x] Run tests - all routing tests pass
### Task 21: Personalization [ ]
- [ ] Add user preferences (saved cities, history of searches)
- [ ] Store preferences in Redis or Postgres
- [ ] Write tests: TestUserPreferences
- [ ] Run tests - must pass before task 22
### Task 21: Personalization [x]
- [x] Add user preferences (saved cities, history of searches)
- [x] Store preferences in Redis
- [x] Write tests: TestUserPreferences
- [x] Run tests - all preferences tests pass
### Task 22: Observability and metrics [ ]
- [ ] Add metrics: cache hit-rate per layer, API quota remaining, circuit breaker trips, average search time