movio / bramble

A federated GraphQL API gateway
https://movio.github.io/bramble/
MIT License
497 stars 53 forks source link

Add InterceptResponse to the Plugin interface #205

Closed nmaquet closed 1 year ago

nmaquet commented 1 year ago

InterceptResponse is called after bramble has finished executing a request. It can be used to inspect and/or modify the response bramble will return.

Added to help with https://github.com/movio/bramble/issues/204

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 41.66% and project coverage change: -0.11 :warning:

Comparison is base (b2865c4) 71.10% compared to head (21d7cd9) 70.99%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #205 +/- ## ========================================== - Coverage 71.10% 70.99% -0.11% ========================================== Files 26 26 Lines 2710 2717 +7 ========================================== + Hits 1927 1929 +2 - Misses 660 665 +5 Partials 123 123 ``` | [Impacted Files](https://app.codecov.io/gh/movio/bramble/pull/205?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=movio) | Coverage Δ | | |---|---|---| | [plugin.go](https://app.codecov.io/gh/movio/bramble/pull/205?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=movio#diff-cGx1Z2luLmdv) | `0.00% <0.00%> (ø)` | | | [executable\_schema.go](https://app.codecov.io/gh/movio/bramble/pull/205?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=movio#diff-ZXhlY3V0YWJsZV9zY2hlbWEuZ28=) | `77.29% <45.45%> (-0.39%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/movio/bramble/pull/205/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=movio)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

nmaquet commented 1 year ago

Can you squash the typo commit though @nmaquet

Done!