Skip to content

Commit

Permalink
VCST-1580: add old Xapi module incompatibility (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksavosteev authored Aug 8, 2024
1 parent df527bc commit b8a8357
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ namespace VirtoCommerce.Xapi.Core.Infrastructure
/// <summary>
/// AppInsights telemetry processor that skips default Graphql queries
/// </summary>
public class IgnorePlainGraphQLTelemetryProcessor : ITelemetryProcessor
public class IgnorePlainCoreXapiGraphQLTelemetryProcessor : ITelemetryProcessor
{
private ITelemetryProcessor Next { get; set; }

public IgnorePlainGraphQLTelemetryProcessor(ITelemetryProcessor next)
public IgnorePlainCoreXapiGraphQLTelemetryProcessor(ITelemetryProcessor next)
{
Next = next;
}
Expand Down
2 changes: 1 addition & 1 deletion src/VirtoCommerce.Xapi.Web/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private bool IsSchemaIntrospectionEnabled

public void Initialize(IServiceCollection serviceCollection)
{
serviceCollection.AddApplicationInsightsTelemetryProcessor<IgnorePlainGraphQLTelemetryProcessor>();
serviceCollection.AddApplicationInsightsTelemetryProcessor<IgnorePlainCoreXapiGraphQLTelemetryProcessor>();
// register custom executor with app insight wrapper
serviceCollection.AddTransient(typeof(IGraphQLExecuter<>), typeof(CustomGraphQLExecuter<>));
serviceCollection.AddSingleton<IDocumentExecuter, SubscriptionDocumentExecuter>();
Expand Down
3 changes: 3 additions & 0 deletions src/VirtoCommerce.Xapi.Web/module.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<dependency id="VirtoCommerce.Store" version="3.803.0" />
<dependency id="VirtoCommerce.Tax" version="3.800.0" />
</dependencies>
<incompatibilities>
<module id="VirtoCommerce.ExperienceApi" version="3.800.0" />
</incompatibilities>

<title>Core Experience API</title>
<description>Module represents a core functionality for GraphQL and other XAPI modules</description>
Expand Down

0 comments on commit b8a8357

Please sign in to comment.