diff --git a/.editorconfig b/.editorconfig index d41b1aebbba..2ea8c2c08d3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,6 +9,9 @@ insert_final_newline = true trim_trailing_whitespace = true rulers = 120 +[*.{bat,cmd,ps1}] +end_of_line = crlf + # ReSharper properties resharper_align_multiline_statement_conditions = false resharper_keep_existing_initializer_arrangement = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..de12849adc1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +# Normalize to LF on commit; checkout follows local Git config +* text=auto + +# Scripts with interpreter lines must have LF +*.sh text eol=lf +*.bash text eol=lf + +# Windows scripts +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf diff --git a/src/GreenDonut/test/GreenDonut.Data.EntityFramework.Tests/__snapshots__/PagingHelperTests.Fetch_First_2_Items_Between.md b/src/GreenDonut/test/GreenDonut.Data.EntityFramework.Tests/__snapshots__/PagingHelperTests.Fetch_First_2_Items_Between.md index d2fa29aa0d6..ed2880cd780 100644 --- a/src/GreenDonut/test/GreenDonut.Data.EntityFramework.Tests/__snapshots__/PagingHelperTests.Fetch_First_2_Items_Between.md +++ b/src/GreenDonut/test/GreenDonut.Data.EntityFramework.Tests/__snapshots__/PagingHelperTests.Fetch_First_2_Items_Between.md @@ -1,36 +1,36 @@ # Fetch_First_2_Items_Between ```json -[ - { - "Id": 2, - "Name": "Product 0-1", - "Description": null, - "Price": 0.0, - "ImageFileName": null, - "TypeId": 1, - "Type": null, - "BrandId": 1, - "Brand": null, - "AvailableStock": 0, - "RestockThreshold": 0, - "MaxStockThreshold": 0, - "OnReorder": false - }, - { - "Id": 11, - "Name": "Product 0-10", - "Description": null, - "Price": 0.0, - "ImageFileName": null, - "TypeId": 1, - "Type": null, - "BrandId": 1, - "Brand": null, - "AvailableStock": 0, - "RestockThreshold": 0, - "MaxStockThreshold": 0, - "OnReorder": false - } +[ + { + "Id": 2, + "Name": "Product 0-1", + "Description": null, + "Price": 0.0, + "ImageFileName": null, + "TypeId": 1, + "Type": null, + "BrandId": 1, + "Brand": null, + "AvailableStock": 0, + "RestockThreshold": 0, + "MaxStockThreshold": 0, + "OnReorder": false + }, + { + "Id": 11, + "Name": "Product 0-10", + "Description": null, + "Price": 0.0, + "ImageFileName": null, + "TypeId": 1, + "Type": null, + "BrandId": 1, + "Brand": null, + "AvailableStock": 0, + "RestockThreshold": 0, + "MaxStockThreshold": 0, + "OnReorder": false + } ] ``` diff --git a/src/GreenDonut/test/GreenDonut.Data.EntityFramework.Tests/__snapshots__/PagingHelperTests.Fetch_Last_2_Items_Between.md b/src/GreenDonut/test/GreenDonut.Data.EntityFramework.Tests/__snapshots__/PagingHelperTests.Fetch_Last_2_Items_Between.md index 5134dd84b75..a38e7784279 100644 --- a/src/GreenDonut/test/GreenDonut.Data.EntityFramework.Tests/__snapshots__/PagingHelperTests.Fetch_Last_2_Items_Between.md +++ b/src/GreenDonut/test/GreenDonut.Data.EntityFramework.Tests/__snapshots__/PagingHelperTests.Fetch_Last_2_Items_Between.md @@ -1,36 +1,36 @@ # Fetch_Last_2_Items_Between ```json -[ - { - "Id": 9998, - "Name": "Product 99-97", - "Description": null, - "Price": 0.0, - "ImageFileName": null, - "TypeId": 1, - "Type": null, - "BrandId": 100, - "Brand": null, - "AvailableStock": 0, - "RestockThreshold": 0, - "MaxStockThreshold": 0, - "OnReorder": false - }, - { - "Id": 9999, - "Name": "Product 99-98", - "Description": null, - "Price": 0.0, - "ImageFileName": null, - "TypeId": 1, - "Type": null, - "BrandId": 100, - "Brand": null, - "AvailableStock": 0, - "RestockThreshold": 0, - "MaxStockThreshold": 0, - "OnReorder": false - } +[ + { + "Id": 9998, + "Name": "Product 99-97", + "Description": null, + "Price": 0.0, + "ImageFileName": null, + "TypeId": 1, + "Type": null, + "BrandId": 100, + "Brand": null, + "AvailableStock": 0, + "RestockThreshold": 0, + "MaxStockThreshold": 0, + "OnReorder": false + }, + { + "Id": 9999, + "Name": "Product 99-98", + "Description": null, + "Price": 0.0, + "ImageFileName": null, + "TypeId": 1, + "Type": null, + "BrandId": 100, + "Brand": null, + "AvailableStock": 0, + "RestockThreshold": 0, + "MaxStockThreshold": 0, + "OnReorder": false + } ] ``` diff --git a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.API/appsettings.Development.json b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.API/appsettings.Development.json index fc5309c66cc..c024f926b21 100644 --- a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.API/appsettings.Development.json +++ b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.API/appsettings.Development.json @@ -1,11 +1,11 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "ConnectionStrings": { - "CatalogDB": "Host=localhost;Port=5432;Username=admin;Password=root;Database=CatalogDB" - } -} +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "ConnectionStrings": { + "CatalogDB": "Host=localhost;Port=5432;Username=admin;Password=root;Database=CatalogDB" + } +} diff --git a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.API/appsettings.json b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.API/appsettings.json index 2aca258283c..7c3139ff0d7 100644 --- a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.API/appsettings.json +++ b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.API/appsettings.json @@ -1,16 +1,16 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Error", - "Microsoft.AspNetCore": "Warning" - } - }, - "Identity": { - "Url": "http://identity", - "Audience": "orders" - }, - "AllowedHosts": "*", - "ConnectionStrings": { - "CatalogDB": "Host=localhost;Port=5432;Username=admin;Password=root;Database=CatalogDB" - } -} +{ + "Logging": { + "LogLevel": { + "Default": "Error", + "Microsoft.AspNetCore": "Warning" + } + }, + "Identity": { + "Url": "http://identity", + "Audience": "orders" + }, + "AllowedHosts": "*", + "ConnectionStrings": { + "CatalogDB": "Host=localhost;Port=5432;Username=admin;Password=root;Database=CatalogDB" + } +} diff --git a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/AppHost.cs b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/AppHost.cs index 2bad63827ef..0a748296eb7 100644 --- a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/AppHost.cs +++ b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/AppHost.cs @@ -1,21 +1,21 @@ -var builder = DistributedApplication.CreateBuilder(args); - -var postgres = builder.AddPostgres("postgres") - .WithArgs("-c", "max_connections=500") - .WithArgs("-c", "shared_buffers=512MB") - .WithArgs("-c", "effective_cache_size=1GB") - .WithArgs("-c", "maintenance_work_mem=128MB") - .WithArgs("-c", "checkpoint_completion_target=0.9") - .WithArgs("-c", "wal_buffers=16MB") - .WithArgs("-c", "default_statistics_target=100") - .WithArgs("-c", "random_page_cost=1.1") - .WithArgs("-c", "work_mem=32MB"); - -var database = postgres.AddDatabase("catalog-db"); - -builder - .AddProject("catalog-api") - .WithReference(database) - .WaitFor(database); - -builder.Build().Run(); +var builder = DistributedApplication.CreateBuilder(args); + +var postgres = builder.AddPostgres("postgres") + .WithArgs("-c", "max_connections=500") + .WithArgs("-c", "shared_buffers=512MB") + .WithArgs("-c", "effective_cache_size=1GB") + .WithArgs("-c", "maintenance_work_mem=128MB") + .WithArgs("-c", "checkpoint_completion_target=0.9") + .WithArgs("-c", "wal_buffers=16MB") + .WithArgs("-c", "default_statistics_target=100") + .WithArgs("-c", "random_page_cost=1.1") + .WithArgs("-c", "work_mem=32MB"); + +var database = postgres.AddDatabase("catalog-db"); + +builder + .AddProject("catalog-api") + .WithReference(database) + .WaitFor(database); + +builder.Build().Run(); diff --git a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/Properties/launchSettings.json b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/Properties/launchSettings.json index 11528060e4b..44e9c7ea62a 100644 --- a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/Properties/launchSettings.json +++ b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/Properties/launchSettings.json @@ -1,18 +1,18 @@ -{ - "$schema": "https://json.schemastore.org/launchsettings.json", - "profiles": { - "http": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "applicationUrl": "http://localhost:15100", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development", - "DOTNET_ENVIRONMENT": "Development", - "ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:19155", - "ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:20157", - "ASPIRE_ALLOW_UNSECURED_TRANSPORT": "true" - } - } - } -} +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:15100", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development", + "DOTNET_ENVIRONMENT": "Development", + "ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:19155", + "ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:20157", + "ASPIRE_ALLOW_UNSECURED_TRANSPORT": "true" + } + } + } +} diff --git a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/appsettings.Development.json b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/appsettings.Development.json index ff66ba6b28c..0c208ae9181 100644 --- a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/appsettings.Development.json +++ b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/appsettings.Development.json @@ -1,8 +1,8 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/appsettings.json b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/appsettings.json index 2185f955151..31c092aa450 100644 --- a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/appsettings.json +++ b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/appsettings.json @@ -1,9 +1,9 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning", - "Aspire.Hosting.Dcp": "Warning" - } - } -} +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning", + "Aspire.Hosting.Dcp": "Warning" + } + } +} diff --git a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/eShop.Catalog.AppHost.csproj b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/eShop.Catalog.AppHost.csproj index ccfdba60703..1fa784d19db 100644 --- a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/eShop.Catalog.AppHost.csproj +++ b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.AppHost/eShop.Catalog.AppHost.csproj @@ -1,22 +1,22 @@ - - - - - - Exe - net9.0 - enable - enable - f2d3a820-9a6b-4453-96e4-3e0ba86bd53d - - - - - - - - - - - - + + + + + + Exe + net9.0 + enable + enable + f2d3a820-9a6b-4453-96e4-3e0ba86bd53d + + + + + + + + + + + + diff --git a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.ServiceDefaults/Extensions.cs b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.ServiceDefaults/Extensions.cs index 51069fb3f12..25aed789936 100644 --- a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.ServiceDefaults/Extensions.cs +++ b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.ServiceDefaults/Extensions.cs @@ -1,128 +1,128 @@ -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Diagnostics.HealthChecks; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Diagnostics.HealthChecks; -using Microsoft.Extensions.Logging; -using Npgsql; -using OpenTelemetry; -using OpenTelemetry.Metrics; -using OpenTelemetry.Trace; - -namespace Microsoft.Extensions.Hosting; - -// Adds common .NET Aspire services: service discovery, resilience, health checks, and OpenTelemetry. -// This project should be referenced by each service project in your solution. -// To learn more about using this project, see https://aka.ms/dotnet/aspire/service-defaults -public static class Extensions -{ - private const string HealthEndpointPath = "/health"; - private const string AlivenessEndpointPath = "/alive"; - - public static TBuilder AddServiceDefaults(this TBuilder builder) where TBuilder : IHostApplicationBuilder - { - builder.ConfigureOpenTelemetry(); - - builder.AddDefaultHealthChecks(); - - builder.Services.AddServiceDiscovery(); - - builder.Services.ConfigureHttpClientDefaults(http => - { - // Turn on resilience by default - http.AddStandardResilienceHandler(); - - // Turn on service discovery by default - http.AddServiceDiscovery(); - }); - - // Uncomment the following to restrict the allowed schemes for service discovery. - // builder.Services.Configure(options => - // { - // options.AllowedSchemes = ["https"]; - // }); - - return builder; - } - - public static TBuilder ConfigureOpenTelemetry(this TBuilder builder) where TBuilder : IHostApplicationBuilder - { - builder.Logging.AddOpenTelemetry(logging => - { - logging.IncludeFormattedMessage = true; - logging.IncludeScopes = true; - }); - - builder.Services.AddOpenTelemetry() - .WithMetrics(metrics => - { - metrics.AddAspNetCoreInstrumentation() - .AddHttpClientInstrumentation() - .AddRuntimeInstrumentation() - .AddNpgsqlInstrumentation() - .AddMeter("GreenDonut.DataLoader"); - }) - .WithTracing(tracing => - { - tracing.AddSource(builder.Environment.ApplicationName) - .AddSource("GreenDonut.DataLoader") - .AddSource("HotChocolate.Fetching") - .AddHotChocolateInstrumentation() - .AddAspNetCoreInstrumentation(t => - t.Filter = context => - !context.Request.Path.StartsWithSegments(HealthEndpointPath) - && !context.Request.Path.StartsWithSegments(AlivenessEndpointPath)) - .AddHttpClientInstrumentation() - .AddNpgsql(); - }); - - builder.AddOpenTelemetryExporters(); - - return builder; - } - - private static TBuilder AddOpenTelemetryExporters(this TBuilder builder) where TBuilder : IHostApplicationBuilder - { - var useOtlpExporter = !string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]); - - if (useOtlpExporter) - { - builder.Services.AddOpenTelemetry().UseOtlpExporter(); - } - - // Uncomment the following lines to enable the Azure Monitor exporter (requires the Azure.Monitor.OpenTelemetry.AspNetCore package) - //if (!string.IsNullOrEmpty(builder.Configuration["APPLICATIONINSIGHTS_CONNECTION_STRING"])) - //{ - // builder.Services.AddOpenTelemetry() - // .UseAzureMonitor(); - //} - - return builder; - } - - public static TBuilder AddDefaultHealthChecks(this TBuilder builder) where TBuilder : IHostApplicationBuilder - { - builder.Services.AddHealthChecks() - .AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]); - - return builder; - } - - public static WebApplication MapDefaultEndpoints(this WebApplication app) - { - // Adding health checks endpoints to applications in non-development environments has security implications. - // See https://aka.ms/dotnet/aspire/healthchecks for details before enabling these endpoints in non-development environments. - if (app.Environment.IsDevelopment()) - { - // All health checks must pass for app to be considered ready to accept traffic after starting - app.MapHealthChecks(HealthEndpointPath); - - // Only health checks tagged with the "live" tag must pass for app to be considered alive - app.MapHealthChecks(AlivenessEndpointPath, new HealthCheckOptions - { - Predicate = r => r.Tags.Contains("live") - }); - } - - return app; - } -} +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Diagnostics.HealthChecks; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Diagnostics.HealthChecks; +using Microsoft.Extensions.Logging; +using Npgsql; +using OpenTelemetry; +using OpenTelemetry.Metrics; +using OpenTelemetry.Trace; + +namespace Microsoft.Extensions.Hosting; + +// Adds common .NET Aspire services: service discovery, resilience, health checks, and OpenTelemetry. +// This project should be referenced by each service project in your solution. +// To learn more about using this project, see https://aka.ms/dotnet/aspire/service-defaults +public static class Extensions +{ + private const string HealthEndpointPath = "/health"; + private const string AlivenessEndpointPath = "/alive"; + + public static TBuilder AddServiceDefaults(this TBuilder builder) where TBuilder : IHostApplicationBuilder + { + builder.ConfigureOpenTelemetry(); + + builder.AddDefaultHealthChecks(); + + builder.Services.AddServiceDiscovery(); + + builder.Services.ConfigureHttpClientDefaults(http => + { + // Turn on resilience by default + http.AddStandardResilienceHandler(); + + // Turn on service discovery by default + http.AddServiceDiscovery(); + }); + + // Uncomment the following to restrict the allowed schemes for service discovery. + // builder.Services.Configure(options => + // { + // options.AllowedSchemes = ["https"]; + // }); + + return builder; + } + + public static TBuilder ConfigureOpenTelemetry(this TBuilder builder) where TBuilder : IHostApplicationBuilder + { + builder.Logging.AddOpenTelemetry(logging => + { + logging.IncludeFormattedMessage = true; + logging.IncludeScopes = true; + }); + + builder.Services.AddOpenTelemetry() + .WithMetrics(metrics => + { + metrics.AddAspNetCoreInstrumentation() + .AddHttpClientInstrumentation() + .AddRuntimeInstrumentation() + .AddNpgsqlInstrumentation() + .AddMeter("GreenDonut.DataLoader"); + }) + .WithTracing(tracing => + { + tracing.AddSource(builder.Environment.ApplicationName) + .AddSource("GreenDonut.DataLoader") + .AddSource("HotChocolate.Fetching") + .AddHotChocolateInstrumentation() + .AddAspNetCoreInstrumentation(t => + t.Filter = context => + !context.Request.Path.StartsWithSegments(HealthEndpointPath) + && !context.Request.Path.StartsWithSegments(AlivenessEndpointPath)) + .AddHttpClientInstrumentation() + .AddNpgsql(); + }); + + builder.AddOpenTelemetryExporters(); + + return builder; + } + + private static TBuilder AddOpenTelemetryExporters(this TBuilder builder) where TBuilder : IHostApplicationBuilder + { + var useOtlpExporter = !string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]); + + if (useOtlpExporter) + { + builder.Services.AddOpenTelemetry().UseOtlpExporter(); + } + + // Uncomment the following lines to enable the Azure Monitor exporter (requires the Azure.Monitor.OpenTelemetry.AspNetCore package) + //if (!string.IsNullOrEmpty(builder.Configuration["APPLICATIONINSIGHTS_CONNECTION_STRING"])) + //{ + // builder.Services.AddOpenTelemetry() + // .UseAzureMonitor(); + //} + + return builder; + } + + public static TBuilder AddDefaultHealthChecks(this TBuilder builder) where TBuilder : IHostApplicationBuilder + { + builder.Services.AddHealthChecks() + .AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]); + + return builder; + } + + public static WebApplication MapDefaultEndpoints(this WebApplication app) + { + // Adding health checks endpoints to applications in non-development environments has security implications. + // See https://aka.ms/dotnet/aspire/healthchecks for details before enabling these endpoints in non-development environments. + if (app.Environment.IsDevelopment()) + { + // All health checks must pass for app to be considered ready to accept traffic after starting + app.MapHealthChecks(HealthEndpointPath); + + // Only health checks tagged with the "live" tag must pass for app to be considered alive + app.MapHealthChecks(AlivenessEndpointPath, new HealthCheckOptions + { + Predicate = r => r.Tags.Contains("live") + }); + } + + return app; + } +} diff --git a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.ServiceDefaults/eShop.Catalog.ServiceDefaults.csproj b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.ServiceDefaults/eShop.Catalog.ServiceDefaults.csproj index 7996b5d56b8..f647748cb35 100644 --- a/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.ServiceDefaults/eShop.Catalog.ServiceDefaults.csproj +++ b/src/HotChocolate/AspNetCore/benchmarks/k6/Catalog.ServiceDefaults/eShop.Catalog.ServiceDefaults.csproj @@ -1,28 +1,28 @@ - - - - net9.0 - enable - enable - true - - - - - - - - - - - - - - - - - - - - - + + + + net9.0 + enable + enable + true + + + + + + + + + + + + + + + + + + + + + diff --git a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/__snapshots__/HttpPostMiddlewareTests.BatchRequest_GetHero_And_GetHuman_MultiPart.snap b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/__snapshots__/HttpPostMiddlewareTests.BatchRequest_GetHero_And_GetHuman_MultiPart.snap index b959982498f..61f43815dda 100644 --- a/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/__snapshots__/HttpPostMiddlewareTests.BatchRequest_GetHero_And_GetHuman_MultiPart.snap +++ b/src/HotChocolate/AspNetCore/test/AspNetCore.Tests/__snapshots__/HttpPostMiddlewareTests.BatchRequest_GetHero_And_GetHuman_MultiPart.snap @@ -1,10 +1,10 @@ - ---- -Content-Type: application/json; charset=utf-8 - -{"data":{"hero":{"id":"1000"}}} ---- -Content-Type: application/json; charset=utf-8 - -{"data":{"human":{"name":"Luke Skywalker"}}} ------ + +--- +Content-Type: application/json; charset=utf-8 + +{"data":{"hero":{"id":"1000"}}} +--- +Content-Type: application/json; charset=utf-8 + +{"data":{"human":{"name":"Luke Skywalker"}}} +----- diff --git a/src/HotChocolate/Core/test/Execution.Tests/Serialization/__snapshots__/MultiPartResponseStreamSerializerTests.Serialize_Response_Stream.snap b/src/HotChocolate/Core/test/Execution.Tests/Serialization/__snapshots__/MultiPartResponseStreamSerializerTests.Serialize_Response_Stream.snap index 31c7de9c494..eb90044b4df 100644 --- a/src/HotChocolate/Core/test/Execution.Tests/Serialization/__snapshots__/MultiPartResponseStreamSerializerTests.Serialize_Response_Stream.snap +++ b/src/HotChocolate/Core/test/Execution.Tests/Serialization/__snapshots__/MultiPartResponseStreamSerializerTests.Serialize_Response_Stream.snap @@ -1,10 +1,10 @@ - ---- -Content-Type: application/json; charset=utf-8 - -{"data":{"hero":{"id":"2001"}},"pending":[{"id":"2","path":["hero"],"label":"friends"}],"hasNext":true} ---- -Content-Type: application/json; charset=utf-8 - -{"incremental":[{"id":"2","data":{"friends":{"nodes":[{"id":"1000","name":"Luke Skywalker"},{"id":"1002","name":"Han Solo"},{"id":"1003","name":"Leia Organa"}]}}}],"completed":[{"id":"2"}],"hasNext":false} ------ + +--- +Content-Type: application/json; charset=utf-8 + +{"data":{"hero":{"id":"2001"}},"pending":[{"id":"2","path":["hero"],"label":"friends"}],"hasNext":true} +--- +Content-Type: application/json; charset=utf-8 + +{"incremental":[{"id":"2","data":{"friends":{"nodes":[{"id":"1000","name":"Luke Skywalker"},{"id":"1002","name":"Han Solo"},{"id":"1003","name":"Leia Organa"}]}}}],"completed":[{"id":"2"}],"hasNext":false} +----- diff --git a/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results_NET10_0.md b/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results_NET10_0.md index e68448b7da9..98572dff782 100644 --- a/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results_NET10_0.md +++ b/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results_NET10_0.md @@ -1,9 +1,9 @@ # Include_On_Array_Results ```sql --- @brandIds={ '1' } (DbType = Object) -SELECT p."BrandId", p."Name", p."Price" -FROM "Products" AS p -WHERE p."BrandId" = ANY (@brandIds) +-- @brandIds={ '1' } (DbType = Object) +SELECT p."BrandId", p."Name", p."Price" +FROM "Products" AS p +WHERE p."BrandId" = ANY (@brandIds) ORDER BY p."BrandId" ``` diff --git a/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results_NET8_0.md b/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results_NET8_0.md index ef523c16d18..33964c97293 100644 --- a/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results_NET8_0.md +++ b/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results_NET8_0.md @@ -1,9 +1,9 @@ # Include_On_Array_Results ```sql --- @__brandIds_0={ '1' } (DbType = Object) -SELECT p."BrandId", p."Name", p."Price" -FROM "Products" AS p -WHERE p."BrandId" = ANY (@__brandIds_0) +-- @__brandIds_0={ '1' } (DbType = Object) +SELECT p."BrandId", p."Name", p."Price" +FROM "Products" AS p +WHERE p."BrandId" = ANY (@__brandIds_0) ORDER BY p."BrandId" ``` diff --git a/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results_NET9_0.md b/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results_NET9_0.md index ef523c16d18..33964c97293 100644 --- a/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results_NET9_0.md +++ b/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_Array_Results_NET9_0.md @@ -1,9 +1,9 @@ # Include_On_Array_Results ```sql --- @__brandIds_0={ '1' } (DbType = Object) -SELECT p."BrandId", p."Name", p."Price" -FROM "Products" AS p -WHERE p."BrandId" = ANY (@__brandIds_0) +-- @__brandIds_0={ '1' } (DbType = Object) +SELECT p."BrandId", p."Name", p."Price" +FROM "Products" AS p +WHERE p."BrandId" = ANY (@__brandIds_0) ORDER BY p."BrandId" ``` diff --git a/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results_NET10_0.md b/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results_NET10_0.md index 8e1ea6921a5..a8111201f03 100644 --- a/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results_NET10_0.md +++ b/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results_NET10_0.md @@ -1,9 +1,9 @@ # Include_On_List_Results ```sql --- @brandIds={ '1' } (DbType = Object) -SELECT p."BrandId", p."Name", p."Price" -FROM "Products" AS p -WHERE p."BrandId" = ANY (@brandIds) +-- @brandIds={ '1' } (DbType = Object) +SELECT p."BrandId", p."Name", p."Price" +FROM "Products" AS p +WHERE p."BrandId" = ANY (@brandIds) ORDER BY p."BrandId" ``` diff --git a/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results_NET8_0.md b/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results_NET8_0.md index 9133c40fdda..fbdb8d3c7c6 100644 --- a/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results_NET8_0.md +++ b/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results_NET8_0.md @@ -1,9 +1,9 @@ # Include_On_List_Results ```sql --- @__brandIds_0={ '1' } (DbType = Object) -SELECT p."BrandId", p."Name", p."Price" -FROM "Products" AS p -WHERE p."BrandId" = ANY (@__brandIds_0) +-- @__brandIds_0={ '1' } (DbType = Object) +SELECT p."BrandId", p."Name", p."Price" +FROM "Products" AS p +WHERE p."BrandId" = ANY (@__brandIds_0) ORDER BY p."BrandId" ``` diff --git a/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results_NET9_0.md b/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results_NET9_0.md index 9133c40fdda..fbdb8d3c7c6 100644 --- a/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results_NET9_0.md +++ b/src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/DataLoaderTests.Include_On_List_Results_NET9_0.md @@ -1,9 +1,9 @@ # Include_On_List_Results ```sql --- @__brandIds_0={ '1' } (DbType = Object) -SELECT p."BrandId", p."Name", p."Price" -FROM "Products" AS p -WHERE p."BrandId" = ANY (@__brandIds_0) +-- @__brandIds_0={ '1' } (DbType = Object) +SELECT p."BrandId", p."Name", p."Price" +FROM "Products" AS p +WHERE p."BrandId" = ANY (@__brandIds_0) ORDER BY p."BrandId" ``` diff --git a/src/HotChocolate/Fusion-vnext/benchmarks/k6/eShop.Accounts/appsettings.json b/src/HotChocolate/Fusion-vnext/benchmarks/k6/eShop.Accounts/appsettings.json index 501b0ccb8f7..153d95a6538 100644 --- a/src/HotChocolate/Fusion-vnext/benchmarks/k6/eShop.Accounts/appsettings.json +++ b/src/HotChocolate/Fusion-vnext/benchmarks/k6/eShop.Accounts/appsettings.json @@ -1,9 +1,9 @@ -{ - "Logging": { - "LogLevel": { - "Default": "None", - "Microsoft.AspNetCore": "None" - } - }, - "AllowedHosts": "*" -} \ No newline at end of file +{ + "Logging": { + "LogLevel": { + "Default": "None", + "Microsoft.AspNetCore": "None" + } + }, + "AllowedHosts": "*" +} diff --git a/src/HotChocolate/Fusion-vnext/benchmarks/k6/eShop.Gateway/appsettings.Development.json b/src/HotChocolate/Fusion-vnext/benchmarks/k6/eShop.Gateway/appsettings.Development.json index ff66ba6b28c..0c208ae9181 100644 --- a/src/HotChocolate/Fusion-vnext/benchmarks/k6/eShop.Gateway/appsettings.Development.json +++ b/src/HotChocolate/Fusion-vnext/benchmarks/k6/eShop.Gateway/appsettings.Development.json @@ -1,8 +1,8 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/src/HotChocolate/Fusion-vnext/benchmarks/k6/eShop.Gateway/appsettings.json b/src/HotChocolate/Fusion-vnext/benchmarks/k6/eShop.Gateway/appsettings.json index 501b0ccb8f7..153d95a6538 100644 --- a/src/HotChocolate/Fusion-vnext/benchmarks/k6/eShop.Gateway/appsettings.json +++ b/src/HotChocolate/Fusion-vnext/benchmarks/k6/eShop.Gateway/appsettings.json @@ -1,9 +1,9 @@ -{ - "Logging": { - "LogLevel": { - "Default": "None", - "Microsoft.AspNetCore": "None" - } - }, - "AllowedHosts": "*" -} \ No newline at end of file +{ + "Logging": { + "LogLevel": { + "Default": "None", + "Microsoft.AspNetCore": "None" + } + }, + "AllowedHosts": "*" +} diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbAggregateFluentTests.AggregateFluent_Serializer.snap b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbAggregateFluentTests.AggregateFluent_Serializer.snap index f2aa7a0cfae..bd2fc288f68 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbAggregateFluentTests.AggregateFluent_Serializer.snap +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbAggregateFluentTests.AggregateFluent_Serializer.snap @@ -1,13 +1,13 @@ 2020-01-11 Result: --------------- -{ - "data": { - "root": [ - { - "baz": "2020-01-11T00:00:00Z" - } - ] - } +{ + "data": { + "root": [ + { + "baz": "2020-01-11T00:00:00Z" + } + ] + } } --------------- @@ -18,14 +18,14 @@ aggregate([{ "$match" : { "testName" : { "$eq" : "2020-01-11T00:00:00+00:00" } } 2020-01-12 Result: --------------- -{ - "data": { - "root": [ - { - "baz": "2020-01-12T00:00:00Z" - } - ] - } +{ + "data": { + "root": [ + { + "baz": "2020-01-12T00:00:00Z" + } + ] + } } --------------- diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbCollectionTests.Collection_Serializer.snap b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbCollectionTests.Collection_Serializer.snap index 6cc35bea21f..25a59da5c59 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbCollectionTests.Collection_Serializer.snap +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbCollectionTests.Collection_Serializer.snap @@ -1,13 +1,13 @@ 2020-01-11 Result: --------------- -{ - "data": { - "root": [ - { - "baz": "2020-01-11T00:00:00Z" - } - ] - } +{ + "data": { + "root": [ + { + "baz": "2020-01-11T00:00:00Z" + } + ] + } } --------------- @@ -18,14 +18,14 @@ find({ "testName" : { "$eq" : "2020-01-11T00:00:00+00:00" } }) 2020-01-12 Result: --------------- -{ - "data": { - "root": [ - { - "baz": "2020-01-12T00:00:00Z" - } - ] - } +{ + "data": { + "root": [ + { + "baz": "2020-01-12T00:00:00Z" + } + ] + } } --------------- diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbFilterVisitorComparableTests.Create_ShortEqual_Expression_DateTime_Nullable.snap b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbFilterVisitorComparableTests.Create_ShortEqual_Expression_DateTime_Nullable.snap index 49cce89c4ae..8ff8f1ceac0 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbFilterVisitorComparableTests.Create_ShortEqual_Expression_DateTime_Nullable.snap +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbFilterVisitorComparableTests.Create_ShortEqual_Expression_DateTime_Nullable.snap @@ -1,13 +1,13 @@ 12 Result: --------------- -{ - "data": { - "root": [ - { - "barDateTime": "2000-01-12T00:00:00Z" - } - ] - } +{ + "data": { + "root": [ + { + "barDateTime": "2000-01-12T00:00:00Z" + } + ] + } } --------------- @@ -18,14 +18,14 @@ find({ "BarDateTime" : { "$eq" : { "$date" : "2000-01-12T00:00:00Z" } } }) 13 Result: --------------- -{ - "data": { - "root": [ - { - "barDateTime": "2000-01-12T00:00:00Z" - } - ] - } +{ + "data": { + "root": [ + { + "barDateTime": "2000-01-12T00:00:00Z" + } + ] + } } --------------- @@ -36,14 +36,14 @@ find({ "BarDateTime" : { "$eq" : { "$date" : "2000-01-12T00:00:00Z" } } }) null Result: --------------- -{ - "data": { - "root": [ - { - "barDateTime": null - } - ] - } +{ + "data": { + "root": [ + { + "barDateTime": null + } + ] + } } --------------- diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbFindFluentTests.FindFluent_CombineQuery.snap b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbFindFluentTests.FindFluent_CombineQuery.snap index c54d586ad8f..e1b9cb68da2 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbFindFluentTests.FindFluent_CombineQuery.snap +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbFindFluentTests.FindFluent_CombineQuery.snap @@ -1,13 +1,13 @@ 2020-01-11 Result: --------------- -{ - "data": { - "root": [ - { - "bar": "2020-01-11T00:00:00Z" - } - ] - } +{ + "data": { + "root": [ + { + "bar": "2020-01-11T00:00:00Z" + } + ] + } } --------------- @@ -18,14 +18,14 @@ find({ "Bar" : { "$gt" : { "DateTime" : { "$date" : "2000-01-01T00:00:00Z" }, "T 2020-01-12 Result: --------------- -{ - "data": { - "root": [ - { - "bar": "2020-01-12T00:00:00Z" - } - ] - } +{ + "data": { + "root": [ + { + "bar": "2020-01-12T00:00:00Z" + } + ] + } } --------------- diff --git a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbFindFluentTests.FindFluent_Serializer.snap b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbFindFluentTests.FindFluent_Serializer.snap index 6cc35bea21f..25a59da5c59 100644 --- a/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbFindFluentTests.FindFluent_Serializer.snap +++ b/src/HotChocolate/MongoDb/test/Data.MongoDb.Filters.Tests/__snapshots__/MongoDbFindFluentTests.FindFluent_Serializer.snap @@ -1,13 +1,13 @@ 2020-01-11 Result: --------------- -{ - "data": { - "root": [ - { - "baz": "2020-01-11T00:00:00Z" - } - ] - } +{ + "data": { + "root": [ + { + "baz": "2020-01-11T00:00:00Z" + } + ] + } } --------------- @@ -18,14 +18,14 @@ find({ "testName" : { "$eq" : "2020-01-11T00:00:00+00:00" } }) 2020-01-12 Result: --------------- -{ - "data": { - "root": [ - { - "baz": "2020-01-12T00:00:00Z" - } - ] - } +{ + "data": { + "root": [ + { + "baz": "2020-01-12T00:00:00Z" + } + ] + } } --------------- diff --git a/templates/azure-function/host.json b/templates/azure-function/host.json index 809a3f20b92..95b69327669 100644 --- a/templates/azure-function/host.json +++ b/templates/azure-function/host.json @@ -1,11 +1,11 @@ -{ - "version": "2.0", - "logging": { - "applicationInsights": { - "samplingSettings": { - "isEnabled": true, - "excludedTypes": "Request" - } - } - } -} \ No newline at end of file +{ + "version": "2.0", + "logging": { + "applicationInsights": { + "samplingSettings": { + "isEnabled": true, + "excludedTypes": "Request" + } + } + } +} diff --git a/templates/gateway/appsettings.Development.json b/templates/gateway/appsettings.Development.json index ff66ba6b28c..0c208ae9181 100644 --- a/templates/gateway/appsettings.Development.json +++ b/templates/gateway/appsettings.Development.json @@ -1,8 +1,8 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/templates/gateway/appsettings.json b/templates/gateway/appsettings.json index 4d566948de4..10f68b8c8b4 100644 --- a/templates/gateway/appsettings.json +++ b/templates/gateway/appsettings.json @@ -1,9 +1,9 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "AllowedHosts": "*" -} +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/templates/server/appsettings.Development.json b/templates/server/appsettings.Development.json index ff66ba6b28c..0c208ae9181 100644 --- a/templates/server/appsettings.Development.json +++ b/templates/server/appsettings.Development.json @@ -1,8 +1,8 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/templates/server/appsettings.json b/templates/server/appsettings.json index 4d566948de4..10f68b8c8b4 100644 --- a/templates/server/appsettings.json +++ b/templates/server/appsettings.json @@ -1,9 +1,9 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "AllowedHosts": "*" -} +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/website/public/images/companies/spectrum-medical.svg b/website/public/images/companies/spectrum-medical.svg index 0fc0e79ab9d..dc9f9219361 100644 --- a/website/public/images/companies/spectrum-medical.svg +++ b/website/public/images/companies/spectrum-medical.svg @@ -1,17 +1,17 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + diff --git a/website/src/images/companies/spectrum-medical.svg b/website/src/images/companies/spectrum-medical.svg index 0fc0e79ab9d..dc9f9219361 100644 --- a/website/src/images/companies/spectrum-medical.svg +++ b/website/src/images/companies/spectrum-medical.svg @@ -1,17 +1,17 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + +