mgabor
abb9f7a747
switch to vitest
2024-04-17 13:08:29 +02:00
mgabor
bce37d4c6c
Merge branch 'main' into feature/readonly-sharing
...
# Conflicts:
# mobile/openapi/.openapi-generator/FILES
# mobile/openapi/README.md
# mobile/openapi/lib/api.dart
# mobile/openapi/lib/api_client.dart
# server/src/services/album.service.spec.ts
2024-04-17 12:59:50 +02:00
mgabor
02eeee8a2b
fix existing tests
2024-04-17 12:52:47 +02:00
mgabor
e1ea436c5e
add write access to shared link
2024-04-17 12:52:47 +02:00
mgabor
cecb99b4b6
clean up userId and albumId
2024-04-17 12:52:47 +02:00
mgabor
a49b066853
rename albumUserRepository in album service
2024-04-17 12:52:37 +02:00
mgabor
2154ab04e0
fix joincolumn as primary key
2024-04-17 09:51:51 +02:00
mgabor
87bc244b68
change readonly boolean to role enum
2024-04-17 09:31:56 +02:00
Kevin Huang
17dc12cf7d
fix(server): storage usage calculation for motion photos ( #8722 )
...
* ignore non external assets in external libraries during syncUsage
* only update storage usage if asset is from internal libraries
* update storage usage on motion photo video asset creation
* updated metadata service tests
* added a test
* simplified syncUsage condition
* check for library type upload instead of not external
* fixed broken sql
---------
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com >
2024-04-17 03:04:59 +00:00
renovate[bot]
6d4d0f86cf
chore(deps): update base-image to v20240416 (major) ( #8660 )
...
* chore(deps): update base-image to v20240416
* fix e2e
* rename variable
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com >
2024-04-16 22:55:05 -04:00
Jason Rasmussen
14b1425e98
feat(server): logging interceptor ( #8859 )
2024-04-16 19:21:57 -04:00
mgabor
9126bf2520
fix deprecation notice
2024-04-17 00:32:50 +02:00
renovate[bot]
18fa6018c0
fix(deps): update typescript-projects ( #8834 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 17:45:14 -04:00
Jason Rasmussen
47fb9bd213
fix(server): correlationId ( #8858 )
2024-04-16 17:31:49 -04:00
AmAn Sharma
6e6deec40c
feat: use ILoggerRepository ( #8855 )
...
* Migrate ImmichLogger over to injected ILoggerRepository
* chore: cleanup and tests
---------
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com >
2024-04-16 17:30:31 -04:00
mgabor
da5990bcc0
change readonly default to follow migration
2024-04-16 23:05:22 +02:00
mgabor
af6c077035
sql generate
2024-04-16 22:55:44 +02:00
mgabor
1b56fb8914
fix db schema annotations
2024-04-16 22:55:44 +02:00
Jason Rasmussen
877207a2e6
chore(server): delete swap file ( #8856 )
2024-04-16 22:13:03 +02:00
mgabor
9677d6108a
rename stuff
2024-04-16 20:58:11 +02:00
Jason Rasmussen
50c9bc0336
chore: migrate to vitest ( #7156 )
...
* chore: jest => vitest
* chore: replace jest-when
2024-04-16 10:44:45 -04:00
Fynn Petersen-Frey
103cb60a57
feat(server): efficient full app sync ( #8755 )
...
* feat(server): efficient full app sync
* add SQL, fix test compile issues
* fix linter warning
* new sync controller+service, add tests
* enable new sync controller+service
* Update server/src/services/sync.service.ts
Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com >
---------
Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com >
2024-04-16 07:26:37 +02:00
Jason Rasmussen
dba365634a
chore(server): cleanup library watching ( #8835 )
...
chore: clean up library watching
2024-04-15 23:05:08 -04:00
Jason Rasmussen
2db76034b1
feat(server): correlation id via injected logger ( #8823 )
...
* feat(server): correlation id via injected logger
* feat: cid response header
2024-04-15 23:39:06 +00:00
renovate[bot]
3deaaf14c0
fix(deps): update dependency reflect-metadata to ^0.2.0 ( #8784 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-15 16:02:49 -07:00
yparitcher
ed74213c63
feat(server): server host binding ( #8800 )
...
* Allow setting the host address for the server & microservices
Default to listen on all interfaces as per the current behavior.
* (Docs) format: fix lint
2024-04-15 14:24:13 -04:00
Kevin Huang
85df3f1e99
fix(server): external library motion photo video asset handling ( #8721 )
...
* added "isExternal" to the getLibraryAssetPaths query
* handleQueueAssetRefresh skip "non external" video asset, closes #8562
* correctly implements live photo deletion for external library
* use "external asset" for external library tests
* minor: external library asset checksum is "path hash" not file hash
* renamed to getExternalLibraryAssetPaths and added isExternal where clause
* generated sql
* reverted leftover change
2024-04-14 19:55:44 -04:00
Jason Rasmussen
14b798fcc4
refactor: library e2e ( #8693 )
...
* refactor: library e2e
* migrate and refactor library e2e
---------
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev >
2024-04-12 21:15:41 +02:00
mgabor
cc05d20bd3
remove log
2024-04-12 18:33:38 +02:00
mgabor
ac1c4e206e
add set permission endpoint and UI
2024-04-12 18:28:50 +02:00
mgabor
98f1d1517a
fix lint
2024-04-12 17:31:13 +02:00
mgabor
ffc4697d4a
fix assetCount getting reset when adding users
2024-04-12 17:28:00 +02:00
mgabor
3211894e18
Merge branch 'main' into feature/readonly-sharing
...
# Conflicts:
# server/src/services/album.service.ts
2024-04-12 17:20:36 +02:00
mgabor
222bcf853d
remove a log
2024-04-12 16:59:24 +02:00
mgabor
c4d6a09c05
add album permission repository
2024-04-12 16:50:17 +02:00
mgabor
c65c49acf1
correct sharedUsers joins
2024-04-12 14:20:01 +02:00
mgabor
06028a283b
expose albumPermissions on the API, deprecate sharedUsers
2024-04-12 13:48:55 +02:00
mgabor
48149e4384
separate and implement album READ and WRITE permission
2024-04-12 11:10:22 +02:00
mgabor
156cfb5820
set readonly=true as default for new album shares
2024-04-12 09:12:42 +02:00
mgabor
69b5eb60c9
remove unnecessary FK names
2024-04-12 09:10:46 +02:00
mgabor
d9161af808
disable synchronize on the original join table
2024-04-12 08:53:38 +02:00
mgabor
de58cd2ebd
rename albums_shared_users_users to album_permissions and add readonly column
2024-04-11 23:48:51 +02:00
Kevin Huang
58346465aa
fix(server): link motion photo with existing video asset ( #8724 )
...
* added motion photo linking
* added tests
2024-04-11 09:49:21 -04:00
Kevin Huang
ec76e5ef23
fix(server): prevent cross-library motion photo linking, made getByChecksum library specific ( #8719 )
...
prevent cross linking
2024-04-11 09:41:30 -04:00
N00MKRAD
f1ca1794a1
Add AV1 transcoding support ( #8491 )
...
* Add AV1 transcoding support
- AV1 encoding on CPU via SVT-AV1 (libsvtav1 in ffmpeg)
- Supports CRF and optionally capped CRF (max bitrate)
- Tested playback successfully in Chrome Win+Android, Firefox Win+Linux, Android app
* AV1: Add support for encoding threads option
* Revert previous commit; specifying params multiple times is bad
We need to specify all svtav1-params at once, so putting the thread option into getThreadOptions is not possible.
* AV1: Override VAAPI getSupportedCodecs as it does not yet support AV1 unlike nvenc, qsv, amf
* Change BaseHWConfig supported codecs to only H264/HEVC
Configs that support VP9 and/or AV1 need to override getSupportedCodecs()
* Set SVT-AV1 threads with svtav1-params, remove duplicate block in NVENCConfig
* AV1Config: Fix empty svtav1-params array being added to options
* add tests
* update api
* allow crf-based two-pass mode
* formatting
* suggest 35
---------
Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com >
2024-04-11 05:26:27 +00:00
Daniel Dietzler
ad5d115abe
fix(server): require asset permission when creating an album with them ( #8686 )
...
require asset permission when creating an album with them
2024-04-10 13:41:22 -04:00
renovate[bot]
321868963d
fix(deps): update typescript-projects ( #8651 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 21:08:37 +02:00
Alex
327b9bd59c
Revert "fix(deps): update typescript-projects ( #8647 )" ( #8650 )
...
This reverts commit 301c217303 .
2024-04-09 06:53:48 +02:00
renovate[bot]
301c217303
fix(deps): update typescript-projects ( #8647 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 23:44:48 -04:00
renovate[bot]
6631e6eedc
chore(deps): update node.js to 3fb85a6 ( #8643 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 22:33:50 -04:00