-
Notifications
You must be signed in to change notification settings - Fork 4
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
add request/response hooks to adapter utility #114
Conversation
@fmigneault this PR introduces the "hook". Would you like to add an example/test for the usage? |
Yes good idea. |
@cehbrecht You can have a look at the added test in 2372274. Hooks are used to modify request headers and response body. |
Codecov Report
@@ Coverage Diff @@
## master #114 +/- ##
==========================================
+ Coverage 72.16% 74.20% +2.03%
==========================================
Files 40 41 +1
Lines 1703 1795 +92
==========================================
+ Hits 1229 1332 +103
+ Misses 474 463 -11
Continue to review full report at Codecov.
|
…lly also expect this reference)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great addition! Thanks.
… workspace directory (relates to Ouranosinc/Magpie#517 and bird-house/twitcher#114)
@cehbrecht I can do the release if you left me know how to do so. I will probably have another 0.7.1 in a near future with more additions. |
@fmigneault I have added you as maintainer. You should have received an invite. |
@cehbrecht Thanks a lot. I will look into automating the release procedure on PyPi from a tagged run of Github action/workflow. |
Changes
I propose to bump to
0.7.0
version after merge. This will help keep track of the new feature separately.Purpose
For birdhouse-deploy / PAVICS / DACCS project, there is a requirement to inject some headers with user-specific details for specific requests when a service is proxy-requested. Using the
MagpieAdapter
(see PR Ouranosinc/Magpie#517), it is possible to do so.This can be used as well by adapters/platforms to filter some specific contents. For example, one could filter listed processes in WPS GetCapabilities response based on different user-access policies, since WPS itself returns all the processes otherwise.