-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate delete dialog calls should return 410 GONE, not 404 NOT FOUND #1541
Comments
) <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Related Issue(s) - #1541 ## Verification - [x] **Your** code builds clean without any errors or warnings - [x] 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)
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Related Issue(s) - #1541 ## Verification - [x] **Your** code builds clean without any errors or warnings - [x] 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 ## Release Notes - **New Features** - Introduced `410 Gone` response status for `DELETE`, `PUT`, and `POST` operations related to dialog management, enhancing clarity on resource deletion. - Added specific responses for deleted dialogs in various endpoints, improving error handling. - **Bug Fixes** - Updated response handling in dialog update and delete operations to return more accurate status when dealing with deleted entities. - **Tests** - Modified tests to reflect changes in response expectations for attempts to update deleted dialogs. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Test: Ser at det er diskutert litt mellom 400, 404 og 410 her i saken. Akkurat i dag oppleves 400. Det oppfatter jeg som feil. (Var ønsket 29.nov men ønket ble endret en time senere) Opprette dialog: |
Reproduction
Delete a dialog by ID, repeat the action
Expected behavior
410 GONE
Actual behavior
404 NOT FOUND
The text was updated successfully, but these errors were encountered: