-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[data views] data_views REST API #112916
Merged
Merged
[data views] data_views REST API #112916
Changes from 22 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
6e2a575
initial stab at changing endpoints to data_view while keeping existin…
mattkime b42ff5a
partial progress
mattkime b0c0d7d
partial progress
mattkime 22485c3
Merge branch 'master' into data_views_api
mattkime 4a4338e
partial progress on multiple fields returned
mattkime a114342
partial progress on multiple fields returned
mattkime e7df4ac
partial progress on multiple fields returned
mattkime 27416f5
Merge branch 'master' into data_views_api
mattkime 09182f7
Merge branch 'master' into data_views_api
mattkime 50db8fb
Merge branch 'main' into data_views_api
mattkime eb49058
Merge branch 'main' into data_views_api
kibanamachine 999c623
Merge branch 'data_views_api' of github.com:mattkime/kibana into data…
mattkime 6933d46
Merge branch 'main' into data_views_api
mattkime e75718c
correct response - index_pattern => data_view
mattkime 98332f6
fix legacy key
mattkime e0a5ac7
Merge branch 'main' into data_views_api
mattkime ef52e1d
update runtime field responses to return array of fields instead of s…
mattkime 7f17b21
Merge branch 'main' into data_views_api
mattkime beb9add
complete tests for data views api
mattkime dc8154c
Merge branch 'main' into data_views_api
mattkime 84caf52
fix export
mattkime 19260da
more tests
mattkime 13e355d
Merge branch 'main' into data_views_api
mattkime 8a9d5a2
Merge branch 'main' into data_views_api
mattkime aed8175
Merge branch 'main' into data_views_api
mattkime bb0353e
fix types for data view create
mattkime 4b9110f
Merge branch 'main' into data_views_api
mattkime c3133c2
Merge branch 'main' into data_views_api
kibanamachine fab6638
Merge branch 'main' into data_views_api
kibanamachine ad69069
Merge branch 'main' into data_views_api
kibanamachine 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export const SERVICE_PATH = '/api/data_views'; | ||
export const SERVICE_PATH_LEGACY = '/api/index_patterns'; | ||
export const DATA_VIEW_PATH = `${SERVICE_PATH}/data_view`; | ||
export const DATA_VIEW_PATH_LEGACY = `${SERVICE_PATH_LEGACY}/index_pattern`; | ||
export const SPECIFIC_DATA_VIEW_PATH = `${DATA_VIEW_PATH}/{id}`; | ||
export const SPECIFIC_DATA_VIEW_PATH_LEGACY = `${DATA_VIEW_PATH_LEGACY}/{id}`; | ||
export const RUNTIME_FIELD_PATH = `${SPECIFIC_DATA_VIEW_PATH}/runtime_field`; | ||
export const RUNTIME_FIELD_PATH_LEGACY = `${SPECIFIC_DATA_VIEW_PATH_LEGACY}/runtime_field`; | ||
export const SPECIFIC_RUNTIME_FIELD_PATH = `${RUNTIME_FIELD_PATH}/{name}`; | ||
export const SPECIFIC_RUNTIME_FIELD_PATH_LEGACY = `${RUNTIME_FIELD_PATH_LEGACY}/{name}`; | ||
|
||
export const SCRIPTED_FIELD_PATH = `${SPECIFIC_DATA_VIEW_PATH}/scripted_field`; | ||
export const SCRIPTED_FIELD_PATH_LEGACY = `${SPECIFIC_DATA_VIEW_PATH_LEGACY}/scripted_field`; | ||
export const SPECIFIC_SCRIPTED_FIELD_PATH = `${SCRIPTED_FIELD_PATH}/{name}`; | ||
export const SPECIFIC_SCRIPTED_FIELD_PATH_LEGACY = `${SCRIPTED_FIELD_PATH_LEGACY}/{name}`; | ||
|
||
export const SERVICE_KEY = 'data_view'; | ||
export const SERVICE_KEY_LEGACY = 'index_pattern'; | ||
export type SERVICE_KEY_TYPE = typeof SERVICE_KEY | typeof SERVICE_KEY_LEGACY; |
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
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.
Looks like type inference from schema got broken because of the dynamic schema approach we took here? :(