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

Remove angular promises from Courier #16998

Closed
stacey-gammon opened this issue Mar 6, 2018 · 2 comments
Closed

Remove angular promises from Courier #16998

stacey-gammon opened this issue Mar 6, 2018 · 2 comments
Assignees
Labels
chore Feature:Search Querying infrastructure in Kibana

Comments

@stacey-gammon
Copy link
Contributor

In order to extricate angular from courier, a good place to start is to get rid of the Promise classes passed everywhere (which we decided was our plan in #13855).

This isn't super straightforward though because we make use of Promise.defer which is deprecated in native javascript Promise class. I suspect using observables will help because the defer object is passed around and used to reject the promise in certain situations (like an error is encountered, or the page is navigated away from).

First step is to figure out exactly how defer is being used and write a couple tests to make sure our refactoring isn't affected by it. It's used in error handling (cancel any existing requests), and I think with auto refresh on.

cc @timroes @chrisdavies

@cjcenizal cjcenizal self-assigned this Jun 21, 2018
@timroes timroes added Feature:Search Querying infrastructure in Kibana Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed :Sharing labels Sep 14, 2018
@timroes
Copy link
Contributor

timroes commented Mar 5, 2019

cc @lukasolson I assume that will anyway happen via the courier rewrite, so just wanted to highlight this issue again, so we don't forget to close it later :-)

@timroes timroes added :AppArch and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Mar 27, 2019
@lukasolson
Copy link
Member

This has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Feature:Search Querying infrastructure in Kibana
Projects
None yet
Development

No branches or pull requests

4 participants