-
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
Interceptor parity between $http and kfetch #22594
Comments
@elastic/kibana-platform |
Only issue I have with that example is that the interceptor is only added to |
@spalger Are there cases where |
Oh, true, we don't use things like routing in plugins like APM but we do still setup angular. No reason to couple it to angular right now, but yeah, it should work fine. |
With kfetch now being backed by the new platform http service, we should move the interceptor functionality into http. @cjcenizal I can take this on since I'm pretty familiar with each of their internals now. |
@eliperelman FYI I created #22890 to migrate |
@joshdover Can this issue be closed now? |
Yes, thank you. |
Goal
Consumers of
kfetch
will assume it's an on-par subttitute for$http
. However, this is not the case because several parts of our codebase add interceptors for$http
. We need to update all the places where we consume$httpProvider.interceptors
to add the same interceptors forkfetch
and then test thoroughly to make sure they all work as expected, in order for people to safely migrate from$http
tokfetch
.Prior discussion in #22128.
Parity example
Here's how we would update xsrf.js.
The text was updated successfully, but these errors were encountered: