Skip to content
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

[DOCS] Adding get snapshot API docs #59098

Merged

Conversation

lockewritesdocs
Copy link
Contributor

@lockewritesdocs lockewritesdocs commented Jul 6, 2020

@lockewritesdocs lockewritesdocs added >docs General docs changes :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v8.0.0 Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. Team:Docs Meta label for docs team v7.8.1 v7.9.0 labels Jul 6, 2020
@lockewritesdocs lockewritesdocs self-assigned this Jul 6, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (>docs)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

@lockewritesdocs
Copy link
Contributor Author

@original-brownbear, I see that multiple snapshot support is added in 8.0, so I will revise the <repository> description accordingly for 7.x and 7.8.

@original-brownbear
Copy link
Member

@original-brownbear, I see that multiple snapshot support is added in 8.0, so I will revise the description accordingly for 7.x and 7.8.

Correct thanks.

BTW, seems there's some doc tests issue here can you take a look?

Copy link
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from some issues with the response format, this look good overall.

I'd consider adding documentation for the response parameters as those are
the main point of a get API. I left some links and suggestions on fixing the CI tests.
The other feedback consist of nits you can take/ignore as you see fit.

@@ -76,6 +83,78 @@ If `true`, returns all available information about a snapshot. Defaults to `true
+
If `false`, omits additional information about the snapshot, such as version information, start and end times, and the number of snapshotted shards.

[role="child-attributes"]
Copy link
Contributor Author

@lockewritesdocs lockewritesdocs Jul 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@original-brownbear, can you please review the response body parameters that I added in lines 87-157?

@jrodewig jrodewig dismissed their stale review July 7, 2020 23:18

Stale review

Copy link
Member

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One point, on the response statuses

Co-authored-by: James Rodewig <[email protected]>
Copy link
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for iterating on this.

@lockewritesdocs lockewritesdocs merged commit b2beb9c into elastic:master Jul 8, 2020
@lockewritesdocs lockewritesdocs deleted the docs__get-snapshot-api-docs branch July 8, 2020 15:28
lockewritesdocs pushed a commit to lockewritesdocs/elasticsearch that referenced this pull request Jul 8, 2020
* Adding page for get snapshot API.

* Adding values for state and cleaning up some other formatting.

* Adding missing forward slash to GET request.

* Updating values for start_time and end_time in TESTRESPONSE.

* Swap "return" for "retrieve"

* Swap "return" for "retrieve" 2

* Change .snapshot to .response

* Adding response parameters and incorporating edits from review.

* Update response example to include repository info

* Change dash to underscore

* Add data type for snapshot in response

* Incorporating review comments and adding missing response definitions.

* Minor rewording in description.
@lockewritesdocs lockewritesdocs restored the docs__get-snapshot-api-docs branch July 8, 2020 16:37
@lockewritesdocs lockewritesdocs deleted the docs__get-snapshot-api-docs branch July 8, 2020 20:14
lockewritesdocs pushed a commit that referenced this pull request Jul 8, 2020
* [DOCS] Adding get snapshot API docs (#59098)

* Adding page for get snapshot API.

* Adding values for state and cleaning up some other formatting.

* Adding missing forward slash to GET request.

* Updating values for start_time and end_time in TESTRESPONSE.

* Swap "return" for "retrieve"

* Swap "return" for "retrieve" 2

* Change .snapshot to .response

* Adding response parameters and incorporating edits from review.

* Update response example to include repository info

* Change dash to underscore

* Add data type for snapshot in response

* Incorporating review comments and adding missing response definitions.

* Minor rewording in description.

* Removing multi-snapshot support for 7.x.

* Changing end_time value from build error.

* Removing .response from snippet testing.
lockewritesdocs pushed a commit to lockewritesdocs/elasticsearch that referenced this pull request Jul 8, 2020
* [DOCS] Adding get snapshot API docs (elastic#59098)

* Adding page for get snapshot API.

* Adding values for state and cleaning up some other formatting.

* Adding missing forward slash to GET request.

* Updating values for start_time and end_time in TESTRESPONSE.

* Swap "return" for "retrieve"

* Swap "return" for "retrieve" 2

* Change .snapshot to .response

* Adding response parameters and incorporating edits from review.

* Update response example to include repository info

* Change dash to underscore

* Add data type for snapshot in response

* Incorporating review comments and adding missing response definitions.

* Minor rewording in description.

* Removing multi-snapshot support for 7.x.

* Changing end_time value from build error.

* Removing .response from snippet testing.
lockewritesdocs pushed a commit that referenced this pull request Jul 8, 2020
* [7.x] [DOCS] Adding get snapshot api docs (#59238)

* [DOCS] Adding get snapshot API docs (#59098)

* Adding page for get snapshot API.

* Adding values for state and cleaning up some other formatting.

* Adding missing forward slash to GET request.

* Updating values for start_time and end_time in TESTRESPONSE.

* Swap "return" for "retrieve"

* Swap "return" for "retrieve" 2

* Change .snapshot to .response

* Adding response parameters and incorporating edits from review.

* Update response example to include repository info

* Change dash to underscore

* Add data type for snapshot in response

* Incorporating review comments and adding missing response definitions.

* Minor rewording in description.

* Removing multi-snapshot support for 7.x.

* Changing end_time value from build error.

* Removing .response from snippet testing.

* Removing data streams for 7.8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >docs General docs changes Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. Team:Docs Meta label for docs team v7.8.1 v7.9.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants