[PR #4263] [MERGED] feat(server): Add week numbers for templating #10310

Closed
opened 2026-02-05 14:19:34 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/4263
Author: @danieldietzler
Created: 9/28/2023
Status: Merged
Merged: 9/28/2023
Merged by: @jrasm91

Base: mainHead: feat/storage-template-weeks


📝 Commits (5)

  • bd41860 add week numbers as template option
  • 56ed185 generate api
  • 6ccc6a4 fix tests
  • d15af44 change example date to show week padding
  • 932daa9 change example date to immich birthday

📊 Changes

13 files changed (+58 additions, -4 deletions)

View changed files

📝 cli/src/api/open-api/api.ts (+6 -0)
📝 mobile/openapi/doc/SystemConfigTemplateStorageOptionDto.md (+1 -0)
📝 mobile/openapi/lib/model/system_config_template_storage_option_dto.dart (+11 -1)
📝 mobile/openapi/test/system_config_template_storage_option_dto_test.dart (+5 -0)
📝 server/immich-openapi-specs.json (+7 -0)
📝 server/src/domain/storage-template/storage-template.service.ts (+2 -0)
📝 server/src/domain/system-config/response-dto/system-config-template-storage-option.dto.ts (+1 -0)
📝 server/src/domain/system-config/system-config.constants.ts (+2 -0)
📝 server/src/domain/system-config/system-config.service.spec.ts (+2 -0)
📝 server/src/domain/system-config/system-config.service.ts (+2 -0)
📝 web/src/api/open-api/api.ts (+6 -0)
📝 web/src/lib/components/admin-page/settings/storage-template/storage-template-settings.svelte (+2 -1)
📝 web/src/lib/components/admin-page/settings/storage-template/supported-datetime-panel.svelte (+11 -2)

📄 Description

Add the option to use week numbers ('W') and padded week numbers ('WW') for storage templating.

Screenshot 2023-09-28 at 18 59 17 Screenshot 2023-09-28 at 18 58 20

Closes #4260.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/immich-app/immich/pull/4263 **Author:** [@danieldietzler](https://github.com/danieldietzler) **Created:** 9/28/2023 **Status:** ✅ Merged **Merged:** 9/28/2023 **Merged by:** [@jrasm91](https://github.com/jrasm91) **Base:** `main` ← **Head:** `feat/storage-template-weeks` --- ### 📝 Commits (5) - [`bd41860`](https://github.com/immich-app/immich/commit/bd418609cbedadb217cfd45f59673daa5b86b4cb) add week numbers as template option - [`56ed185`](https://github.com/immich-app/immich/commit/56ed18523339a3b7b0090c8dad35df7b023d856b) generate api - [`6ccc6a4`](https://github.com/immich-app/immich/commit/6ccc6a4d909a8abe42f3d0a1bf35792433ce88ec) fix tests - [`d15af44`](https://github.com/immich-app/immich/commit/d15af442c618e6655b8614aaaeda53a0e1046e6f) change example date to show week padding - [`932daa9`](https://github.com/immich-app/immich/commit/932daa92de42627e09c991fb17166cca120dbc91) change example date to immich birthday ### 📊 Changes **13 files changed** (+58 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `cli/src/api/open-api/api.ts` (+6 -0) 📝 `mobile/openapi/doc/SystemConfigTemplateStorageOptionDto.md` (+1 -0) 📝 `mobile/openapi/lib/model/system_config_template_storage_option_dto.dart` (+11 -1) 📝 `mobile/openapi/test/system_config_template_storage_option_dto_test.dart` (+5 -0) 📝 `server/immich-openapi-specs.json` (+7 -0) 📝 `server/src/domain/storage-template/storage-template.service.ts` (+2 -0) 📝 `server/src/domain/system-config/response-dto/system-config-template-storage-option.dto.ts` (+1 -0) 📝 `server/src/domain/system-config/system-config.constants.ts` (+2 -0) 📝 `server/src/domain/system-config/system-config.service.spec.ts` (+2 -0) 📝 `server/src/domain/system-config/system-config.service.ts` (+2 -0) 📝 `web/src/api/open-api/api.ts` (+6 -0) 📝 `web/src/lib/components/admin-page/settings/storage-template/storage-template-settings.svelte` (+2 -1) 📝 `web/src/lib/components/admin-page/settings/storage-template/supported-datetime-panel.svelte` (+11 -2) </details> ### 📄 Description Add the option to use week numbers ('W') and padded week numbers ('WW') for storage templating. <img width="823" alt="Screenshot 2023-09-28 at 18 59 17" src="https://github.com/immich-app/immich/assets/36593685/393896e2-455b-44ac-9f18-89a51443b801"> <img width="838" alt="Screenshot 2023-09-28 at 18 58 20" src="https://github.com/immich-app/immich/assets/36593685/34fca408-77ad-40c6-a33b-cd07c5925c64"> Closes #4260. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 14:19:34 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#10310