Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: serverlessworkflow/synapse
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.0-alpha5.9
Choose a base ref
...
head repository: serverlessworkflow/synapse
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.0-alpha5.10
Choose a head ref
  • 20 commits
  • 57 files changed
  • 2 contributors

Commits on Dec 18, 2024

  1. fix(Dashboard): Fixed graph transition issues

    - Fixed an issue in the graph where the transition of a conditional node was followed instead of skipped
    - Fixed an issue in the graph where an exit or end transition in a switch case would result in an error
    - Added an icon to "custom function" nodes
    
    Signed-off-by: Jean-Baptiste Bianchi <jb.bianchi@neuroglia.io>
    JBBianchi committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    JBBianchi Jean-Baptiste Bianchi
    Copy the full SHA
    65f8ba6 View commit details
  2. Merge pull request #472 from serverlessworkflow/fix-dashboard-graph-t…

    …ransitions
    
    Fixed transitions issues in the Dashboard graph
    cdavernas authored Dec 18, 2024

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f500741 View commit details

Commits on Dec 19, 2024

  1. fix(Dashboard): Graph layout improvements

    - Task names are now in bold
    - Enlarged arrow marker size
    - Reduced the height of the clusters header
    - Reduced the space between ranks
    - Adjusted node Y when rendering, provides a better "centering" inside a cluster
    
    Signed-off-by: Jean-Baptiste Bianchi <jb.bianchi@neuroglia.io>
    JBBianchi committed Dec 19, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    JBBianchi Jean-Baptiste Bianchi
    Copy the full SHA
    e52c934 View commit details
  2. Merge pull request #473 from serverlessworkflow/fix-dashboard-graph-i…

    …mprovements
    
    Improved graph rendering in the Dashboard
    cdavernas authored Dec 19, 2024

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    978ecd0 View commit details
  3. feat(CI/CD): Replaced standard issue templates by form-based ones

    Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
    cdavernas committed Dec 19, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    cdavernas Charles d'Avernas
    Copy the full SHA
    a75454e View commit details
  4. fix(CI/CD): Fixed tags added by issue templates

    Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
    cdavernas committed Dec 19, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    cdavernas Charles d'Avernas
    Copy the full SHA
    fd7e589 View commit details
  5. Merge pull request #474 from serverlessworkflow/feat-form-based-issue…

    …s-templates
    
    Replace standard issue templates by form-based ones
    cdavernas authored Dec 19, 2024

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    58c4375 View commit details
  6. Delete .github/ISSUE_TEMPLATE/question.md

    Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
    cdavernas authored Dec 19, 2024

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e680ab7 View commit details

Commits on Jan 7, 2025

  1. Initial commit

    Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
    cdavernas committed Jan 7, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    cdavernas Charles d'Avernas
    Copy the full SHA
    86535bc View commit details

Commits on Jan 10, 2025

  1. feat(Runner): Implement the AsyncApiCallExecutor

    Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
    cdavernas committed Jan 10, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    cdavernas Charles d'Avernas
    Copy the full SHA
    076ce93 View commit details
  2. Merge pull request #475 from serverlessworkflow/feat-asyncapi-v3

    Implement the `AsyncAPI` function call
    cdavernas authored Jan 10, 2025

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7c158a6 View commit details
  3. feat(Runner): Update the HttpCallProcessor and `OpenApiCallProcesso…

    …r` to throw when a unexpected 3.x.x is returned by the remote server
    
    Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
    cdavernas committed Jan 10, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    cdavernas Charles d'Avernas
    Copy the full SHA
    be38824 View commit details
  4. Merge pull request #476 from serverlessworkflow/feat-http-openapi-red…

    …irect
    
    Update the `HttpCallProcessor` and `OpenApiCallProcessor` to throw when a unexpected 3.x.x is returned by the remote server
    cdavernas authored Jan 10, 2025

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3b4ed23 View commit details

Commits on Jan 15, 2025

  1. fix(Runner): Fix the HttpCallExecutor to configure authentication on …

    …the HttpClient used to perform the configured request
    
    Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
    cdavernas committed Jan 15, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    cdavernas Charles d'Avernas
    Copy the full SHA
    31b852b View commit details
  2. Merge pull request #477 from serverlessworkflow/fix-http-call-executor

    Fix the HttpCallExecutor to configure authentication on the HttpClient used to perform the configured request
    cdavernas authored Jan 15, 2025

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ac3af7e View commit details

Commits on Jan 16, 2025

  1. Initial commit

    Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
    cdavernas committed Jan 16, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    cdavernas Charles d'Avernas
    Copy the full SHA
    509292a View commit details

Commits on Jan 17, 2025

  1. feat(Runner): Implement streaming features for the listen task and …

    …for the `asyncapi` call
    
    Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
    cdavernas committed Jan 17, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    cdavernas Charles d'Avernas
    Copy the full SHA
    73b296a View commit details
  2. Merge pull request #478 from serverlessworkflow/feat-subscription-ite…

    …rator
    
    Implement streaming features for the `listen` task and for the `asyncapi` call
    cdavernas authored Jan 17, 2025

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    48b4968 View commit details
  3. feat(Runner): Implement event read mode

    Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
    cdavernas committed Jan 17, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    cdavernas Charles d'Avernas
    Copy the full SHA
    b232248 View commit details
  4. Merge pull request #479 from serverlessworkflow/feat-event-read-mode

    Implement event read mode
    cdavernas authored Jan 17, 2025

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ba59245 View commit details
Showing with 1,101 additions and 145 deletions.
  1. +0 −16 .github/ISSUE_TEMPLATE/bug-report.md
  2. +72 −0 .github/ISSUE_TEMPLATE/bug.yml
  3. +0 −10 .github/ISSUE_TEMPLATE/enhancement.md
  4. +47 −0 .github/ISSUE_TEMPLATE/feature.yml
  5. +0 −8 .github/ISSUE_TEMPLATE/question.md
  6. +24 −0 Synapse.sln
  7. +2 −0 config.yml
  8. +1 −1 src/api/Synapse.Api.Application/Synapse.Api.Application.csproj
  9. +2 −2 src/api/Synapse.Api.Client.Http/Synapse.Api.Client.Http.csproj
  10. +1 −1 src/api/Synapse.Api.Http/Synapse.Api.Http.csproj
  11. +4 −4 src/api/Synapse.Api.Server/Synapse.Api.Server.csproj
  12. +3 −3 src/cli/Synapse.Cli/Synapse.Cli.csproj
  13. +1 −2 src/core/Synapse.Core.Infrastructure/Services/XmlSchemaHandler.cs
  14. +1 −1 src/core/Synapse.Core.Infrastructure/Synapse.Core.Infrastructure.csproj
  15. +8 −2 src/core/Synapse.Core/Resources/CorrelationContext.cs
  16. +7 −1 src/core/Synapse.Core/Resources/CorrelationSpec.cs
  17. +2 −2 src/core/Synapse.Core/Synapse.Core.csproj
  18. +1 −1 src/correlator/Synapse.Correlator/Services/CorrelationHandler.cs
  19. +4 −4 src/correlator/Synapse.Correlator/Synapse.Correlator.csproj
  20. +3 −3 src/dashboard/Synapse.Dashboard.StateManagement/Synapse.Dashboard.StateManagement.csproj
  21. +1 −1 src/dashboard/Synapse.Dashboard/Components/WorkflowDiagram/Templates/NodeShapeTemplate.razor
  22. +1 −1 src/dashboard/Synapse.Dashboard/Components/WorkflowDiagram/Templates/NodeSymbolTemplate.razor
  23. +4 −3 src/dashboard/Synapse.Dashboard/Components/WorkflowDiagram/Templates/NodeTemplate.razor
  24. +12 −0 src/dashboard/Synapse.Dashboard/Components/WorkflowDiagram/WorkflowDiagram.razor
  25. +2 −1 src/dashboard/Synapse.Dashboard/Components/WorkflowDiagram/WorkflowDiagramStore.cs
  26. +1 −1 src/dashboard/Synapse.Dashboard/Components/WorkflowDiagram/WorkflowNodeViewModel.cs
  27. +26 −9 src/dashboard/Synapse.Dashboard/Services/WorkflowGraphBuilder.cs
  28. +4 −4 src/dashboard/Synapse.Dashboard/Synapse.Dashboard.csproj
  29. +5 −1 src/dashboard/Synapse.Dashboard/wwwroot/css/app.css
  30. +1 −1 src/dashboard/Synapse.Dashboard/wwwroot/css/app.min.css
  31. +5 −0 src/dashboard/Synapse.Dashboard/wwwroot/css/graph.scss
  32. +8 −0 src/dashboard/Synapse.Dashboard/wwwroot/index.html
  33. +1 −1 src/operator/Synapse.Operator/Services/WorkflowInstanceController.cs
  34. +2 −2 src/operator/Synapse.Operator/Synapse.Operator.csproj
  35. +39 −0 src/runner/Synapse.Runner/IStreamedCloudEvent.cs
  36. +9 −0 src/runner/Synapse.Runner/Program.cs
  37. +13 −0 src/runner/Synapse.Runner/RunnerDefaults.cs
  38. +116 −0 src/runner/Synapse.Runner/Services/ConnectedWorkflowExecutionContext.cs
  39. +380 −0 src/runner/Synapse.Runner/Services/Executors/AsyncApiCallExecutor.cs
  40. +1 −1 src/runner/Synapse.Runner/Services/Executors/FunctionCallExecutor.cs
  41. +22 −23 src/runner/Synapse.Runner/Services/Executors/HttpCallExecutor.cs
  42. +170 −2 src/runner/Synapse.Runner/Services/Executors/ListenTaskExecutor.cs
  43. +4 −4 src/runner/Synapse.Runner/Services/Executors/OpenApiCallExecutor.cs
  44. +7 −0 src/runner/Synapse.Runner/Services/Interfaces/ITaskExecutionContext.cs
  45. +8 −0 src/runner/Synapse.Runner/Services/Interfaces/IWorkflowExecutionContext.cs
  46. +3 −0 src/runner/Synapse.Runner/Services/StandAloneWorkflowExecutionContext.cs
  47. +3 −1 src/runner/Synapse.Runner/Services/TaskExecutionContext.cs
  48. +1 −0 src/runner/Synapse.Runner/Services/TaskExecutorFactory.cs
  49. +0 −1 src/runner/Synapse.Runner/Services/WorkflowExecutor.cs
  50. +40 −0 src/runner/Synapse.Runner/StreamedCloudEvent.cs
  51. +8 −6 src/runner/Synapse.Runner/Synapse.Runner.csproj
  52. +2 −2 tests/Synapse.IntegrationTests/Cases/Api/Controllers/NamespacesControllerTests.cs
  53. +1 −1 tests/Synapse.IntegrationTests/Cases/Api/Controllers/WorkflowDataControllerTests.cs
  54. +2 −2 tests/Synapse.IntegrationTests/Cases/Api/Controllers/WorkflowInstancesControllerTests.cs
  55. +2 −2 tests/Synapse.IntegrationTests/Cases/Api/Controllers/WorkflowsControllerTests.cs
  56. +6 −6 tests/Synapse.IntegrationTests/Synapse.IntegrationTests.csproj
  57. +8 −8 tests/Synapse.UnitTests/Synapse.UnitTests.csproj
16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

72 changes: 72 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Bug Report
description: Create a bug report
labels: ["type: bug"]
body:
- type: markdown
attributes:
value: |
:pray: Thanks for taking the time to fill out this bug report!
- type: markdown
attributes:
value: |
## Bug Report
- type: textarea
id: i-tried-this
attributes:
label: "I tried this:"
placeholder: "What did you try to do? A code snippet or example helps."
validations:
required: true

- type: textarea
id: instead-what-happened
attributes:
label: "This happened:"
placeholder: "What happened instead of what you've expected?"
validations:
required: true

- type: textarea
id: what-did-you-expect
attributes:
label: "I expected this:"
placeholder: "What did you expect to happen? Describe the output or behavior you expected to see (unless it's obvious)."

- type: textarea
id: workaround
attributes:
label: "Is there a workaround?"
placeholder: "What's the workaround to avoid this issue?"

- type: textarea
attributes:
label: Anything else?
placeholder: |
Links? References? Logs? Anything that will give us more context about the issue you are encountering.
Tip: You can attach images or log files by dragging files in.
- type: markdown
attributes:
value: |
## Environment
- type: dropdown
id: platform
attributes:
label: "Platform(s)"
multiple: true
options:
- MacOS
- Linux
- Windows
- Other

- type: textarea
attributes:
label: Community Notes
value: |
<!-- Please keep this note for the community -->
* Please vote by adding a 👍 reaction to the issue to help us prioritize.
* If you are interested to work on this issue, please leave a comment.name: Bug Report 🐞
10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/enhancement.md

This file was deleted.

47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Feature Request
description: Create a feature request
labels: ["type: enhancement"]
body:
- type: markdown
attributes:
value: |
:pray: Thanks for taking the time to fill out this feature request!
- type: markdown
attributes:
value: |
## Feature Request
- type: textarea
id: what-would-you-like-to-be-added
attributes:
label: "What would you like to be added?"
placeholder: "Description of the feature you'd like to see."
validations:
required: true

- type: textarea
id: proposals
attributes:
label: "Proposal(s):"
placeholder: "Describe your proposal(s) and any relevant details here."

- type: textarea
id: alternatives
attributes:
label: "Alternative(s):"
placeholder: "Describe any alternative approaches, options, or suggestions you’d like to consider."

- type: textarea
id: additional-info
attributes:
label: "Additional info:"
placeholder: "Provide any supplementary details, context, or supporting information here."

- type: textarea
attributes:
label: Community Notes
value: |
<!-- Please keep this note for the community -->
* Please vote by adding a 👍 reaction to the feature to help us prioritize.
* If you are interested to work on this feature, please leave a comment.
8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

24 changes: 24 additions & 0 deletions Synapse.sln
Original file line number Diff line number Diff line change
@@ -138,6 +138,28 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "kubernetes", "kubernetes",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Synapse.Core.Infrastructure.Containers.Kubernetes", "src\core\Synapse.Core.Infrastructure.Containers.Kubernetes\Synapse.Core.Infrastructure.Containers.Kubernetes.csproj", "{41C99069-BD99-4FD2-BF33-984CF03B53E8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{35D495F4-D267-4A84-9479-DB3C1BE85434}"
ProjectSection(SolutionItems) = preProject
.github\PULL_REQUEST_TEMPLATE.md = .github\PULL_REQUEST_TEMPLATE.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{AB30A91B-0158-411D-9BD3-36FFA441B3A2}"
ProjectSection(SolutionItems) = preProject
.github\workflows\build-dotnet.yml = .github\workflows\build-dotnet.yml
.github\workflows\ci-pipeline.yml = .github\workflows\ci-pipeline.yml
.github\workflows\helm.yml = .github\workflows\helm.yml
.github\workflows\publish.yml = .github\workflows\publish.yml
.github\workflows\release.yml = .github\workflows\release.yml
.github\workflows\versioning.yml = .github\workflows\versioning.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ISSUE_TEMPLATE", "ISSUE_TEMPLATE", "{06404855-A5BE-4556-91BC-064630E95737}"
ProjectSection(SolutionItems) = preProject
.github\ISSUE_TEMPLATE\bug.yml = .github\ISSUE_TEMPLATE\bug.yml
config.yml = config.yml
.github\ISSUE_TEMPLATE\feature.yml = .github\ISSUE_TEMPLATE\feature.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -272,6 +294,8 @@ Global
{DD6381BD-2C8B-4CE1-99B2-EC585DD818FA} = {9E296C8A-4D78-4592-B046-11A3A953FD25}
{B3F3DB1B-23E7-45FA-8934-448BFFB294E8} = {562C91A3-6E91-4489-9D9D-064E7436D900}
{41C99069-BD99-4FD2-BF33-984CF03B53E8} = {9E296C8A-4D78-4592-B046-11A3A953FD25}
{AB30A91B-0158-411D-9BD3-36FFA441B3A2} = {35D495F4-D267-4A84-9479-DB3C1BE85434}
{06404855-A5BE-4556-91BC-064630E95737} = {35D495F4-D267-4A84-9479-DB3C1BE85434}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2A6C03D6-355A-4B39-9F2B-D0FDE429C0E2}
2 changes: 2 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
blank_issues_enabled: false
contact_links: []
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@
<ItemGroup>
<PackageReference Include="IdentityServer4" Version="4.1.2" NoWarn="NU1902" />
<PackageReference Include="IdentityServer4.Storage" Version="4.1.2" NoWarn="NU1902" />
<PackageReference Include="Polly" Version="8.5.0" />
<PackageReference Include="Polly" Version="8.5.1" />
</ItemGroup>

<ItemGroup>
Original file line number Diff line number Diff line change
@@ -42,8 +42,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.0" />
<PackageReference Include="ServerlessWorkflow.Sdk.IO" Version="1.0.0-alpha5.2" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.1" />
<PackageReference Include="ServerlessWorkflow.Sdk.IO" Version="1.0.0-alpha6.3" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>

2 changes: 1 addition & 1 deletion src/api/Synapse.Api.Http/Synapse.Api.Http.csproj
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
<ItemGroup>
<PackageReference Include="Neuroglia.Mediation.AspNetCore" Version="4.18.1" />
<PackageReference Include="Neuroglia.Security.AspNetCore" Version="4.18.1" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="7.1.0" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="7.2.0" />
</ItemGroup>

<ItemGroup>
8 changes: 4 additions & 4 deletions src/api/Synapse.Api.Server/Synapse.Api.Server.csproj
Original file line number Diff line number Diff line change
@@ -31,11 +31,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="9.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="7.1.0" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="7.2.0" />
</ItemGroup>

<ItemGroup>
6 changes: 3 additions & 3 deletions src/cli/Synapse.Cli/Synapse.Cli.csproj
Original file line number Diff line number Diff line change
@@ -29,11 +29,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.1" />
<PackageReference Include="moment.net" Version="1.3.4" />
<PackageReference Include="NetEscapades.Configuration.Yaml" Version="3.1.0" />
<PackageReference Include="ServerlessWorkflow.Sdk.IO" Version="1.0.0-alpha5.2" />
<PackageReference Include="ServerlessWorkflow.Sdk.IO" Version="1.0.0-alpha6.3" />
<PackageReference Include="Spectre.Console" Version="0.49.1" />
<PackageReference Include="System.CommandLine.NamingConventionBinder" Version="2.0.0-beta4.22272.1" />
</ItemGroup>
Original file line number Diff line number Diff line change
@@ -15,9 +15,8 @@
using Neuroglia.Serialization;
using ServerlessWorkflow.Sdk;
using System.Net;
using System.Xml.Schema;
using System.Xml;
using Avro.Generic;
using System.Xml.Schema;

namespace Synapse.Core.Infrastructure.Services;

Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@
<PackageReference Include="Neuroglia.Mediation" Version="4.18.1" />
<PackageReference Include="Neuroglia.Plugins" Version="4.18.1" />
<PackageReference Include="Neuroglia.Serialization.Xml" Version="4.18.1" />
<PackageReference Include="ServerlessWorkflow.Sdk.IO" Version="1.0.0-alpha5.2" />
<PackageReference Include="ServerlessWorkflow.Sdk.IO" Version="1.0.0-alpha6.3" />
</ItemGroup>

<ItemGroup>
10 changes: 8 additions & 2 deletions src/core/Synapse.Core/Resources/CorrelationContext.cs
Original file line number Diff line number Diff line change
@@ -37,13 +37,19 @@ public record CorrelationContext
/// <summary>
/// Gets a key/value mapping of the context's correlation keys
/// </summary>
[DataMember(Name = "keys", Order = 2), JsonPropertyName("keys"), JsonPropertyOrder(2), YamlMember(Alias = "keys", Order = 2)]
[DataMember(Name = "keys", Order = 3), JsonPropertyName("keys"), JsonPropertyOrder(3), YamlMember(Alias = "keys", Order = 3)]
public virtual EquatableDictionary<string, string> Keys { get; set; } = [];

/// <summary>
/// Gets a key/value mapping of all correlated events, with the key being the index of the matched correlation filter
/// </summary>
[DataMember(Name = "events", Order = 3), JsonPropertyName("events"), JsonPropertyOrder(3), YamlMember(Alias = "events", Order = 3)]
[DataMember(Name = "events", Order = 4), JsonPropertyName("events"), JsonPropertyOrder(4), YamlMember(Alias = "events", Order = 4)]
public virtual EquatableDictionary<int, CloudEvent> Events { get; set; } = [];

/// <summary>
/// Gets the offset that serves as the index of the event being processed by the consumer, if streaming has been enabled for the correlation associated with the context.
/// </summary>
[DataMember(Name = "offset", Order = 5), JsonPropertyName("offset"), JsonPropertyOrder(5), YamlMember(Alias = "offset", Order = 5)]
public virtual uint? Offset { get; set; }

}
8 changes: 7 additions & 1 deletion src/core/Synapse.Core/Resources/CorrelationSpec.cs
Original file line number Diff line number Diff line change
@@ -46,10 +46,16 @@ public record CorrelationSpec
[DataMember(Name = "events", Order = 4), JsonPropertyName("events"), JsonPropertyOrder(4), YamlMember(Alias = "events", Order = 4)]
public virtual EventConsumptionStrategyDefinition Events { get; set; } = null!;

/// <summary>
/// Gets/sets a boolean indicating whether or not to stream events. When enabled, each correlated event is atomically published to the subscriber immediately rather than waiting for the entire correlation to complete
/// </summary>
[DataMember(Name = "stream", Order = 5), JsonPropertyName("stream"), JsonPropertyOrder(5), YamlMember(Alias = "stream", Order = 5)]
public virtual bool Stream { get; set; }

/// <summary>
/// Gets/sets an object used to configure the correlation's outcome
/// </summary>
[DataMember(Name = "outcome", Order = 5), JsonPropertyName("outcome"), JsonPropertyOrder(5), YamlMember(Alias = "outcome", Order = 5)]
[DataMember(Name = "outcome", Order = 6), JsonPropertyName("outcome"), JsonPropertyOrder(6), YamlMember(Alias = "outcome", Order = 6)]
public virtual CorrelationOutcomeDefinition Outcome { get; set; } = null!;

}
4 changes: 2 additions & 2 deletions src/core/Synapse.Core/Synapse.Core.csproj
Original file line number Diff line number Diff line change
@@ -66,11 +66,11 @@
<ItemGroup>
<PackageReference Include="Apache.Avro" Version="1.12.0" />
<PackageReference Include="Docker.DotNet" Version="3.125.15" />
<PackageReference Include="KubernetesClient" Version="15.0.1" />
<PackageReference Include="KubernetesClient" Version="16.0.1" />
<PackageReference Include="Neuroglia.Data.Infrastructure.ResourceOriented" Version="4.18.1" />
<PackageReference Include="Neuroglia.Eventing.CloudEvents" Version="4.18.1" />
<PackageReference Include="Semver" Version="3.0.0" />
<PackageReference Include="ServerlessWorkflow.Sdk" Version="1.0.0-alpha5.2" />
<PackageReference Include="ServerlessWorkflow.Sdk" Version="1.0.0-alpha6.3" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -334,7 +334,7 @@ protected virtual async Task CreateOrUpdateContextAsync(CorrelationContext conte
{
var index = updatedResource.Status.Contexts.IndexOf(existingContext);
updatedResource.Status.Contexts.Remove(existingContext);
if (!completed) updatedResource.Status.Contexts.Insert(index, context);
updatedResource.Status.Contexts.Insert(index, context);
}
if (completed)
{
8 changes: 4 additions & 4 deletions src/correlator/Synapse.Correlator/Synapse.Correlator.csproj
Original file line number Diff line number Diff line change
@@ -33,17 +33,17 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.KeyPerFile" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.KeyPerFile" Version="9.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="Neuroglia.Data.Expressions.JavaScript" Version="4.18.1" />
<PackageReference Include="Neuroglia.Data.Expressions.JQ" Version="4.18.1" />
<PackageReference Include="Neuroglia.Eventing.CloudEvents.AspNetCore" Version="4.18.1" />
<PackageReference Include="Neuroglia.Mediation.AspNetCore" Version="4.18.1" />
<PackageReference Include="Neuroglia.Eventing.CloudEvents.Infrastructure" Version="4.18.1" />
<PackageReference Include="Neuroglia.Security.AspNetCore" Version="4.18.1" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="7.1.0" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="7.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="7.2.0" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="7.2.0" />
</ItemGroup>

<ItemGroup>
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.1" />
<PackageReference Include="Microsoft.Extensions.Options" Version="9.0.1" />
</ItemGroup>

<ItemGroup>
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@
c 0 -@((Node.RadiusX / 2).ToInvariantString()) @((Node.RadiusX / 2).ToInvariantString()) -@(Node.RadiusX.ToInvariantString()) @(Node.RadiusX.ToInvariantString()) -@(Node.RadiusX.ToInvariantString())
h @((bounds.Width - (Node.RadiusX * 2)).ToInvariantString())
c @((Node.RadiusX / 2).ToInvariantString()) 0 @(Node.RadiusX.ToInvariantString()) @((Node.RadiusY / 2).ToInvariantString()) @(Node.RadiusX.ToInvariantString()) @(Node.RadiusY.ToInvariantString())
v @(Constants.ClusterHeight + 10)
v @(Constants.ClusterHeight - 10)
h -@(bounds.Width.ToInvariantString())
z"
/>
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@
(0 - bounds.Height / 4).ToInvariantString() :
!WorkflowNode.IsCluster ?
(0 - _symbolSize / 2).ToInvariantString() :
(0 - (bounds.Height + _symbolSize - (Constants.ClusterHeight+10)) / 2).ToInvariantString();
(0 - (bounds.Height + _symbolSize - (Constants.ClusterHeight-10)) / 2).ToInvariantString();

[CascadingParameter(Name = "Node")] public INodeViewModel Node { get; set; } = null!;
[CascadingParameter(Name = "Symbol")] public string? Symbol { get; set; }
Loading