-
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
[NP] Move IndexPatterns into the NP #51199
Merged
lizozom
merged 35 commits into
elastic:master
from
gospodarsky:move-index-patterns-to-new-plugins-2
Nov 30, 2019
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
4886bdd
Make a copy of index_patterns module inside NP
10f3d6f
Sync changes of index patterns
c226101
Merge remote-tracking branch 'upstream/master' into move-index-patter…
ba60d78
Merge remote-tracking branch 'upstream/master' into move-index-patter…
1e87986
Merge remote-tracking branch 'upstream/master' into move-index-patter…
4bd2e3f
Merge remote-tracking branch 'upstream/master' into move-index-patter…
09a0e6a
Remove UI component from service
4bfbf23
Merge remote-tracking branch 'upstream/master' into move-index-patter…
cd283bb
Remove redundant exports from index_patterns
da1978f
Sync old index_patters changes
3c0f5cf
Merge remote-tracking branch 'upstream/master' into move-index-patter…
ff1ad34
Make common namespace of IndexPattern
30243de
Make re-exports of old IndexPatter dependencies
d6e7d96
Remove utils and error of the old indexPattern
0311279
Merge remote-tracking branch 'upstream/master' into move-index-patter…
0fc81de
Merge remote-tracking branch 'upstream/master' into move-index-patter…
22ab71b
Plug InterPatternService in data plugin
8dde808
Make shortenDotString in new data plugin
794ebf3
Remove field folder
b9ba7f9
Merge remote-tracking branch 'upstream/master' into move-index-patter…
4596b06
Fix wrong merge
f247430
Remove index_pattern folder
66b306c
Merge remote-tracking branch 'upstream/master' into move-index-patter…
6683303
Merge remote-tracking branch 'upstream/master' into move-index-patter…
6213412
Remove _LEGACY from service
483eb75
Remove static code from service
1d121f6
Fix start contract
8fda8dd
Remove services from the old plugin
928ae7a
Remove index_patterns_service
befffec
Fix filter.meta.index type
2ba9d92
Fix reviews
676f2be
Fix type error
5b70c21
Merge branch 'master' into move-index-patterns-to-new-plugins-2
elasticmachine f71ee5f
Merge remote-tracking branch 'upstream/master' into move-index-patter…
a3df345
Merge branch 'move-index-patterns-to-new-plugins-2' of github.com:Avi…
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
export { shortenDottedString } from './shorten_dotted_string'; |
34 changes: 34 additions & 0 deletions
34
src/plugins/data/common/utils/shorten_dotted_string.test.ts
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,34 @@ | ||
/* | ||
* 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 { shortenDottedString } from './shorten_dotted_string'; | ||
|
||
describe('shortenDottedString', () => { | ||
test('should convert a dot.notated.string into a short string', () => { | ||
expect(shortenDottedString('dot.notated.string')).toBe('d.n.string'); | ||
}); | ||
|
||
test('should ignore non-string values', () => { | ||
const obj = { key: 'val' }; | ||
|
||
expect(shortenDottedString(true)).toBe(true); | ||
expect(shortenDottedString(123)).toBe(123); | ||
expect(shortenDottedString(obj)).toBe(obj); | ||
}); | ||
}); |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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.
This means that
shortenDottedString
is still going to be leaked into the public contract sincedata/public/index.ts
does anexport * from '../common';
I'm going to open a follow-up PR to address this more widely, so we can ensure nothing is being exported out of common that doesn't belong in our public API