Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(graphQL): GraphQL subscription not notified on DialogActivityCrea…
…ted (#1187) <!--- Provide a general summary of your changes in the Title above --> ## Description Removes limitations on creating DialogUpdatedEvent (They where not created if the only thing changed in the aggregate was added activities) We now create DialogUpdatedEvent for any change in the aggregate. When processing events after a successful DB save we check for either a DialogUpdated or DialogDeleted per dialogID, and notify each dialogEvents GraphQL topic. <!--- Describe your changes in detail --> ## Related Issue(s) - #1165 ## 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** - Enhanced event handling for dialog updates, streamlining the process and reducing redundant event processing. - Introduced a mechanism to prevent multiple sends for the same dialog within a short time frame, improving efficiency. - **Bug Fixes** - Improved logic for processing domain events, ensuring clearer and more efficient handling. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Magnus Sandgren <5285192+MagnusSandgren@users.noreply.github.com> Co-authored-by: Knut Haug <knut.espen.haug@digdir.no>
- Loading branch information