-
Notifications
You must be signed in to change notification settings - Fork 109
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
Add operations with data streams #257
Conversation
Signed-off-by: Rakhat Zhuman <zhumanrakhat01@gmail.com>
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.
Good stuff. Needs tests, CHANGELOG, USER_GUIDE.
// Modifications Copyright OpenSearch Contributors. See | ||
// GitHub history for details. | ||
|
||
// Licensed to Elasticsearch B.V. under one or more contributor |
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.
You don't need an ES license grant for new code, remove.
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.
removed
// ----- API Definition ------------------------------------------------------- | ||
|
||
// IndicesCreateDataStream creates a data stream. | ||
// |
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.
Remove these many empty commented lines?
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.
removed
path.WriteString("/") | ||
path.WriteString("_data_stream") | ||
path.WriteString("/") | ||
path.WriteString(r.Name) |
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 path is hard-coded except for r.Name
, can we collapse into 2 WriteString
?
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.
fixed
Signed-off-by: Rakhat Zhuman <zhumanrakhat01@gmail.com>
Looks like some failures in tests, but otherwise looks good! |
@dblock yes, my bad, did not look at the instructions on the Makefile. It seems that I wrote not unit tests, so thinking about adding integration tags, since I need an opensearch instance for the test. What do you think? |
Signed-off-by: Rakhat Zhuman <zhumanrakhat01@gmail.com>
Description
Implemented Data Stream API:
Planned to add:
Issues Resolved
Closes [#152]
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.