immich/server/src/queries
Sergey Katsubo 2c54b506b3
Some checks failed
CLI Build / CLI Publish (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Docker / pre-job (push) Has been cancelled
Docs build / pre-job (push) Has been cancelled
Zizmor / Zizmor (push) Has been cancelled
Manage release PR / bump (push) Has been cancelled
Static Code Analysis / pre-job (push) Has been cancelled
Test / pre-job (push) Has been cancelled
Test / ShellCheck (push) Has been cancelled
Test / OpenAPI Clients (push) Has been cancelled
Test / SQL Schema Checks (push) Has been cancelled
CLI Build / Docker (push) Has been cancelled
Docker / Re-Tag ML () (push) Has been cancelled
Docker / Re-Tag ML (-armnn) (push) Has been cancelled
Docker / Re-Tag ML (-cuda) (push) Has been cancelled
Docker / Re-Tag ML (-openvino) (push) Has been cancelled
Docker / Re-Tag ML (-rknn) (push) Has been cancelled
Docker / Re-Tag ML (-rocm) (push) Has been cancelled
Docker / Re-Tag Server () (push) Has been cancelled
Docker / Build and Push ML (armnn, linux/arm64, -armnn) (push) Has been cancelled
Docker / Build and Push ML (cpu) (push) Has been cancelled
Docker / Build and Push ML (cuda, linux/amd64, -cuda) (push) Has been cancelled
Docker / Build and Push ML (openvino, linux/amd64, -openvino) (push) Has been cancelled
Docker / Build and Push ML (rknn, linux/arm64, -rknn) (push) Has been cancelled
Docker / Build and Push ML (rocm, linux/amd64, {"linux/amd64": "mich"}, -rocm) (push) Has been cancelled
Docker / Build and Push Server (push) Has been cancelled
Docker / Docker Build & Push Server Success (push) Has been cancelled
Docker / Docker Build & Push ML Success (push) Has been cancelled
Docs build / Docs Build (push) Has been cancelled
Static Code Analysis / Run Dart Code Analysis (push) Has been cancelled
Test / Test & Lint Server (push) Has been cancelled
Test / Unit Test CLI (push) Has been cancelled
Test / Unit Test CLI (Windows) (push) Has been cancelled
Test / Lint Web (push) Has been cancelled
Test / Test Web (push) Has been cancelled
Test / Test i18n (push) Has been cancelled
Test / End-to-End Lint (push) Has been cancelled
Test / Medium Tests (Server) (push) Has been cancelled
Test / End-to-End Tests (Server & CLI) (ubuntu-24.04-arm) (push) Has been cancelled
Test / End-to-End Tests (Server & CLI) (ubuntu-latest) (push) Has been cancelled
Test / End-to-End Tests (Web) (ubuntu-24.04-arm) (push) Has been cancelled
Test / End-to-End Tests (Web) (ubuntu-latest) (push) Has been cancelled
Test / End-to-End Tests Success (push) Has been cancelled
Test / Unit Test Mobile (push) Has been cancelled
Test / Unit Test ML (push) Has been cancelled
Test / .github Files Formatting (push) Has been cancelled
fix(server): include the previous year in memories for January 1, 2, 3 (#23832)
* Test memory creation in advance

Use year 2035 to make sure it's in the future of current time of a test run

* Use target year instead of current year when fetching assets during memory creation

This fixes an edge case of creating memories in advance when target year is
different from current year.
Example: job runs on 2025-12-31 (current year is 2025) and creates memories
to be shown on 2026-01-01 (target year is 2026). If using _current_ year in
calculation then range of years is capped at (2025 - 1 = 2024) thus excluding
2025-01-01 from created memories. With _target_ year it is (2026 - 1 = 2025),
so 2025-01-01 will be included in memories.

* Update sql queries
2025-11-12 15:38:03 -06:00
..
access.repository.sql refactor: database column names (#23356) 2025-11-04 16:03:21 -05:00
activity.repository.sql feat: rename schema (#19891) 2025-07-14 10:13:06 -04:00
album.repository.sql refactor: database column names (#23356) 2025-11-04 16:03:21 -05:00
album.user.repository.sql refactor: database column names (#23356) 2025-11-04 16:03:21 -05:00
api.key.repository.sql feat: rename schema (#19891) 2025-07-14 10:13:06 -04:00
asset.job.repository.sql refactor: database column names (#23356) 2025-11-04 16:03:21 -05:00
asset.repository.sql fix(server): include the previous year in memories for January 1, 2, 3 (#23832) 2025-11-12 15:38:03 -06:00
audit.repository.sql chore: no sql generation for queries with side effects (#18301) 2025-05-15 03:34:22 +00:00
database.repository.sql fix(server): drop old extension (#18400) 2025-05-21 09:53:40 -04:00
duplicate.repository.sql fix: filter null duplicate assets (#21507) 2025-09-02 01:20:01 -04:00
library.repository.sql feat: rename schema (#19891) 2025-07-14 10:13:06 -04:00
map.repository.sql refactor: database column names (#23356) 2025-11-04 16:03:21 -05:00
memory.repository.sql refactor: database column names (#23356) 2025-11-04 16:03:21 -05:00
move.repository.sql chore: no sql generation for queries with side effects (#18301) 2025-05-15 03:34:22 +00:00
notification.repository.sql feat: rename schema (#19891) 2025-07-14 10:13:06 -04:00
ocr.repository.sql feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
partner.repository.sql feat: rename schema (#19891) 2025-07-14 10:13:06 -04:00
person.repository.sql feat!: absolute file paths (#19995) 2025-07-18 10:57:29 -04:00
search.repository.sql feat(web): add search filter for camera lens model. (#21792) 2025-10-24 14:41:34 -04:00
session.repository.sql feat: logout sessions on password change (#23188) 2025-10-27 13:16:10 +00:00
shared.link.asset.repository.sql refactor: database column names (#23356) 2025-11-04 16:03:21 -05:00
shared.link.repository.sql refactor: database column names (#23356) 2025-11-04 16:03:21 -05:00
stack.repository.sql refactor: database column names (#23356) 2025-11-04 16:03:21 -05:00
sync.checkpoint.repository.sql fix: album asset sync must sync new assets in a shared album (#20655) 2025-08-05 17:53:51 +01:00
sync.repository.sql refactor: database column names (#23356) 2025-11-04 16:03:21 -05:00
system.metadata.repository.sql chore: no sql generation for queries with side effects (#18301) 2025-05-15 03:34:22 +00:00
tag.repository.sql fix: bad merge (#23610) 2025-11-04 16:22:45 -05:00
trash.repository.sql feat: rename schema (#19891) 2025-07-14 10:13:06 -04:00
user.repository.sql feat(server): add immich.users.total metric (#21780) 2025-10-08 13:24:11 -04:00
version.history.repository.sql chore: no sql generation for queries with side effects (#18301) 2025-05-15 03:34:22 +00:00
view.repository.sql fix(server): folder sort order (#21383) 2025-08-28 20:22:40 -04:00