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

[Graph] Switch to core http #49487

Merged
merged 5 commits into from
Nov 4, 2019

Conversation

flash1293
Copy link
Contributor

@flash1293 flash1293 commented Oct 28, 2019

This PR removes the dependency on $http and replaces it with core.http. It also fixes an issue that caused the loading state to not get cleaned up after a request because the digest cycle wasn't triggered.

To do so, I had to replicate the formatAngularHttpError helper logic. @elastic/kibana-platform it feels like this is a common thing, is/will there be a replacement offered from core and I missed it?

@eliperelman
Copy link
Contributor

eliperelman commented Oct 28, 2019

@flash1293 I feel like the formatAngularHttpError stuff is something we could handle pretty easily within core HTTP. Could you file an issue to discuss that?

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@flash1293 flash1293 marked this pull request as ready for review October 28, 2019 17:14
@flash1293 flash1293 requested review from a team and kertal October 28, 2019 17:14
@flash1293 flash1293 added the release_note:skip Skip the PR/issue when compiling release notes label Oct 28, 2019
@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@flash1293
Copy link
Contributor Author

@kertal Could you check out this one? It's a really simple cleanup PR.

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM 👍 , tested locally in Chrome

@kertal
Copy link
Member

kertal commented Nov 4, 2019

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@flash1293 flash1293 merged commit 6cd624f into elastic:master Nov 4, 2019
@flash1293 flash1293 deleted the graph/switch-to-core-http branch November 4, 2019 11:57
flash1293 added a commit to flash1293/kibana that referenced this pull request Nov 4, 2019
flash1293 added a commit that referenced this pull request Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Graph Graph application feature Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes v7.6.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants