Repository navigation
feat(store): browse photo assets with QueryV1 photo predicates - #777
Conversation
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
500c46d to
74914f2
Compare
roborev: Combined Review (
|
74914f2 to
17a6ca9
Compare
roborev: Combined Review (
|
roborev: Combined Review (
|
8a2ba88 to
02268dd
Compare
roborev: Combined Review (
|
Scrolling a photo library repeated its full count and capture-time work for every page. Keep derived capture keys in the projection and seek from indexed sort keys. Count once per browse; duplicate collapse still needs the full matching population to choose representatives. Use the display file for photo metadata so sidecars cannot defeat NOT filters. Compare capture dates by the recorded local day and ignore case in camera and lens labels. Let browsers revalidate cached previews after checking current asset eligibility, without rereading unchanged images. The failing Windows retry test assumed every request had measurable wall clock latency. Use a controlled clock to assert exact request accounting and cancellation during the retry wait. Generated with Codex Co-authored-by: Codex <noreply@openai.com>
This comment has been minimized.
This comment has been minimized.
A valid cache revalidation response was an error in the generated clients. Expose unchanged previews separately from returned image bytes, including caller-owned streams, while preserving real HTTP errors. Keep the API schema and generated client contract aligned with the server response. Saved photo queries chose duplicate representatives before excluding ineligible assets. An excluded older copy could therefore hide an included photo. Apply the same eligibility boundary as direct photo queries before choosing representatives, while retaining document-query semantics. Implements both user-approved findings from #777 (comment) Generated with Codex Co-authored-by: Codex <noreply@openai.com>
roborev: Combined Review (
|
Clients can find photo assets by camera, lens, ISO, capture date, GPS, kind or asset ID. RAW/JPEG pairs appear once, with a total and exact preview links. Unreadable capture times sort last. Documents directs photo-only sorts to Photos.
Photo metadata filters use the selected display file, so a sidecar cannot make a Canon photo match
NOT camera:Canon. Camera and lens labels ignore case. Capture-date filters follow the recorded local day; capture sorting uses UTC when an offset is known.Stored, indexed capture keys let later pages seek from their cursor. The first page counts all matches, and later pages retain that total while reading live results. On a synthetic 100,000-photo library, ordinary 50-item continuation pages took about 2–6 ms across both SQLite drivers. For those queries, initial counts took about 1–3 seconds. Duplicate-collapsing queries still evaluate the full matching population; their continuation pages took about 1–1.7 seconds.
Browsers may cache previews but must revalidate before reuse. Matching previews return 304 without rereading the image; excluded assets and replaced displays return 404. Uses retained previews from #750.
The query editor previously rejected camera predicates as unknown fields. These real-daemon captures use a temporary synthetic vault.
Refs #465, slice 5, photo predicates and the browse route.