mirror of
https://github.com/immich-app/immich.git
synced 2025-12-24 01:11:32 +03:00
refactor(server): decouple generated images from image formats (#8246)
* rename thumbnail config update target paths, fix tests rename to image settings replace legacy enum better typing update sql update api remove config option fix * update docs * update other thumbnail configs in migration * keep legacy enum for now * fix jumbled job names * fix jumbled job names in tests * rename thumbhash job * rename dto * fix tests * preserve order * remove unused import * keep old fields in dto, marked deprecated * update sql --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
2
mobile/openapi/test/asset_api_test.dart
generated
2
mobile/openapi/test/asset_api_test.dart
generated
@@ -100,7 +100,7 @@ void main() {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<List<AssetResponseDto>> searchAssets({ String checksum, String city, String country, DateTime createdAfter, DateTime createdBefore, String deviceAssetId, String deviceId, String encodedVideoPath, String id, bool isArchived, bool isEncoded, bool isExternal, bool isFavorite, bool isMotion, bool isNotInAlbum, bool isOffline, bool isReadOnly, bool isVisible, String lensModel, String libraryId, String make, String model, AssetOrder order, String originalFileName, String originalPath, num page, List<String> personIds, String resizePath, num size, String state, DateTime takenAfter, DateTime takenBefore, DateTime trashedAfter, DateTime trashedBefore, AssetTypeEnum type, DateTime updatedAfter, DateTime updatedBefore, String webpPath, bool withArchived, bool withDeleted, bool withExif, bool withPeople, bool withStacked }) async
|
||||
//Future<List<AssetResponseDto>> searchAssets({ String checksum, String city, String country, DateTime createdAfter, DateTime createdBefore, String deviceAssetId, String deviceId, String encodedVideoPath, String id, bool isArchived, bool isEncoded, bool isExternal, bool isFavorite, bool isMotion, bool isNotInAlbum, bool isOffline, bool isReadOnly, bool isVisible, String lensModel, String libraryId, String make, String model, AssetOrder order, String originalFileName, String originalPath, num page, List<String> personIds, String previewPath, String resizePath, num size, String state, DateTime takenAfter, DateTime takenBefore, String thumbnailPath, DateTime trashedAfter, DateTime trashedBefore, AssetTypeEnum type, DateTime updatedAfter, DateTime updatedBefore, String webpPath, bool withArchived, bool withDeleted, bool withExif, bool withPeople, bool withStacked }) async
|
||||
test('test searchAssets', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
21
mobile/openapi/test/image_format_test.dart
generated
Normal file
21
mobile/openapi/test/image_format_test.dart
generated
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:openapi/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for ImageFormat
|
||||
void main() {
|
||||
|
||||
group('test ImageFormat', () {
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
10
mobile/openapi/test/metadata_search_dto_test.dart
generated
10
mobile/openapi/test/metadata_search_dto_test.dart
generated
@@ -151,6 +151,11 @@ void main() {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String previewPath
|
||||
test('to test the property `previewPath`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String resizePath
|
||||
test('to test the property `resizePath`', () async {
|
||||
// TODO
|
||||
@@ -176,6 +181,11 @@ void main() {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String thumbnailPath
|
||||
test('to test the property `thumbnailPath`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime trashedAfter
|
||||
test('to test the property `trashedAfter`', () async {
|
||||
// TODO
|
||||
|
||||
10
mobile/openapi/test/system_config_dto_test.dart
generated
10
mobile/openapi/test/system_config_dto_test.dart
generated
@@ -21,6 +21,11 @@ void main() {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// SystemConfigImageDto image
|
||||
test('to test the property `image`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// SystemConfigJobDto job
|
||||
test('to test the property `job`', () async {
|
||||
// TODO
|
||||
@@ -81,11 +86,6 @@ void main() {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// SystemConfigThumbnailDto thumbnail
|
||||
test('to test the property `thumbnail`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// SystemConfigTrashDto trash
|
||||
test('to test the property `trash`', () async {
|
||||
// TODO
|
||||
|
||||
@@ -11,18 +11,23 @@
|
||||
import 'package:openapi/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for SystemConfigThumbnailDto
|
||||
// tests for SystemConfigImageDto
|
||||
void main() {
|
||||
// final instance = SystemConfigThumbnailDto();
|
||||
// final instance = SystemConfigImageDto();
|
||||
|
||||
group('test SystemConfigThumbnailDto', () {
|
||||
group('test SystemConfigImageDto', () {
|
||||
// Colorspace colorspace
|
||||
test('to test the property `colorspace`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int jpegSize
|
||||
test('to test the property `jpegSize`', () async {
|
||||
// ImageFormat previewFormat
|
||||
test('to test the property `previewFormat`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int previewSize
|
||||
test('to test the property `previewSize`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
@@ -31,8 +36,13 @@ void main() {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int webpSize
|
||||
test('to test the property `webpSize`', () async {
|
||||
// ImageFormat thumbnailFormat
|
||||
test('to test the property `thumbnailFormat`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int thumbnailSize
|
||||
test('to test the property `thumbnailSize`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user