1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-07 23:03:36 +02:00

feat: adds option to search only for untagged assets (#19730)

Co-authored-by: SkwalExe <skwal@skwal.net>
This commit is contained in:
Léopold Koprivnik
2025-07-10 16:28:20 +02:00
committed by GitHub
parent 818bdde317
commit f778adea92
14 changed files with 75 additions and 23 deletions

View File

@ -241,7 +241,7 @@ class MetadataSearchDto {
String? state;
List<String> tagIds;
List<String>? tagIds;
///
/// Please note: This property should have been non-nullable! Since the specification file
@ -425,7 +425,7 @@ class MetadataSearchDto {
(rating == null ? 0 : rating!.hashCode) +
(size == null ? 0 : size!.hashCode) +
(state == null ? 0 : state!.hashCode) +
(tagIds.hashCode) +
(tagIds == null ? 0 : tagIds!.hashCode) +
(takenAfter == null ? 0 : takenAfter!.hashCode) +
(takenBefore == null ? 0 : takenBefore!.hashCode) +
(thumbnailPath == null ? 0 : thumbnailPath!.hashCode) +
@ -578,7 +578,11 @@ class MetadataSearchDto {
} else {
// json[r'state'] = null;
}
if (this.tagIds != null) {
json[r'tagIds'] = this.tagIds;
} else {
// json[r'tagIds'] = null;
}
if (this.takenAfter != null) {
json[r'takenAfter'] = this.takenAfter!.toUtc().toIso8601String();
} else {

View File

@ -155,7 +155,7 @@ class RandomSearchDto {
String? state;
List<String> tagIds;
List<String>? tagIds;
///
/// Please note: This property should have been non-nullable! Since the specification file
@ -310,7 +310,7 @@ class RandomSearchDto {
(rating == null ? 0 : rating!.hashCode) +
(size == null ? 0 : size!.hashCode) +
(state == null ? 0 : state!.hashCode) +
(tagIds.hashCode) +
(tagIds == null ? 0 : tagIds!.hashCode) +
(takenAfter == null ? 0 : takenAfter!.hashCode) +
(takenBefore == null ? 0 : takenBefore!.hashCode) +
(trashedAfter == null ? 0 : trashedAfter!.hashCode) +
@ -416,7 +416,11 @@ class RandomSearchDto {
} else {
// json[r'state'] = null;
}
if (this.tagIds != null) {
json[r'tagIds'] = this.tagIds;
} else {
// json[r'tagIds'] = null;
}
if (this.takenAfter != null) {
json[r'takenAfter'] = this.takenAfter!.toUtc().toIso8601String();
} else {

View File

@ -175,7 +175,7 @@ class SmartSearchDto {
String? state;
List<String> tagIds;
List<String>? tagIds;
///
/// Please note: This property should have been non-nullable! Since the specification file
@ -318,7 +318,7 @@ class SmartSearchDto {
(rating == null ? 0 : rating!.hashCode) +
(size == null ? 0 : size!.hashCode) +
(state == null ? 0 : state!.hashCode) +
(tagIds.hashCode) +
(tagIds == null ? 0 : tagIds!.hashCode) +
(takenAfter == null ? 0 : takenAfter!.hashCode) +
(takenBefore == null ? 0 : takenBefore!.hashCode) +
(trashedAfter == null ? 0 : trashedAfter!.hashCode) +
@ -433,7 +433,11 @@ class SmartSearchDto {
} else {
// json[r'state'] = null;
}
if (this.tagIds != null) {
json[r'tagIds'] = this.tagIds;
} else {
// json[r'tagIds'] = null;
}
if (this.takenAfter != null) {
json[r'takenAfter'] = this.takenAfter!.toUtc().toIso8601String();
} else {

View File

@ -149,7 +149,7 @@ class StatisticsSearchDto {
String? state;
List<String> tagIds;
List<String>? tagIds;
///
/// Please note: This property should have been non-nullable! Since the specification file
@ -268,7 +268,7 @@ class StatisticsSearchDto {
(personIds.hashCode) +
(rating == null ? 0 : rating!.hashCode) +
(state == null ? 0 : state!.hashCode) +
(tagIds.hashCode) +
(tagIds == null ? 0 : tagIds!.hashCode) +
(takenAfter == null ? 0 : takenAfter!.hashCode) +
(takenBefore == null ? 0 : takenBefore!.hashCode) +
(trashedAfter == null ? 0 : trashedAfter!.hashCode) +
@ -370,7 +370,11 @@ class StatisticsSearchDto {
} else {
// json[r'state'] = null;
}
if (this.tagIds != null) {
json[r'tagIds'] = this.tagIds;
} else {
// json[r'tagIds'] = null;
}
if (this.takenAfter != null) {
json[r'takenAfter'] = this.takenAfter!.toUtc().toIso8601String();
} else {