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

Replaced last import of chrome with core dep #44007

Merged

Conversation

lizozom
Copy link
Contributor

@lizozom lizozom commented Aug 26, 2019

Summary

Pass savedObjectsClient down to QueryBarInput to remove the last import of chrome in data plugin.

I also moved the creation of createSavedQueryService from top_nav to search_bar as it led to a cleaner interface (as I would have had to pass down both.)

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@elasticmachine
Copy link
Contributor

💔 Build Failed

@lizozom lizozom requested a review from a team August 27, 2019 06:39
@lizozom lizozom self-assigned this Aug 27, 2019
@lizozom lizozom requested a review from streamich August 27, 2019 06:39
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch

@lizozom lizozom added Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes labels Aug 27, 2019
@lizozom lizozom marked this pull request as ready for review August 27, 2019 06:53
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

@lizozom
Copy link
Contributor Author

lizozom commented Aug 27, 2019

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@ppisljar ppisljar 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

@lizozom lizozom merged commit 3deb07f into elastic:master Aug 28, 2019
lizozom pushed a commit to lizozom/kibana that referenced this pull request Aug 28, 2019
* Replaced last import of chrome with core dep

* pass saved objects client to FilterRow

* update tests

* fix warning

* updated snapshot
Copy link
Contributor

@streamich streamich left a comment

Choose a reason for hiding this comment

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

LGTM, tested on Mac/Chrome. Just one React comment below.

@@ -46,7 +47,7 @@ export interface SearchBarProps {
appName: string;
intl: InjectedIntl;
uiSettings: UiSettingsClientContract;
savedQueryService: SavedQueryService;
savedObjectsClient: SavedObjectsClientContract;
Copy link
Contributor

Choose a reason for hiding this comment

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

savedObjectsClient does not seem to change over time, thus it could be outside of state

private savedQueryService = createSavedQueryService(this.props.savedObjectsClient);

lizozom pushed a commit that referenced this pull request Aug 28, 2019
* Replaced last import of chrome with core dep

* pass saved objects client to FilterRow

* update tests

* fix warning

* updated snapshot
@lizozom lizozom mentioned this pull request Sep 1, 2019
7 tasks
@lizozom lizozom deleted the newplatform/data-plugin/delete-last-chrome branch November 14, 2019 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants