Browse Source
Allow zero custom (#1264)
* Update helm.
* Fix DocumentDB search.
* Fix tests
* Fix compare.
* Revert settings.
* Fixes
* Allow zero as custom ID
pull/1269/head
Sebastian Stehle
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
3 additions and
3 deletions
-
backend/src/Squidex.Data.MongoDb/Domain/Apps/Entities/Contents/Operations/QueryAsStream.cs
-
backend/src/Squidex.Data.MongoDb/Domain/Apps/Entities/Contents/Operations/QueryByQuery.cs
-
backend/src/Squidex.Data.MongoDb/Domain/Apps/Entities/Contents/Operations/QueryInDedicatedCollection.cs
|
|
|
@ -63,7 +63,7 @@ public sealed class QueryAsStream : OperationBase |
|
|
|
var filters = new List<FilterDefinition<MongoContentEntity>> |
|
|
|
{ |
|
|
|
Filter.Gt(x => x.LastModified, default), |
|
|
|
Filter.Gt(x => x.Id, default), |
|
|
|
Filter.Gt(x => x.Id, DomainId.Create(string.Empty)), |
|
|
|
Filter.Eq(x => x.IndexedAppId, appId), |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -147,7 +147,7 @@ internal sealed class QueryByQuery(MongoCountCollection countCollection) : Opera |
|
|
|
var filters = new List<FilterDefinition<MongoContentEntity>> |
|
|
|
{ |
|
|
|
Filter.Gt(x => x.LastModified, default), |
|
|
|
Filter.Gt(x => x.Id, default), |
|
|
|
Filter.Gt(x => x.Id, DomainId.Create(string.Empty)), |
|
|
|
Filter.Eq(x => x.IndexedAppId, appId), |
|
|
|
Filter.In(x => x.IndexedSchemaId, schemaIds), |
|
|
|
}; |
|
|
|
|
|
|
|
@ -187,7 +187,7 @@ internal sealed class QueryInDedicatedCollection(IMongoClient mongoClient, strin |
|
|
|
var filters = new List<FilterDefinition<MongoContentEntity>> |
|
|
|
{ |
|
|
|
Filter.Gt(x => x.LastModified, default), |
|
|
|
Filter.Gt(x => x.Id, default), |
|
|
|
Filter.Gt(x => x.Id, DomainId.Create(string.Empty)), |
|
|
|
}; |
|
|
|
|
|
|
|
if (query?.Filter?.HasField(Field.Of<MongoContentEntity>(x => nameof(x.IsDeleted))) != true) |
|
|
|
|