-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Pass along request object to all HTTP interceptors #47258
Pass along request object to all HTTP interceptors #47258
Conversation
Pinging @elastic/kibana-platform (Team:Platform) |
💔 Build Failed |
6b76917
to
d785ded
Compare
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
6e54c4a
to
6434007
Compare
💚 Build Succeeded |
6434007
to
d47214f
Compare
💚 Build Succeeded |
d47214f
to
1006788
Compare
@kobelb @joshdover PR updated, please review the commits from ebda478 forward. |
💔 Build Failed |
retest |
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.
Looks right to me. I'll defer to @kobelb on whether this meets his needs.
💔 Build Failed |
1006788
to
4cbc806
Compare
💚 Build Succeeded |
💔 Build Failed |
…se interception return types
98670d3
to
a76d46c
Compare
@kobelb PR updated, commits 084b3b4 and a76d46c are the updates to review. |
💚 Build Succeeded |
ACK: Will review later this afternoon ❤️ |
💚 Build Succeeded |
* Pass along request object to all HTTP interceptors * Do not trigger response interceptors from request errors; make request readonly * Update core API * Fix failing test * Add tests to ensure that interceptors accumulate request and response across calls * Make request readonly for request error interception, simplify response interception return types * Update docs from request and response interception API change * Add missing InterceptedHttpResponse generated docs
* Pass along request object to all HTTP interceptors * Do not trigger response interceptors from request errors; make request readonly * Update core API * Fix failing test * Add tests to ensure that interceptors accumulate request and response across calls * Make request readonly for request error interception, simplify response interception return types * Update docs from request and response interception API change * Add missing InterceptedHttpResponse generated docs
Summary
Make the HTTP Request instance available to all interceptors. Allow returning partials from response interceptors.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.This was checked for cross-browser compatibility, including a check against IE11Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n supportDocumentation was added for features that require explanation or tutorialsThis was checked for keyboard-only and screenreader accessibilityFor maintainers
Dev Docs
Make the
Request
instance available to all HTTP interceptors, which is now in a read-only state. You may now also under-specify the object returned from HTTP response interceptors to only overwrite specific properties.