-
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
Phase 1 of search services #46742
Merged
stacey-gammon
merged 26 commits into
elastic:master
from
stacey-gammon:2019-09-25-np-search-api
Oct 10, 2019
Merged
Phase 1 of search services #46742
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
e9d62d2
Phase 1 of search services
stacey-gammon 1da04ee
First review feedback
lukasolson d2c6787
Merge pull request #11 from lukasolson/np-search-api
stacey-gammon c0d3070
Start on tests
stacey-gammon 6c9a09a
Add functional tests for search explorer
stacey-gammon 83806cc
Add unload and fix ts error
stacey-gammon 606dcc0
Merge branch 'master' of github.com:elastic/kibana into 2019-09-25-np…
stacey-gammon 00a22d6
Add index.test.ts files for coverage completeness
stacey-gammon ba50e95
Adding unit tests
lukasolson 83eab32
Merge pull request #12 from lukasolson/np-search-api
stacey-gammon d75b3e9
use internal route terminology. No reason this should be a public rou…
stacey-gammon 1617ffa
Move search service into data plugin
stacey-gammon 95bde79
Merge branch 'master' of github.com:elastic/kibana into 2019-09-25-np…
stacey-gammon ce571b5
App mount search context needs to be optional
stacey-gammon e5ea60e
Merge branch 'master' of github.com:elastic/kibana into 2019-09-25-np…
stacey-gammon 64de132
Add more unit tests for server stuff
lukasolson 2c6c96f
Merge pull request #13 from lukasolson/np-search-api
stacey-gammon 88e73f6
wip types fix
stacey-gammon e9e75ef
Merge branch 'master' of github.com:elastic/kibana into 2019-09-25-np…
stacey-gammon 83aa47a
fix types for new context container stuff
stacey-gammon 2c9b24c
put back all jest test coverage paths
stacey-gammon 25ec030
address review comments
stacey-gammon 82db4e7
Merge branch 'master' of github.com:elastic/kibana into 2019-09-25-np…
stacey-gammon 8621708
delete the two test files that just tested the instantiation of the s…
stacey-gammon 1678aec
expose search fn on StartContract... tested locally only
stacey-gammon ce0a93f
update mocks to account for new startcontract
stacey-gammon 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import { FtrProviderContext } from 'test/functional/ftr_provider_context'; | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default function({ getService }: FtrProviderContext) { | ||
const testSubjects = getService('testSubjects'); | ||
|
||
describe('demo search strategy', () => { | ||
before(async () => { | ||
await testSubjects.click('demoSearch'); | ||
}); | ||
|
||
it('data is returned', async () => { | ||
await testSubjects.click('doSearch'); | ||
await testSubjects.stringExistsInCodeBlockOrFail('response', '"Lovely to meet you, Molly"'); | ||
}); | ||
}); | ||
} |
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,35 @@ | ||
/* | ||
* 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. | ||
*/ | ||
import { FtrProviderContext } from 'test/functional/ftr_provider_context'; | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default function({ getService }: FtrProviderContext) { | ||
const testSubjects = getService('testSubjects'); | ||
|
||
describe('es search strategy', () => { | ||
before(async () => { | ||
await testSubjects.click('esSearch'); | ||
}); | ||
|
||
it('data is returned', async () => { | ||
await testSubjects.click('doSearch'); | ||
await testSubjects.stringExistsInCodeBlockOrFail('response', '"animal weights"'); | ||
}); | ||
}); | ||
} |
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,46 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import { FtrProviderContext } from 'test/functional/ftr_provider_context'; | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default function({ getService, getPageObjects, loadTestFile }: FtrProviderContext) { | ||
const browser = getService('browser'); | ||
const appsMenu = getService('appsMenu'); | ||
const esArchiver = getService('esArchiver'); | ||
const kibanaServer = getService('kibanaServer'); | ||
const PageObjects = getPageObjects(['common', 'header']); | ||
|
||
describe('search services', function() { | ||
before(async () => { | ||
await esArchiver.loadIfNeeded('../functional/fixtures/es_archiver/dashboard/current/data'); | ||
await esArchiver.load('../functional/fixtures/es_archiver/dashboard/current/kibana'); | ||
await kibanaServer.uiSettings.replace({ | ||
'dateFormat:tz': 'Australia/North', | ||
defaultIndex: 'logstash-*', | ||
}); | ||
await browser.setWindowSize(1300, 900); | ||
await PageObjects.common.navigateToApp('settings'); | ||
await appsMenu.clickLink('Search Explorer'); | ||
}); | ||
|
||
loadTestFile(require.resolve('./demo_data')); | ||
loadTestFile(require.resolve('./es_search')); | ||
}); | ||
} |
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.
Do we need to revert these in an
after
?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.
yuuupppp, added another commit (and fixed the ts error that was killing ci)
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.
actually I reverted the data that was loaded. I don't think we need to change anything with the uiSettings, haven't seen that being "undone" before. Most tests set it explicitly.