Skip to content
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

Execute post-processing middlewares when a pre-processing middleware returns early or fails #398

Merged
merged 2 commits into from
Dec 21, 2024

Conversation

LukeMathWalker
Copy link
Owner

This was an oversight.
Considering what post-processing middlewares are used for (e.g. logging response data, injecting headers, etc.) it's much more useful to have them being invoked rather than skipped when something fails on the way in.

@LukeMathWalker
Copy link
Owner Author

/ok-to-test sha=255da46

@LukeMathWalker
Copy link
Owner Author

/ok-to-test sha=88e1e17

@LukeMathWalker LukeMathWalker merged commit 2de7b59 into main Dec 21, 2024
19 checks passed
@LukeMathWalker LukeMathWalker deleted the fix-post-processing-invocations branch December 21, 2024 09:56
@pavex-releaser pavex-releaser bot mentioned this pull request Dec 21, 2024
LukeMathWalker added a commit that referenced this pull request Dec 21, 2024
## 🤖 New release
* `pavex`: 0.1.62 -> 0.1.63
* `pavex_bp_schema`: 0.1.62 -> 0.1.63
* `pavex_reflection`: 0.1.62 -> 0.1.63
* `pavex_macros`: 0.1.62 -> 0.1.63
* `persist_if_changed`: 0.1.62 -> 0.1.63
* `pavex_tracing`: 0.1.62 -> 0.1.63
* `pavex_cli`: 0.1.62 -> 0.1.63
* `pavex_cli_deps`: 0.1.62 -> 0.1.63
* `pavex_miette`: 0.1.62 -> 0.1.63
* `pavexc_cli_client`: 0.1.62 -> 0.1.63
* `pavexc`: 0.1.62 -> 0.1.63
* `pavexc_rustdoc_types`: 0.1.62 -> 0.1.63
* `pavex_cli_client`: 0.1.62 -> 0.1.63
* `pavex_session`: 0.1.62 -> 0.1.63
* `pavex_session_memory_store`: 0.1.62 -> 0.1.63
* `pavex_session_sqlx`: 0.1.62 -> 0.1.63
* `pavexc_cli`: 0.1.62 -> 0.1.63
* `generate_from_path`: 0.1.62 -> 0.1.63

<details><summary><i><b>Changelog</b></i></summary><p>

## `pavex`
<blockquote>

##
[0.1.63](0.1.62...0.1.63)
- 2024-12-21

### Other

- Disable workspace hack before a release
- Execute post-processing middlewares when a pre-processing middleware
returns early or fails
([#398](#398))
- Re-enable workspace hack after a release
([#397](#397))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

---------

Co-authored-by: pavex-releaser[bot] <ci@pavex.dev>
Co-authored-by: pavex-releaser[bot] <167640712+pavex-releaser[bot]@users.noreply.github.com>
Co-authored-by: Luca Palmieri <20745048+LukeMathWalker@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant