-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add missing events to dialog subscription (#1163)
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> The DialogUpdated GraphQL subscription is not triggered when an activity is added, or when the dialog is deleted * Rename subscription to "dialogEvents" * Add type field, values are "DialogUpdated" and "DialogDeleted" ## Related Issue(s) - #1162 ## Verification - [ ] **Your** code builds clean without any errors or warnings - [ ] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new `DialogEventPayload` structure to handle dialog events, including updates and deletions. - Updated subscriptions to reflect the new event handling mechanism. - **Bug Fixes** - Renamed and expanded dialog event handling to improve clarity and functionality. - **Chores** - Renamed constants for event topics to better represent the scope of dialog events. - **Tests** - Minor adjustments in architecture tests for internal class visibility. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
7 changed files
with
61 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/Digdir.Domain.Dialogporten.Infrastructure/GraphQL/DialogEventPayload.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Digdir.Domain.Dialogporten.Infrastructure.GraphQl; | ||
|
||
internal struct DialogEventPayload | ||
{ | ||
public Guid Id { get; set; } | ||
public DialogEventType Type { get; set; } | ||
} | ||
|
||
internal enum DialogEventType | ||
{ | ||
DialogUpdated = 1, | ||
DialogDeleted = 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters