Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ module.controller('SenseController', function SenseController(Private, $scope, $
if (endpoint
&& endpoint.documentation
&& endpoint.documentation.indexOf('http') !== -1) {
$scope.documentation = endpoint.documentation.replace('master', DOC_LINK_VERSION);
$scope.documentation = $scope.documentation.replace('/master/', `/${DOC_LINK_VERSION}/`);
$scope.documentation = endpoint.documentation.replace('/current/', `/${DOC_LINK_VERSION}/`);
$scope.$apply();
} else {
$scope.documentation = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ccr.delete_auto_follow_pattern": {
"methods": [
"DELETE"
],
"patterns": [
"_ccr/auto_follow/{name}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html"
}
}
11 changes: 11 additions & 0 deletions x-pack/plugins/console_extensions/spec/generated/ccr.follow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ccr.follow": {
"methods": [
"PUT"
],
"patterns": [
"{indices}/_ccr/follow"
Copy link
Member

Choose a reason for hiding this comment

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

Drive-by comment, we only handle a single index here. Not sure if indices is an indication we handle multiple, so want to clarify in case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was generated from REST specs, but console treats {indices} the same as {index} and does not have true support for multiple index name completion.

Copy link
Member

Choose a reason for hiding this comment

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

Great. Thanks for clarifying.

],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ccr.follow_stats": {
"methods": [
"GET"
],
"patterns": [
"{indices}/_ccr/stats"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"ccr.get_auto_follow_pattern": {
"methods": [
"GET"
],
"patterns": [
"_ccr/auto_follow",
"_ccr/auto_follow/{name}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ccr.pause_follow": {
"methods": [
"POST"
],
"patterns": [
"{indices}/_ccr/pause_follow"
Copy link
Member

Choose a reason for hiding this comment

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

Same comment here about multiple.

],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ccr.put_auto_follow_pattern": {
"methods": [
"PUT"
],
"patterns": [
"_ccr/auto_follow/{name}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ccr.resume_follow": {
"methods": [
"POST"
],
"patterns": [
"{indices}/_ccr/resume_follow"
Copy link
Member

Choose a reason for hiding this comment

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

Same comment about multiple.

],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html"
}
}
11 changes: 11 additions & 0 deletions x-pack/plugins/console_extensions/spec/generated/ccr.stats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ccr.stats": {
"methods": [
"GET"
],
"patterns": [
"_ccr/stats"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html"
}
}
11 changes: 11 additions & 0 deletions x-pack/plugins/console_extensions/spec/generated/ccr.unfollow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ccr.unfollow": {
"methods": [
"POST"
],
"patterns": [
"{indices}/_ccr/unfollow"
Copy link
Member

Choose a reason for hiding this comment

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

Single index here too.

],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html"
}
}
18 changes: 18 additions & 0 deletions x-pack/plugins/console_extensions/spec/overrides/ccr.follow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"ccr.follow": {
"data_autocomplete_rules": {
"remote_cluster" : "",
"leader_index" : "",
"max_read_request_operation_count": "",
"max_outstanding_read_requests": "",
"max_read_request_size": "",
"max_write_request_operation_count": "",
"max_write_request_size": "",
"max_outstanding_write_requests": "",
"max_write_buffer_count": "",
"max_write_buffer_size": "",
"max_retry_delay": "",
"read_poll_timeout": ""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"ccr.put_auto_follow_pattern": {
"data_autocomplete_rules": {
"remote_cluster" : "",
"leader_index_patterns" : "",
"follow_index_pattern" : "",
"max_read_request_operation_count": "",
"max_outstanding_read_requests": "",
"max_read_request_size": "",
"max_write_request_operation_count": "",
"max_write_request_size": "",
"max_outstanding_write_requests": "",
"max_write_buffer_count": "",
"max_write_buffer_size": "",
"max_retry_delay": "",
"read_poll_timeout": ""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"ccr.resume_follow": {
"data_autocomplete_rules": {
"max_read_request_operation_count": "",
"max_outstanding_read_requests": "",
"max_read_request_size": "",
"max_write_request_operation_count": "",
"max_write_request_size": "",
"max_outstanding_write_requests": "",
"max_write_buffer_count": "",
"max_write_buffer_size": "",
"max_retry_delay": "",
"read_poll_timeout": ""
}
}
}