-
Notifications
You must be signed in to change notification settings - Fork 25.3k
[REST Compatible API] Typed endpoints for Index and Get APIs #69131
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
Merged
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
e13468b
refactor
jakelandis 0fbd2f9
Merge branch 'master' into refactor_inject_headers
elasticmachine 3cb7200
start of support for allowed_warnings
jakelandis 526cdd3
start of injectWarning
jakelandis 19141dd
start remove warning
jakelandis bc7b2aa
review changes
jakelandis a6c2433
Merge branch 'refactor_inject_headers' into warnings_transform
jakelandis 4cea425
clean up match tests
jakelandis 757200e
more refactoring and tests passing
jakelandis 2178081
Merge remote-tracking branch 'upstream/master' into warnings_transform
jakelandis 4b0629e
more refactor of tests
jakelandis 3884c3d
add missing file
jakelandis 106f226
spotless
jakelandis 511a3db
Merge branch 'another_refactor' into warnings_transform
jakelandis d9ba6c0
checkstyle
jakelandis b47d98b
Merge branch 'another_refactor' into warnings_transform
jakelandis 857b2c6
review changes
jakelandis 775565e
Merge branch 'another_refactor' into warnings_transform
jakelandis 98ee1f7
more tests
jakelandis cdd8ad5
finish up testing
jakelandis cd2d042
Merge remote-tracking branch 'upstream/master' into warnings_transform
jakelandis b51b72f
spotless
jakelandis 230d0ae
Merge remote-tracking branch 'upstream/master' into warnings_transform
jakelandis 5de4a30
fix merge
jakelandis b60bf0c
add @Internal for gradle tracked objects that look like getters
jakelandis 7390a91
index and get and testing
pgomulka c83fdc1
import
pgomulka ec3cd22
move blacklist
pgomulka 90ab29a
Merge remote-tracking branch 'upstream/master' into compat/index_get
pgomulka 67c499a
Merge remote-tracking branch 'upstream/master' into compat/index_get
pgomulka 448f793
Merge branch 'warnings_transform' of git://github.com/jakelandis/elas…
pgomulka a5024f5
Merge branch 'jakelandis-warnings_transform' into compat/index_get
pgomulka b99c751
testing not working
pgomulka bb5db62
Merge remote-tracking branch 'upstream/master' into compat/index_get
pgomulka 002ad68
unmute all
pgomulka 0c61f18
unit tests
pgomulka d6d729c
cleanup
pgomulka f0c48ac
Merge branch 'master' into compat/index_get
pgomulka 0155e2f
cleanup tests
pgomulka 8566123
remove assertion skip
pgomulka 80dd793
skip section
pgomulka af12ce3
surgical appproach
pgomulka 595f59c
Merge remote-tracking branch 'upstream/master' into compat/index_get
pgomulka a699329
remove empty space
pgomulka e0ba336
Merge remote-tracking branch 'upstream/master' into compat/index_get
pgomulka 8dcea4c
enable get tests and use allowed warnings
pgomulka ee88fab
make classes final and remove empty line
pgomulka 2cb33c2
Merge branch 'master' into compat/index_get
elasticmachine 5899451
use Mapping service type fields
pgomulka 3680b39
Merge branch 'compat/index_get' of github.com:pgomulka/elasticsearch …
pgomulka 7993dd1
empty line
pgomulka 8e1aaf9
Merge branch 'master' into compat/index_get
elasticmachine 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
I'm a bit uneasy that we can just change the compatible version on the XContentBuilder at any time, as that means that a consumer could change it accidentally; I think I'd prefer that it's a parameter passed to
contentBuilder()
. But that's not really part of this issue, so we can look at it separately.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 agree, these should be fixed, but also feel that this should be in a separate PR. The change might require touching many files and would be unrelated to the index/get api.
I will follow up in a separate PR
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.
also take a look at https://github.com/elastic/elasticsearch/pull/64423/files#r518884033
we try to prevent accidental change of the version with the
assert
insidewithCompatibleVersion
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.
+1 to making it immutable or explicitly 'set once', that would clearly indicate the intent that it should never be updated.
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 refactored the XContentBuilder to have this field final and set in a constructor #70878