Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions APIs/src/EpiServer.ContentGraph/Api/FIELDS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ internal class FIELDS
public const string SCORE = "_score";
public const string TYPE_NAME = "__typename";
public const string FULLTEXT = "_fulltext";
public const string TRACK = "_track";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private GraphQueryBuilder(OptiGraphOptions options, IHttpClientFactory httpClien
_httpClient = _httpClientFactory.CreateClient("HttpClientWithAutoDecompression");
}

public GraphQueryBuilder(IOptions<OptiGraphOptions> optiGraphOptions, IHttpClientFactory httpClientFactory) :
public GraphQueryBuilder(IOptionsSnapshot<OptiGraphOptions> optiGraphOptions, IHttpClientFactory httpClientFactory) :
this(optiGraphOptions.Value, httpClientFactory)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public TypeQueryBuilder<T> Track(string q)
graphObject.Filter = graphObject.Filter.IsNullOrEmpty() ?
$"track:\"{q}\"" :
$"{graphObject.Filter}, track:\"{q}\"";

this.Field(FIELDS.TRACK);
return this;
}
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
protected static string? WorkingDirectory;
private static HttpClient? _httpClient;
private static string USER_AGENT => $"Optimizely-Graph-NET-API/{typeof(IntegrationFixture).Assembly.GetName().Version}";
protected static IOptions<OptiGraphOptions> _configOptions;
protected static IOptionsSnapshot<OptiGraphOptions> _configOptions;
protected static IHttpClientFactory _httpClientFactory;

[AssemblyInitialize]
Expand All @@ -51,7 +51,7 @@
.ConfigureServices(services => ConfigureServices(services))
.Build();

_configOptions = testingHost.Services.GetService<IOptions<OptiGraphOptions>>();
_configOptions = testingHost.Services.GetService<IOptionsSnapshot<OptiGraphOptions>>();
_httpClientFactory = testingHost.Services.GetService<IHttpClientFactory>();
_httpClient = CreateHttpClient();
}
Expand Down Expand Up @@ -163,7 +163,7 @@
}
else
{
throw new Exception("Can not create mapping");

Check failure on line 166 in APIs/src/Testing/EPiServer.ContentGraph.IntegrationTests/TestSupport/IntegrationFixture.cs

View workflow job for this annotation

GitHub Actions / IT-TestResult

EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest ► search_2_conditions_in_and_filter_should_return_1_item

Failed test found in: TestResults/runneradmin_runnervm51nrn_2025-07-22_01_29_04.trx Error: Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
Raw output
Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
    at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.PushMapping(String json, String id) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 166
   at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.SetupData[T](String indexingData, String testId) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 215
   at EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize(TestContext testContext) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\QueryTests\BoolFilterTest.cs:line 21

Check failure on line 166 in APIs/src/Testing/EPiServer.ContentGraph.IntegrationTests/TestSupport/IntegrationFixture.cs

View workflow job for this annotation

GitHub Actions / IT-TestResult

EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest ► search_2_conditions_in_not_filter_should_return_2_items

Failed test found in: TestResults/runneradmin_runnervm51nrn_2025-07-22_01_29_04.trx Error: Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
Raw output
Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
    at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.PushMapping(String json, String id) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 166
   at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.SetupData[T](String indexingData, String testId) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 215
   at EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize(TestContext testContext) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\QueryTests\BoolFilterTest.cs:line 21

Check failure on line 166 in APIs/src/Testing/EPiServer.ContentGraph.IntegrationTests/TestSupport/IntegrationFixture.cs

View workflow job for this annotation

GitHub Actions / IT-TestResult

EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest ► search_2_conditions_in_or_filter_should_return_3_items

Failed test found in: TestResults/runneradmin_runnervm51nrn_2025-07-22_01_29_04.trx Error: Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
Raw output
Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
    at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.PushMapping(String json, String id) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 166
   at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.SetupData[T](String indexingData, String testId) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 215
   at EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize(TestContext testContext) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\QueryTests\BoolFilterTest.cs:line 21

Check failure on line 166 in APIs/src/Testing/EPiServer.ContentGraph.IntegrationTests/TestSupport/IntegrationFixture.cs

View workflow job for this annotation

GitHub Actions / IT-TestResult

EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest ► search_combine_3_boolean_filters_should_return_3_items

Failed test found in: TestResults/runneradmin_runnervm51nrn_2025-07-22_01_29_04.trx Error: Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
Raw output
Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
    at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.PushMapping(String json, String id) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 166
   at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.SetupData[T](String indexingData, String testId) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 215
   at EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize(TestContext testContext) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\QueryTests\BoolFilterTest.cs:line 21

Check failure on line 166 in APIs/src/Testing/EPiServer.ContentGraph.IntegrationTests/TestSupport/IntegrationFixture.cs

View workflow job for this annotation

GitHub Actions / IT-TestResult

EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest ► search_single_and_filter_with_priority_100_should_return_2_items

Failed test found in: TestResults/runneradmin_runnervm51nrn_2025-07-22_01_29_04.trx Error: Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
Raw output
Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
    at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.PushMapping(String json, String id) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 166
   at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.SetupData[T](String indexingData, String testId) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 215
   at EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize(TestContext testContext) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\QueryTests\BoolFilterTest.cs:line 21

Check failure on line 166 in APIs/src/Testing/EPiServer.ContentGraph.IntegrationTests/TestSupport/IntegrationFixture.cs

View workflow job for this annotation

GitHub Actions / IT-TestResult

EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest ► search_single_not_filter_with_priority_100_should_return_2_items

Failed test found in: TestResults/runneradmin_runnervm51nrn_2025-07-22_01_29_04.trx Error: Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
Raw output
Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
    at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.PushMapping(String json, String id) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 166
   at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.SetupData[T](String indexingData, String testId) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 215
   at EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize(TestContext testContext) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\QueryTests\BoolFilterTest.cs:line 21

Check failure on line 166 in APIs/src/Testing/EPiServer.ContentGraph.IntegrationTests/TestSupport/IntegrationFixture.cs

View workflow job for this annotation

GitHub Actions / IT-TestResult

EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest ► search_single_or_filter_with_priority_100_should_return_2_items

Failed test found in: TestResults/runneradmin_runnervm51nrn_2025-07-22_01_29_04.trx Error: Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
Raw output
Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
    at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.PushMapping(String json, String id) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 166
   at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.SetupData[T](String indexingData, String testId) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 215
   at EPiServer.ContentGraph.IntegrationTests.QueryTests.BoolFilterTest.ClassInitialize(TestContext testContext) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\QueryTests\BoolFilterTest.cs:line 21

Check failure on line 166 in APIs/src/Testing/EPiServer.ContentGraph.IntegrationTests/TestSupport/IntegrationFixture.cs

View workflow job for this annotation

GitHub Actions / IT-TestResult

EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest ► search_with_2_facet_should_return_2_facets

Failed test found in: TestResults/runneradmin_runnervm51nrn_2025-07-22_01_29_04.trx Error: Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
Raw output
Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
    at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.PushMapping(String json, String id) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 166
   at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.SetupData[T](String indexingData, String testId) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 215
   at EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest.ClassInitialize(TestContext testContext) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\QueryTests\FacetsTest.cs:line 21

Check failure on line 166 in APIs/src/Testing/EPiServer.ContentGraph.IntegrationTests/TestSupport/IntegrationFixture.cs

View workflow job for this annotation

GitHub Actions / IT-TestResult

EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest ► search_with_facet_filters_should_return_correct_items

Failed test found in: TestResults/runneradmin_runnervm51nrn_2025-07-22_01_29_04.trx Error: Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
Raw output
Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
    at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.PushMapping(String json, String id) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 166
   at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.SetupData[T](String indexingData, String testId) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 215
   at EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest.ClassInitialize(TestContext testContext) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\QueryTests\FacetsTest.cs:line 21

Check failure on line 166 in APIs/src/Testing/EPiServer.ContentGraph.IntegrationTests/TestSupport/IntegrationFixture.cs

View workflow job for this annotation

GitHub Actions / IT-TestResult

EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest ► search_with_facet_in_2_ranges_should_return_2_facets

Failed test found in: TestResults/runneradmin_runnervm51nrn_2025-07-22_01_29_04.trx Error: Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
Raw output
Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
    at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.PushMapping(String json, String id) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 166
   at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.SetupData[T](String indexingData, String testId) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 215
   at EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest.ClassInitialize(TestContext testContext) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\QueryTests\FacetsTest.cs:line 21

Check failure on line 166 in APIs/src/Testing/EPiServer.ContentGraph.IntegrationTests/TestSupport/IntegrationFixture.cs

View workflow job for this annotation

GitHub Actions / IT-TestResult

EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest ► search_with_facet_limit_1_should_return_facet_count_equals_1

Failed test found in: TestResults/runneradmin_runnervm51nrn_2025-07-22_01_29_04.trx Error: Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
Raw output
Class Initialization method EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest.ClassInitialize threw exception. System.Exception: Can not create mapping.
    at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.PushMapping(String json, String id) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 166
   at EPiServer.ContentGraph.IntegrationTests.TestSupport.IntegrationFixture.SetupData[T](String indexingData, String testId) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\TestSupport\IntegrationFixture.cs:line 215
   at EPiServer.ContentGraph.IntegrationTests.QueryTests.FacetsTest.ClassInitialize(TestContext testContext) in D:\a\graph-net-sdk\graph-net-sdk\APIs\src\Testing\EPiServer.ContentGraph.IntegrationTests\QueryTests\FacetsTest.cs:line 21
}
}
protected static async Task BulkIndexing<T>(string bulk, string id = "test")
Expand Down
Loading