-
Notifications
You must be signed in to change notification settings - Fork 46
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
Added PIT actions #155
Added PIT actions #155
Conversation
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.
@nhtruong this looks good to me. Will you raise a new PR to update the docs?
@harshavamsi Imma raise a PR to bump the version before release. |
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.
What about open_point_int_time
? Is it still supported?
I think it would be good to add the new API usage to the user guide, I understand the user guide might become increasingly large but maybe we can take those examples and add them to the docs website too? |
opensearch-api/lib/opensearch/api/actions/cat/all_pit_segments.rb
Outdated
Show resolved
Hide resolved
Removed Legacy X-Pack Point-In-Time API Signed-off-by: Theo Truong <[email protected]>
@dblock @harshavamsi @VachaShah Would you mind taking another look? All concerns have already been addressed |
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.
LGTM, minor nits.
@@ -24,7 +26,8 @@ Import the client: | |||
`require 'opensearch'` | |||
|
|||
## Sample code | |||
|
|||
<a name="basic-usage" /></a> |
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.
GitHub markdown automatically creates #basic-usage
.
index = :movies | ||
client.indices.create(index: 'movies') | ||
|
||
# CREATE 3 PITS |
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.
DON'T SHOUT :)
def all_pit_segments(arguments = {}) | ||
arguments = arguments.clone | ||
headers = arguments.delete(:headers) || {} | ||
|
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.
Double space, ... we should really add rubocop.
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 miss Rubocop. Will incorporate along with generated Ruby Client.
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.
let(:expected_args) do | ||
[ | ||
'POST', | ||
'movies,books/_search/point_in_time', |
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.
wait, this seems wrong! does it support multiple indexes like this?
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.
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.
Fancy!
Description
Added PIT Actions
Issues Resolved
closes #136
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.