-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add documentation for Pause/Resume Auto-Follower APIs #47985
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
Conversation
Pinging @elastic/es-docs (>docs) |
Pinging @elastic/es-distributed (:Distributed/CCR) |
docs/reference/ccr/apis/auto-follow/pause-auto-follow-pattern.asciidoc
Outdated
Show resolved
Hide resolved
docs/reference/ccr/apis/auto-follow/pause-auto-follow-pattern.asciidoc
Outdated
Show resolved
Hide resolved
|
||
////////////////////////// | ||
|
||
[source,console] |
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.
In this section, we typically use literals instead of an actual snippet:
POST /_ccr/auto_follow/<auto_follow_pattern_name>/pause
You may want to move the preceding test setup lower but no big deal.
docs/reference/ccr/apis/auto-follow/pause-auto-follow-pattern.asciidoc
Outdated
Show resolved
Hide resolved
-------------------------------------------------- | ||
POST /_ccr/auto_follow/<auto_follow_pattern_name>/resume | ||
-------------------------------------------------- | ||
// TEST[s/<auto_follow_pattern_name>/my_auto_follow_pattern/] |
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.
We typically use literals here:
POST /_ccr/auto_follow/<auto_follow_pattern_name>/resume
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 made it like this to mirror what is done in docs/reference/ccr/apis/follow/post-pause-follow.asciidoc but maybe it's wrong there too?
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.
The format here is based on the API reference template:
https://github.com/elastic/docs/blame/master/shared/api-ref-ex.asciidoc#L39
It's likely that docs/reference/ccr/apis/follow/post-pause-follow.asciidoc
followed a previous iteration of that template.
If you'd like to leave this as-is for consistency, I think that's okay. I don't feel strongly about it.
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.
Thanks, I forgot about this template. I adapted the doc to follow the template and not add more debt.
docs/reference/ccr/apis/auto-follow/pause-auto-follow-pattern.asciidoc
Outdated
Show resolved
Hide resolved
docs/reference/ccr/apis/auto-follow/resume-auto-follow-pattern.asciidoc
Outdated
Show resolved
Hide resolved
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 good overall.
I left a recommended needed changes in these comments:
https://github.com/elastic/elasticsearch/pull/47985/files#r334560561
https://github.com/elastic/elasticsearch/pull/47985/files#r334558730
I also left a few other non-blocking suggestions.
….asciidoc Co-Authored-By: James Rodewig <[email protected]>
…asciidoc Co-Authored-By: James Rodewig <[email protected]>
…asciidoc Co-Authored-By: James Rodewig <[email protected]>
…asciidoc Co-Authored-By: James Rodewig <[email protected]>
…asciidoc Co-Authored-By: James Rodewig <[email protected]>
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. Thanks Tanguy.
Relates #47510 Co-Authored-By: James Rodewig <[email protected]>
Relates #47510