diff --git a/backend/src/Squidex.Infrastructure/Squidex.Infrastructure.csproj b/backend/src/Squidex.Infrastructure/Squidex.Infrastructure.csproj
index e7a06c120..9d523bccf 100644
--- a/backend/src/Squidex.Infrastructure/Squidex.Infrastructure.csproj
+++ b/backend/src/Squidex.Infrastructure/Squidex.Infrastructure.csproj
@@ -27,7 +27,7 @@
-
+
diff --git a/backend/src/Squidex.Web/Pipeline/RequestLogPerformanceMiddleware.cs b/backend/src/Squidex.Web/Pipeline/RequestLogPerformanceMiddleware.cs
index ec6ffb4ff..20bf145c9 100644
--- a/backend/src/Squidex.Web/Pipeline/RequestLogPerformanceMiddleware.cs
+++ b/backend/src/Squidex.Web/Pipeline/RequestLogPerformanceMiddleware.cs
@@ -28,33 +28,50 @@ namespace Squidex.Web.Pipeline
public async Task InvokeAsync(HttpContext context, ISemanticLog log)
{
- var watch = ValueStopwatch.StartNew();
+ var shouldStartSession = requestLogOptions.LogRequests || Profiler.HasListener;
- using (Profiler.StartSession())
+ if (requestLogOptions.LogRequests || shouldStartSession)
{
- try
- {
- await next(context);
- }
- finally
- {
- var elapsedMs = watch.Stop();
+ var session =
+ shouldStartSession ?
+ Profiler.StartSession() :
+ default;
- if (requestLogOptions.LogRequests)
+ var watch =
+ requestLogOptions.LogRequests ?
+ ValueStopwatch.StartNew() :
+ default;
+
+ using (session)
+ {
+ try
{
- log.LogInformation((elapsedMs, context), (ctx, w) =>
+ await next(context);
+ }
+ finally
+ {
+ if (requestLogOptions.LogRequests)
{
- if (requestLogOptions.LogProfiler)
- {
- Profiler.Session?.Write(w);
- }
+ var elapsedMs = watch.Stop();
- w.WriteObject("filters", ctx.context, LogFilters);
- w.WriteProperty("elapsedRequestMs", ctx.elapsedMs);
- });
+ log.LogInformation((elapsedMs, context), (ctx, w) =>
+ {
+ if (requestLogOptions.LogProfiler)
+ {
+ Profiler.Session?.Write(w);
+ }
+
+ w.WriteObject("filters", ctx.context, LogFilters);
+ w.WriteProperty("elapsedRequestMs", ctx.elapsedMs);
+ });
+ }
}
}
}
+ else
+ {
+ await next(context);
+ }
}
private static void LogFilters(HttpContext httpContext, IObjectWriter c)
diff --git a/backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldDto.cs b/backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldDto.cs
index 26baca97a..c356b9fb1 100644
--- a/backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldDto.cs
+++ b/backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldDto.cs
@@ -130,13 +130,16 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
AddPutLink("disable", resources.Url(x => nameof(x.DisableField), values));
}
- if (Properties is ArrayFieldPropertiesDto)
+ if (Nested != null)
{
var parentValues = new { values.app, values.schema, parentId = FieldId };
AddPostLink("fields/add", resources.Url(x => nameof(x.PostNestedField), parentValues));
- AddPutLink("fields/order", resources.Url(x => nameof(x.PutNestedFieldOrdering), parentValues));
+ if (Nested.Count > 0)
+ {
+ AddPutLink("fields/order", resources.Url(x => nameof(x.PutNestedFieldOrdering), parentValues));
+ }
}
if (!IsLocked)
diff --git a/backend/src/Squidex/Squidex.csproj b/backend/src/Squidex/Squidex.csproj
index 79453c613..34d901a8e 100644
--- a/backend/src/Squidex/Squidex.csproj
+++ b/backend/src/Squidex/Squidex.csproj
@@ -66,7 +66,7 @@
-
+
diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Contents/GraphQL/TestContent.cs b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Contents/GraphQL/TestContent.cs
index 57b46504c..74d509704 100644
--- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Contents/GraphQL/TestContent.cs
+++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Contents/GraphQL/TestContent.cs
@@ -326,14 +326,6 @@ namespace Squidex.Domain.Apps.Entities.Contents.GraphQL
}
}
},
- ["myGeolocation"] = new
- {
- iv = new
- {
- latitude = 10,
- longitude = 20
- }
- },
["myTags"] = new
{
iv = new[]
diff --git a/frontend/app/features/content/pages/content/content-history-page.component.html b/frontend/app/features/content/pages/content/content-history-page.component.html
index 88cf374b1..8e0770931 100644
--- a/frontend/app/features/content/pages/content/content-history-page.component.html
+++ b/frontend/app/features/content/pages/content/content-history-page.component.html
@@ -29,7 +29,7 @@
-