Commit graph

2991 commits

Author SHA1 Message Date
izzy
1fc98990ab
refactor: use respondWithCookie
refactor: merge start/end into one route
refactor: rename MaintenanceRepository to AppRepository
chore: use new ApiTag/Endpoint
refactor: apply other requested changes
2025-11-14 14:54:06 +00:00
izzy
15c0d5f27a
Merge remote-tracking branch 'origin/main' into feat/maintenance-mode 2025-11-14 14:02:27 +00:00
shenlong
88e7e21683
fix: prefer filename from body over path in mime validation (#23810)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
2025-11-13 17:26:34 +01:00
idubnori
2cefbf8ca3
chore: add "pnpm run migrations:revert" command (#23869) 2025-11-13 10:12:59 -06:00
Jason Rasmussen
4a6c50cd81
feat: endpoint versioning (#23858) 2025-11-13 08:18:43 -05:00
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
izzy
d67bec9a29
test: update tests according with last change 2025-11-12 12:06:14 +00:00
izzy
2b51ec8001
chore: move blanket exceptions into controllers 2025-11-12 11:57:36 +00:00
izzy
ef1eaee863
merge: remote-tracking branch 'origin/main' into feat/maintenance-mode 2025-11-12 11:54:19 +00:00
Jason Rasmussen
edde0f93ae
feat: endpoint descriptions (#23813) 2025-11-11 17:01:14 -05:00
David Wolff
0b3633db4f
fix(server): properly handle HEAD requests to SSR paths (#23788) 2025-11-11 07:47:11 -05:00
renovate[bot]
433a3cd339
chore(deps): update dependency @types/node to ^22.19.0 (#23786)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-10 23:50:50 -05:00
bo0tzz
8a73de018c
feat: mise monorepo tasks (#23691) 2025-11-10 15:55:15 +01:00
Jonathan Gilbert
d92df63f84
feat: random memories sort order (#20025) 2025-11-10 09:38:50 -05:00
izzy
4e029c2c5d
test: expect string jwt 2025-11-10 12:24:48 +00:00
izzy
b979bbb06d
chore: update tests due to refactors 2025-11-10 12:13:42 +00:00
izzy
a07e03c6ee
refactor: remove assertion 2025-11-10 11:48:22 +00:00
izzy
70f579bbc9
refactor: remove assertion which isn't necessary anymore 2025-11-10 11:48:21 +00:00
izzy
a7900ddd2c
refactor: assert secret exists in maintenance worker 2025-11-10 11:48:20 +00:00
izzy
36baeb603f
refactor: move static methods into util 2025-11-10 11:48:19 +00:00
Mees Frensel
9cc88ed2a6
feat: make memories slideshow duration configurable (#22783) 2025-11-08 17:46:43 -05:00
renovate[bot]
4905bba694
chore(deps): update base-image to v202511041104 (major) (#23718)
chore(deps): update base-image to v202511041104

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-08 13:48:35 -06:00
izzy
30481fb3b9
chore: lint 2025-11-07 18:01:36 +00:00
izzy
f434503c5b
refactor: annotate references to other services in worker service 2025-11-07 17:16:00 +00:00
izzy
1693e62788
chore: lint/format 2025-11-07 16:55:28 +00:00
izzy
15bffff2ea
fix: keep trying to stop immich until it succeeds (CLI issue) 2025-11-07 16:28:17 +00:00
izzy
0801935ca9
feat: perform 302 redirect at server level during maintenance 2025-11-07 16:00:56 +00:00
izzy
961f022602
chore: format files 2025-11-07 16:00:15 +00:00
izzy
ee0b27bebd
chore: clean up lint issues 2025-11-07 15:46:22 +00:00
izzy
998675f48c
feat: add SSR to maintenance API 2025-11-07 15:36:51 +00:00
izzy
572e1e424d
fix: always report no maintenance when usual API is available 2025-11-07 14:52:26 +00:00
izzy
3c4a60e0c5
fix: catch errors when closing app 2025-11-07 14:52:07 +00:00
izzy
f57c8b2b69
test: write cli service tests 2025-11-07 12:24:02 +00:00
izzy
9d869a88b6
test: write service mocks for maintenance mode 2025-11-07 11:59:27 +00:00
izzy
089a66669f
chore: fix formatting 2025-11-07 10:45:19 +00:00
izzy
f2536f9a96
refactor: remove repository mock 2025-11-07 10:35:38 +00:00
izzy
eb2fc6fc75
chore: fix server/web lints 2025-11-07 10:17:20 +00:00
izzy
c3794be917
refactor: remove business logic from repositories 2025-11-07 10:12:38 +00:00
izzy
8676a042eb
refactor: encode at point of usage 2025-11-06 17:58:13 +00:00
izzy
5c6e04cc8f
refactor: lint, open-api, remove old dto 2025-11-06 17:54:29 +00:00
izzy
a597b0edb1
refactor: always validate login (i.e. check cookie) 2025-11-06 17:50:48 +00:00
izzy
c8f3eef45d
refactor: use service instead of repository
chore: read token from cookie if possible
chore: rename client event to AppRestartV1
2025-11-06 15:35:17 +00:00
izzy
f2b941b066
refactor: use request#auth key 2025-11-06 15:32:18 +00:00
izzy
0638700720
refactor: close database connection after startup check 2025-11-06 15:31:42 +00:00
izzy
657dae061d
chore: remove @types/jsonwebtoken 2025-11-06 13:06:09 +00:00
izzy
8df1b5a263
test: add base service dependency to maintenance 2025-11-06 12:30:31 +00:00
izzy
14a51c7fbe
test: add mock for maintenance repository 2025-11-06 12:21:29 +00:00
izzy
2b659986c2
chore: lint fixes for server 2025-11-06 11:27:14 +00:00
izzy
d0590f5618
refactor: introduce AppRestartEvent w/o secret passing 2025-11-06 11:17:50 +00:00
izzy
ab9951e59e
chore: swap jsonwebtoken for jose 2025-11-05 18:12:02 +00:00