Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Refactor Plugins to access elasticsearch from CoreStart #59915
Refactor Plugins to access elasticsearch from CoreStart #59915
Changes from 19 commits
b621af9
ebf9f6c
e2f4436
9278e55
92fae4c
73eac20
275bc9e
5b7039a
06c19f5
78fc4d2
ae5af50
9653cf7
87bdfc7
d0f6d35
cdbcf86
a6a0c43
02b4a8c
417627a
6e48799
4d011f1
d3f5ef9
4898cfc
1714a8f
d63ea30
39a3924
b4d5dee
91f0f5d
7f57073
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Like below, let's stick to a single assignment:
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.
For simplicity let's stick to a single assignment
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.
If using only the class variable, typescript is unable to infer if the class variable is defined in async context requiring a
!
to override the possibly undefined values. So I preferred the type safety of another local variable. I've addressed your suggestions in 4898cfc let me know what you think?