feat(api): sort album suggestions by newest photo date #1264
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/album-suggestion-date-order"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary\n-
GET /api/album-suggestionsnow orders reviewable album suggestions by photo date, newest first:ORDER BY visible_in_default_queue DESC, ends_at DESC, starts_at DESC, id DESC(wasdefault_queue_rank ASC, created_at DESC).\n-visible_in_default_queue DESCstays the leading key so overlap-suppressed suggestions remain de-emphasized at the bottom (spec 003 default-queue visibility rule); only the event-worthiness rank ordering is replaced by date ordering.\n-ends_at/starts_atare the suggestion's capture-time span (NOT NULL), so ordering is deterministic;id DESCis the final tie-breaker.\n- Adds regression testlistSuggestionsOrdersNewestPhotoDateFirstplus acandidateWithRangehelper that lets a candidate declare explicit start/end instants while keeping fingerprints unique.\n\n## Validation\n-rtk ./gradlew :apps:api:test --tests '*AlbumSuggestionServiceTest*'→ BUILD SUCCESSFUL, 38 tests, 0 failures (new test included).\n- No existing test asserted the old rank ordering (existinglistSuggestionsassertions were order-insensitive).