immich/e2e/src
Timon 1fcc2b704b
feat(server)!: add isOwned filter to albums API (#28213)
* feat(server)!: add owned filter to albums API

BREAKING CHANGE: GET /albums with no parameters now returns all accessible albums (owned + shared-with-me) instead of only owned albums.

* document tri-state matrix

* web impl

* collapse to single method and handover branching to sql

* dedupe

* verify that owned, shared, and notShared counts are mapped independently from their respective queries

* refactor(server): add select:['id'] overload to albumRepository.getAll

Avoid fetching full album rows (with albumUsers/sharedLinks subqueries) in map.service where only album IDs are needed.

* focus relevant test filters

* fmt

* Revert "verify that owned, shared, and notShared counts are mapped independently from their respective queries"

This reverts commit 47aab458192c766de4662aada5a6841b091d2a80.

* sync sql

* Revert "document tri-state matrix"

This reverts commit a5b2355d0c6a084f2c021d517bf5ee80123d108c.

* address review comments

* inline shared condition and return as ternary

* sync sql

* use [...albums].sort

Array.toSorted() is not supported in Chrome 109

* use isShared and isOwned nomenclature

* fix e2e tests

* add params to sql query
2026-05-07 12:13:07 -04:00
..
api/specs feat(server): resolve duplicates (#25316) 2026-03-26 18:33:55 +00:00
specs feat(server)!: add isOwned filter to albums API (#28213) 2026-05-07 12:13:07 -04:00
ui feat(server)!: add isOwned filter to albums API (#28213) 2026-05-07 12:13:07 -04:00
docker-compose.ts feat: run maintenance tests in isolation, share containers between all … (#25856) 2026-02-10 11:05:06 -05:00
fixtures.ts feat(server): resolve duplicates (#25316) 2026-03-26 18:33:55 +00:00
generators.ts feat: improve asset-viewer next/prev perf and standardize preloading behavior (#24422) 2026-01-07 21:17:12 +01:00
responses.ts refactor(server)!: structured validation error responses (#28204) 2026-05-04 00:00:03 -04:00
utils.ts chore!: remove deviceId and deviceAssetId (#27818) 2026-04-15 15:00:33 -04:00