-
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
Index pattern save => Index pattern service #76706
Merged
mattkime
merged 16 commits into
elastic:master
from
mattkime:refactor_index_pattern_save_refactor
Sep 8, 2020
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d0dbd73
partial progress
mattkime a4a8b35
fix typo
mattkime 1b85cb3
stub out index pattern service save
mattkime 06faf40
.
mattkime 455676d
move save to index pattern service
mattkime 833d530
fix saving field
mattkime 6d80f2e
move almost all index pattern save references to index pattern service
mattkime 67b2565
fix jest tests
mattkime 5f55f85
fix jest tests
mattkime a880b02
Merge branch 'master' into refactor_index_pattern_save_refactor
mattkime de2e884
update docs
mattkime beaac20
Merge branch 'master' into refactor_index_pattern_save_refactor
elasticmachine cfb57b2
update docs
mattkime b522491
Merge branch 'refactor_index_pattern_save_refactor' of github.com:mat…
mattkime 9f0151f
update docs
mattkime a4c85a3
Merge branch 'master' into refactor_index_pattern_save_refactor
mattkime 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
13 changes: 13 additions & 0 deletions
13
...gins/data/public/kibana-plugin-plugins-data-public.indexpattern.originalbody.md
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,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPattern](./kibana-plugin-plugins-data-public.indexpattern.md) > [originalBody](./kibana-plugin-plugins-data-public.indexpattern.originalbody.md) | ||
|
||
## IndexPattern.originalBody property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
originalBody: { | ||
[key: string]: any; | ||
}; | ||
``` |
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
22 changes: 0 additions & 22 deletions
22
...ment/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.save.md
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
...t/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.version.md
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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPattern](./kibana-plugin-plugins-data-public.indexpattern.md) > [version](./kibana-plugin-plugins-data-public.indexpattern.version.md) | ||
|
||
## IndexPattern.version property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
version: string | undefined; | ||
``` |
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
2 changes: 1 addition & 1 deletion
2
...lugins/data/common/index_patterns/index_patterns/__snapshots__/index_pattern.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
do you have the same problem with latest master? #76890
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.
note that this type in the current form doesn't provide a lot of value and it's better to declare it explicitly microsoft/rushstack#1958 (comment) instead of relying on an inferred type
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 changed
export const QueryStringInput = withKibana(QueryStringInputUI);
toexport const QueryStringInput = withKibana<Props>(QueryStringInputUI);
with no change in the resulting docs.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.
Right, because
withKibana
is inferring the result type withOmit
.Before:
After:
The main point that the generated document doesn't provide any useful information about the inferred interface. It's hard to say what is a type of
query
property, for example.For comparison: the output with an explicit
QueryStringInputProps
interface #77054There 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.
Oh, right right.