Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to GraphQL.NET 7.0.0 #893

Merged
merged 4 commits into from
Aug 16, 2022
Merged

Bump to GraphQL.NET 7.0.0 #893

merged 4 commits into from
Aug 16, 2022

Conversation

Shane32
Copy link
Member

@Shane32 Shane32 commented Aug 16, 2022

No description provided.

@Shane32 Shane32 self-assigned this Aug 16, 2022
@Shane32 Shane32 added this to the v7 milestone Aug 16, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #893 (b34c322) into master (4b6e06d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #893   +/-   ##
=======================================
  Coverage   95.56%   95.56%           
=======================================
  Files          41       41           
  Lines        1982     1983    +1     
  Branches      334      334           
=======================================
+ Hits         1894     1895    +1     
  Misses         47       47           
  Partials       41       41           
Impacted Files Coverage Δ
....AspNetCore/Extensions/GraphQLBuilderExtensions.cs 96.72% <100.00%> (+0.05%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Shane32 Shane32 merged commit fbe8862 into master Aug 16, 2022
@Shane32 Shane32 deleted the Shane32-patch-1 branch August 16, 2022 02:51
@@ -15,6 +16,14 @@ protected BaseTest()
{
Host = Program.CreateHostBuilder(Array.Empty<string>())
.ConfigureWebHost(webBuilder => webBuilder.UseTestServer())
.ConfigureServices(services =>
{
services.AddGraphQL(b => b.ConfigureExecution((options, next) =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did it work before without AddGraphQL?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It runs AddGraphQL within the Program.cs file. For some reason the change to UseApolloTracing now started returning tracing results in the tests (which it should, I believe). So this call to AddGraphQL serves only to disable metrics for the purposes of the tests, leaving the sample project in tact.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, the reason is obvious -- the call to ConfigureExecutionOptions sets EnableMetrics, which now occurs prior to UseApolloTracing. I should have changed UseApolloTracing() to UseApolloTracing(false), as the sample is now incorrect.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sungam3r sungam3r added the dependencies Pull requests that update a dependency file label Aug 17, 2022
Kent-Chen-Conning added a commit to Conning/graphql-dotnet-server that referenced this pull request Oct 28, 2022
…4-upgrade-to-7.1

* commit 'af5ac03f9f5505d476850cee23c5aaa145110c94': (352 commits)
  Update response content type for `ExecutionResultActionResult` (graphql-dotnet#923)
  Bump Serilog.Sinks.Console from 4.0.1 to 4.1.0 (graphql-dotnet#924)
  Select return content type based on Accept header (graphql-dotnet#919)
  Allow the configuration of the response content type via options (graphql-dotnet#913)
  Change default response content type to match draft spec (graphql-dotnet#918)
  Add note regarding ASP.NET Core 2.1 support policy (graphql-dotnet#914)
  Bump Microsoft.NET.Test.Sdk from 17.3.0 to 17.3.1 (graphql-dotnet#920)
  Bump Shouldly from 4.0.3 to 4.1.0 (graphql-dotnet#912)
  Bump GraphQL to 7.0.2 (graphql-dotnet#911)
  Add file upload/download documentation to readme (graphql-dotnet#909)
  Fix packing readme and analysis recommendations (graphql-dotnet#897)
  Fix call to UseApolloTracing in Complex sample (graphql-dotnet#903)
  Add docs link
  Update migration document link (graphql-dotnet#895)
  Add federation tracing extension method (graphql-dotnet#894)
  Bump to GraphQL.NET 7.0.0 (graphql-dotnet#893)
  Feature/assembly-strongname (graphql-dotnet#892)
  Add JWT bearer authentication sample (graphql-dotnet#885)
  Bump Microsoft.AspNetCore.TestHost from 6.0.0 to 6.0.8 (graphql-dotnet#889)
  Bump Microsoft.NET.Test.Sdk from 17.2.0 to 17.3.0 (graphql-dotnet#890)
  ...

# Conflicts:
#	src/Transports.AspNetCore/GraphQLExtensions.cs
#	src/Transports.AspNetCore/GraphQLHttpMiddleware.cs
#	src/Transports.AspNetCore/Transports.AspNetCore.csproj
#	src/Transports.Subscriptions.Abstractions/ProtocolMessageListener.cs
#	src/Transports.Subscriptions.Abstractions/Subscription.cs
#	src/Transports.Subscriptions.Abstractions/SubscriptionServer.cs
#	src/Transports.Subscriptions.Abstractions/Transports.Subscriptions.Abstractions.csproj
#	src/Transports.Subscriptions.WebSockets/GraphQlWebSocketsMiddleware.cs
#	src/Transports.Subscriptions.WebSockets/Transports.Subscriptions.WebSockets.csproj
#	src/Transports.Subscriptions.WebSockets/WebSocketConnection.cs
#	src/Transports.Subscriptions.WebSockets/WebSocketReaderPipeline.cs
#	src/Ui.GraphiQL/Ui.GraphiQL.csproj
#	src/Ui.Playground/Ui.Playground.csproj
#	src/Ui.Voyager/Ui.Voyager.csproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants