photoprism/internal/entity/query
Keith Martin b6687b6c29
Tests: Improve isolation and add fixes #5263
* Tests: fix random selection of deleted record causing test failure
* Tests: fix test folders being left after test
* Tests: ensure that required records are available
* Tests: make each package execute against it's own testdata folder to ensure no interpackage test failures
* Tests: add unit tests of CleanupTestFolder
* Tests:  Allow defer in TestMain
* Tests: rename testMain to runTestMain
2026-07-12 05:47:21 +02:00
..
testdata/directory Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
account.go Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
account_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
account_uploads.go Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
account_uploads_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
albums.go Config: Centralize SQL driver identifiers in pkg/dsn #5588 2026-05-17 14:47:43 +00:00
albums_test.go UX: Add batch edit dialog and API endpoints #271 #5324 2025-11-19 11:20:34 +01:00
camera.go Metadata: Add Camera Make and Model updates via CLI & API #5663 #5656 2026-06-15 09:25:44 +00:00
camera_test.go Metadata: Add Camera Make and Model updates via CLI & API #5663 #5656 2026-06-15 09:25:44 +00:00
categories.go Query: Add code comments for easier troubleshooting #5235 2025-09-30 21:46:42 +02:00
categories_test.go Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
clients.go Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
clients_test.go Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
counts.go Query: Add code comments for easier troubleshooting #5235 2025-09-30 21:46:42 +02:00
counts_test.go Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
covers.go Config: Centralize SQL driver identifiers in pkg/dsn #5588 2026-05-17 14:47:43 +00:00
covers_test.go Tests: Improve isolation and add fixes #5263 2026-07-12 05:47:21 +02:00
duplicates.go Config: Improve the naming of file and directory variables 2024-09-13 12:30:21 +02:00
duplicates_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
errors.go Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
errors_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
faces.go Cleanup: Use US English spelling in code comments 2026-05-17 13:46:24 +00:00
faces_test.go Config: Centralize SQL driver identifiers in pkg/dsn #5588 2026-05-17 14:47:43 +00:00
file_selection.go API: Scope file lookup and zip selection to the session 2026-05-29 07:04:47 +02:00
file_selection_test.go API: Scope file lookup and zip selection to the session 2026-05-29 07:04:47 +02:00
file_shares.go Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
file_shares_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
file_sync_download.go Index: Expanded folder-album reconciliation scope when needed #5437 2026-02-24 12:15:58 +01:00
file_sync_download_test.go Index: Expanded folder-album reconciliation scope when needed #5437 2026-02-24 12:15:58 +01:00
file_syncs.go Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
file_syncs_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
files.go Query: Add code comments for easier troubleshooting #5235 2025-09-30 21:46:42 +02:00
files_hashes.go Query: Add code comments for easier troubleshooting #5235 2025-09-30 21:46:42 +02:00
files_hashes_test.go Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
files_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
folders.go Config: Centralize SQL driver identifiers in pkg/dsn #5588 2026-05-17 14:47:43 +00:00
folders_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
label.go API: Add additional fields to label and subject edit forms #383 #3168 2025-01-17 02:55:07 +01:00
label_test.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
lens.go Metadata: Add Lens Make and Model updates via CLI & API #5644 #5656 2026-06-15 09:37:32 +02:00
lens_test.go Metadata: Add Lens Make and Model updates via CLI & API #5644 #5656 2026-06-15 09:37:32 +02:00
markers.go AI: Improve conflict resolution when merging face clusters #5167 2025-10-07 18:58:21 +02:00
markers_test.go AI: Improve conflict resolution when merging face clusters #5167 2025-10-07 18:58:21 +02:00
moments.go Moments: Dedup folder albums by filter, not slug #5615 #5614 2026-06-01 11:18:30 +00:00
moments_test.go Moments: Dedup folder albums by filter, not slug #5615 #5614 2026-06-01 11:18:30 +00:00
photo.go Index: Reassign primary when current primary is deleted #5625 2026-05-29 02:51:31 +00:00
photo_map.go Query: Add code comments for easier troubleshooting #5235 2025-09-30 21:46:42 +02:00
photo_map_test.go Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
photo_selection.go Photos: Limit by-UID and batch photo edits to the session scope 2026-06-10 19:49:27 +02:00
photo_selection_test.go Photos: Limit by-UID and batch photo edits to the session scope 2026-06-10 19:49:27 +02:00
photo_test.go Index: Reassign primary when current primary is deleted #5625 2026-05-29 02:51:31 +00:00
places.go Query: Add code comments for easier troubleshooting #5235 2025-09-30 21:46:42 +02:00
places_test.go Index: Set labels based on matching keywords in title or subject #4602 2024-11-01 12:15:39 +01:00
purge.go Metadata: Add Camera Make and Model updates via CLI & API #5663 #5656 2026-06-15 09:25:44 +00:00
purge_test.go Videos: Refactor codec, content and file type specifications #4770 2025-02-05 00:30:45 +01:00
query.go Links: Use canonical trailing-slash form for website URLs 2026-06-24 17:20:30 +02:00
query_test.go Tests: Improve isolation and add fixes #5263 2026-07-12 05:47:21 +02:00
sessions.go Query: Fix session id length check in sessions.go #4490 2024-08-29 10:44:32 +02:00
sessions_test.go Query: Fix session id length check in sessions.go #4490 2024-08-29 10:44:32 +02:00
subjects.go UX: Add batch edit dialog and API endpoints #271 #5324 2025-11-19 11:20:34 +01:00
subjects_test.go Backend: Move customize, pwa, ttl, query, classify and nsfw packages 2024-07-02 07:36:52 +02:00
users.go Metrics: Add file system and account usage info #5355 2025-11-30 10:43:58 +01:00
users_test.go Tests: Add unit tests #4973 2025-05-02 18:39:40 +02:00