You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(webapi): Return 410 GONE for notification checks on deleted dialogs (#1387)
<!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
## Related Issue(s)
- #1386
## 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 error handling for deleted entities in the notification
condition query.
- Added a new response type for deleted dialogs, improving clarity in
error reporting.
- **Bug Fixes**
- Improved response handling for scenarios where a requested dialog has
been deleted.
- **Tests**
- Introduced a new test case to verify correct behavior when querying a
deleted dialog.
- Refactored test methods for improved readability and maintainability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Copy file name to clipboardexpand all lines: src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/DialogActivities/Queries/NotificationCondition/NotificationConditionQuery.cs
+7-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ public enum NotificationConditionType
Copy file name to clipboardexpand all lines: src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogActivities/NotificationCondition/NotificationConditionEndpoint.cs
Copy file name to clipboardexpand all lines: tests/Digdir.Domain.Dialogporten.Application.Integration.Tests/Features/V1/ServiceOwner/NotificationCondition/NotificationConditionTests.cs
0 commit comments