-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Move ui/value_suggestions ⇒ NP data plugin #45762
Merged
lizozom
merged 40 commits into
elastic:master
from
lizozom:newplatform/data-plugin/value-suggesions
Oct 6, 2019
Merged
Changes from 3 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
e22d673
Bind search bar
0c7eebf
create prewired data components
41dd2ef
Pass NP data plugin to shim plugin, to access autocomplete
c4525e9
Use KibanaContextProvider in vis editor and graph
995bfeb
Use KibanaContextProvider in maps
1d09108
Use prewirted SearchBar in TopNavMenu
08fed2f
Use KibanaContextProbider in Lens
b4ce1f2
Fix appName usage in query bar input
7e2740c
fixed query bar top row appName
35d365e
update tests
4dd148d
fixed bind search bar bug
4913548
mock SearchBar
c836679
Removed unnecessary mocks
65b592e
Delete unused mock
8dbf164
Fixed exporting of data plugin types
b4a80f6
Merge remote-tracking branch 'upstream/master' into newplatform/data-…
1f84606
Updated maps snapshot
0f60094
Fixed some TS issues
b7935cd
Merge remote-tracking branch 'upstream/master' into newplatform/data-…
64b9ec6
Fixed jest tests
1fe975c
Context adjustments in TSVB
23ae2e7
componentWillMount
2eb5425
Merge remote-tracking branch 'upstream/master' into newplatform/data-…
0ca40af
Code review fixes
eaac39c
Pass dataTestSubj to query bar input
cc39f89
Graph data
89b72c7
- Pass NP data plugin to KibanaReactContext
b225dc5
- Pass NP data plugin to KibanaReactContext
d08b938
ts fixes
fff2186
Added karma getSuggestions fake
64f4566
Refactored kuery autocomplete tests to jest
99f67ae
Merge remote-tracking branch 'upstream/master' into newplatform/data-…
a992310
Filter bar context for directives
03cd33c
updated snapshot
dad955f
Merge remote-tracking branch 'upstream/master' into newplatform/data-…
6fe474c
Merge remote-tracking branch 'upstream/master' into newplatform/data-…
c719a2b
Merge remote-tracking branch 'upstream/master' into newplatform/data-…
f226ffa
Merge branch 'newplatform/data-plugin/value-suggesions' of github.com…
d7e3cd4
fix diffs
0d983f5
fixed lens test
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
// Should be import { Field } from './index_patterns'; | ||
export type Field = any; | ||
|
||
export type IGetSuggestions = (index: string, field: Field, query: string, boolFilter?: any) => any; |
Oops, something went wrong.
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.
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.
In
data
plugin we have this services pattern where each service is returned from life-cycles, hereautocomplete
andgetSuggestions
are some utilities. Should we collect them into a service, saysuggestions
?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.
I actually thought of placing it inside the
autocomplete
service.I just wasn't sure and didn't want to create unnecessary code while not sure.
Until we have a good hunch, I think the services pattern is great for more complex things, than a single function.