immich/server/src
Sergey Katsubo 2c54b506b3
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
..
bin feat: availability checks (#22185) 2025-09-19 12:18:42 -04:00
commands feat: change default media location to /data (#20367) 2025-07-29 16:58:50 -04:00
controllers feat: endpoint descriptions (#23813) 2025-11-11 17:01:14 -05:00
cores chore(server): fix logger context in StorageCore (#21534) 2025-09-08 17:28:40 -04:00
dtos feat: random memories sort order (#20025) 2025-11-10 09:38:50 -05:00
emails fix: missing email button padding (#22529) 2025-10-01 09:03:22 -05:00
middleware feat: view the user's app version on the user page (#21345) 2025-10-22 00:36:18 +02:00
queries fix(server): include the previous year in memories for January 1, 2, 3 (#23832) 2025-11-12 15:38:03 -06:00
repositories fix(server): include the previous year in memories for January 1, 2, 3 (#23832) 2025-11-12 15:38:03 -06:00
schema refactor: database column names (#23356) 2025-11-04 16:03:21 -05:00
services fix(server): properly handle HEAD requests to SSR paths (#23788) 2025-11-11 07:47:11 -05:00
sql-tools feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
utils feat: endpoint descriptions (#23813) 2025-11-11 17:01:14 -05:00
workers feat: allow unordered migrations in dev (#19881) 2025-07-11 10:58:34 -04:00
app.module.ts refactor: websocket repository (#23228) 2025-10-24 16:26:27 -04:00
config.ts feat: ocr (#18836) 2025-10-27 14:09:55 +00:00
constants.ts feat: endpoint descriptions (#23813) 2025-11-11 17:01:14 -05:00
database.ts refactor: database column names (#23356) 2025-11-04 16:03:21 -05:00
decorators.ts feat: endpoint descriptions (#23813) 2025-11-11 17:01:14 -05:00
enum.ts feat: endpoint descriptions (#23813) 2025-11-11 17:01:14 -05:00
main.ts feat: remove dep on cwd for workers (#20012) 2025-07-18 10:57:49 -04:00
types.ts feat: make memories slideshow duration configurable (#22783) 2025-11-08 17:46:43 -05:00
validation.spec.ts feat: batch change date and time relatively (#17717) 2025-08-07 13:42:33 +00:00
validation.ts fix: automatically remove leading/trailing whitespace from search que… (#22214) 2025-09-19 12:19:26 -04:00