Skip to content

Commit

Permalink
Renamed Persisted Queries to Persisted Operations (#7436)
Browse files Browse the repository at this point in the history
  • Loading branch information
glen-84 authored Sep 6, 2024
1 parent 0031a06 commit 3e18db9
Show file tree
Hide file tree
Showing 147 changed files with 1,257 additions and 1,205 deletions.
4 changes: 2 additions & 2 deletions .build/Build.Tests.2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ partial class Build
.Produces(TestResultDirectory / "*.trx")
.Executes(() => RunTests(SourceDirectory / "HotChocolate" / "OpenApi" / "HotChocolate.OpenApi.sln"));

Target TestHotChocolatePersistedQueries => _ => _
Target TestHotChocolatePersistedOperations => _ => _
.Produces(TestResultDirectory / "*.trx")
.Executes(() => RunTests(SourceDirectory / "HotChocolate" / "PersistedQueries" / "HotChocolate.PersistedQueries.sln"));
.Executes(() => RunTests(SourceDirectory / "HotChocolate" / "PersistedOperations" / "HotChocolate.PersistedOperations.sln"));

Target TestHotChocolateRaven => _ => _
.Produces(TestResultDirectory / "*.trx")
Expand Down
2 changes: 1 addition & 1 deletion .build/Build.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ partial class Build
TestHotChocolateLanguage,
TestHotChocolateMarten,
TestHotChocolateMongoDb,
TestHotChocolatePersistedQueries,
TestHotChocolatePersistedOperations,
TestHotChocolateRaven,
TestHotChocolateSkimmed,
TestHotChocolateSpatial,
Expand Down
2 changes: 1 addition & 1 deletion .build/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static class Helpers
Path.Combine("HotChocolate", "Caching"),
Path.Combine("HotChocolate", "Diagnostics"),
Path.Combine("HotChocolate", "Language"),
Path.Combine("HotChocolate", "PersistedQueries"),
Path.Combine("HotChocolate", "PersistedOperations"),
Path.Combine("HotChocolate", "Utilities"),
Path.Combine("HotChocolate", "Data"),
Path.Combine("HotChocolate", "Marten"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,13 @@ public static BananaCakePopEndpointConventionBuilder MapBananaCakePop(

#if NET8_0_OR_GREATER
/// <summary>
/// Adds a persisted query endpoint to the endpoint configurations.
/// Adds a persisted operation endpoint to the endpoint configurations.
/// </summary>
/// <param name="endpointRouteBuilder">
/// The <see cref="IEndpointRouteBuilder"/>.
/// </param>
/// <param name="path">
/// The path to which the persisted query endpoint shall be mapped.
/// The path to which the persisted operation endpoint shall be mapped.
/// </param>
/// <param name="schemaName">
/// The name of the schema that shall be used by this endpoint.
Expand All @@ -471,13 +471,13 @@ public static IEndpointConventionBuilder MapGraphQLPersistedOperations(
=> MapGraphQLPersistedOperations(endpointRouteBuilder, Parse(path), schemaName, requireOperationName);

/// <summary>
/// Adds a persisted query endpoint to the endpoint configurations.
/// Adds a persisted operation endpoint to the endpoint configurations.
/// </summary>
/// <param name="endpointRouteBuilder">
/// The <see cref="IEndpointRouteBuilder"/>.
/// </param>
/// <param name="path">
/// The path to which the persisted query endpoint shall be mapped.
/// The path to which the persisted operation endpoint shall be mapped.
/// </param>
/// <param name="schemaName">
/// The name of the schema that shall be used by this endpoint.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace HotChocolate.Transport;
public interface IOperationRequest : IRequestBody
{
/// <summary>
/// Gets the ID of a previously persisted query that should be executed.
/// Gets the ID of a previously persisted operation that should be executed.
/// </summary>
string? Id { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace HotChocolate.Transport;
/// The query document containing the operation to execute.
/// </param>
/// <param name="id">
/// The ID of a previously persisted query that should be executed.
/// The ID of a previously persisted operation that should be executed.
/// </param>
/// <param name="operationName">
/// The name of the operation to execute.
Expand Down Expand Up @@ -51,7 +51,7 @@ public OperationRequest(
/// The query string containing the operation to execute.
/// </param>
/// <param name="id">
/// The ID of a previously persisted query that should be executed.
/// The ID of a previously persisted operation that should be executed.
/// </param>
/// <param name="operationName">
/// The name of the operation to execute.
Expand Down Expand Up @@ -85,7 +85,7 @@ public OperationRequest(
public static OperationRequest Empty { get; } = new();

/// <summary>
/// Gets the ID of a previously persisted query that should be executed.
/// Gets the ID of a previously persisted operation that should be executed.
/// </summary>
public string? Id { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace HotChocolate.Transport;
/// The query document containing the operation to execute.
/// </param>
/// <param name="id">
/// The ID of a previously persisted query that should be executed.
/// The ID of a previously persisted operation that should be executed.
/// </param>
/// <param name="operationName">
/// The name of the operation to execute.
Expand Down Expand Up @@ -51,7 +51,7 @@ public VariableBatchRequest(
/// The query string containing the operation to execute.
/// </param>
/// <param name="id">
/// The ID of a previously persisted query that should be executed.
/// The ID of a previously persisted operation that should be executed.
/// </param>
/// <param name="operationName">
/// The name of the operation to execute.
Expand Down Expand Up @@ -85,7 +85,7 @@ public VariableBatchRequest(
public static OperationRequest Empty { get; } = new();

/// <summary>
/// Gets the ID of a previously persisted query that should be executed.
/// Gets the ID of a previously persisted operation that should be executed.
/// </summary>
public string? Id { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace HotChocolate.AspNetCore;
public class PersistedOperationMiddlewareTests(TestServerFactory serverFactory) : ServerTestBase(serverFactory)
{
[Fact]
public async Task ExecutePersistedQuery_Success()
public async Task ExecutePersistedOperation_Success()
{
// arrange
var server = CreateStarWarsServer();
Expand All @@ -28,7 +28,7 @@ public async Task ExecutePersistedQuery_Success()
}

[Fact]
public async Task ExecutePersistedQuery_NotFound()
public async Task ExecutePersistedOperation_NotFound()
{
// arrange
var server = CreateStarWarsServer();
Expand All @@ -45,7 +45,7 @@ public async Task ExecutePersistedQuery_NotFound()
}

[Fact]
public async Task ExecutePersistedQuery_InvalidId()
public async Task ExecutePersistedOperation_InvalidId()
{
// arrange
var server = CreateStarWarsServer();
Expand All @@ -62,7 +62,7 @@ public async Task ExecutePersistedQuery_InvalidId()
}

[Fact]
public async Task ExecutePersistedQuery_HttpPost_Empty_Body_Success()
public async Task ExecutePersistedOperation_HttpPost_Empty_Body_Success()
{
// arrange
var server = CreateStarWarsServer();
Expand All @@ -89,7 +89,7 @@ public async Task ExecutePersistedQuery_HttpPost_Empty_Body_Success()
}

[Fact]
public async Task ExecutePersistedQuery_Require_OperationName_Fail()
public async Task ExecutePersistedOperation_Require_OperationName_Fail()
{
// arrange
var server = CreateStarWarsServer(requireOperationName: true);
Expand All @@ -116,7 +116,7 @@ public async Task ExecutePersistedQuery_Require_OperationName_Fail()
}

[Fact]
public async Task ExecutePersistedQuery_OperationName_Is_Optional_Success()
public async Task ExecutePersistedOperation_OperationName_Is_Optional_Success()
{
// arrange
var server = CreateStarWarsServer(requireOperationName: false);
Expand All @@ -143,7 +143,7 @@ public async Task ExecutePersistedQuery_OperationName_Is_Optional_Success()
}

[Fact]
public async Task ExecutePersistedQuery_HttpPost_Empty_Body_NotFound()
public async Task ExecutePersistedOperation_HttpPost_Empty_Body_NotFound()
{
// arrange
var server = CreateStarWarsServer();
Expand All @@ -170,7 +170,7 @@ public async Task ExecutePersistedQuery_HttpPost_Empty_Body_NotFound()
}

[Fact]
public async Task ExecutePersistedQuery_HttpPost_Empty_Body_InvalidId()
public async Task ExecutePersistedOperation_HttpPost_Empty_Body_InvalidId()
{
// arrange
var server = CreateStarWarsServer();
Expand All @@ -197,7 +197,7 @@ public async Task ExecutePersistedQuery_HttpPost_Empty_Body_InvalidId()
}

[Fact]
public async Task ExecutePersistedQuery_HttpPost_With_Variables_Success()
public async Task ExecutePersistedOperation_HttpPost_With_Variables_Success()
{
// arrange
var server = CreateStarWarsServer();
Expand Down
Loading

0 comments on commit 3e18db9

Please sign in to comment.