-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Undeprecate /_watcher endpoints #36269
Conversation
We deprecated these awhile ago in favor of /_xpack/watcher endpoints. Yet, this is no longer the direction that we want to go in, instead we want to remove the /_xpack namespace. This commit undeprecates the /_watcher endpoint.
Pinging @elastic/es-core-features |
@@ -30,12 +30,17 @@ public RestWatchServiceAction(Settings settings, RestController controller) { | |||
|
|||
// @deprecated Remove in 6.0 | |||
// NOTE: we switched from PUT in 2.x to POST in 5.x | |||
// NOTE: We added back the old URL with the new VERB (POST) since we are deprecating _xpack/* URIs in 7.0 |
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.
im not 100% sure i did this right. Should I instead put both the PUT and POST back to non deprecated? In 7, only POST /_watcher
and POST /_xpack/watcher
exist, so this is why I did not undeprecate the PUT /_watcher
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.
Yeah, that sounds good.
@jasontedor I believe I will have to also backport this to 6.5 because master will test against both 6.6.0 and 6.5.latest, right? I did not see the changes you made for disregard: looks like the build is passing w/o these, the problem was a issue w/ our build testing against every bwc build ever. |
@elasticmachine run the gradle build tests 2 |
1 similar comment
@elasticmachine run the gradle build tests 2 |
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 change looks good, I left some comments about the comments.
@@ -41,14 +41,14 @@ public RestActivateWatchAction(Settings settings, RestController controller) { | |||
final DeactivateRestHandler deactivateRestHandler = new DeactivateRestHandler(settings); | |||
|
|||
// @deprecated Remove deprecations in 6.0 |
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.
Is this comment stale?
@@ -38,14 +38,14 @@ | |||
public RestAckWatchAction(Settings settings, RestController controller) { | |||
super(settings); | |||
// @deprecated Remove deprecations in 6.0 |
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.
Is this comment stale?
@@ -34,8 +34,8 @@ | |||
public RestDeleteWatchAction(Settings settings, RestController controller) { | |||
super(settings); | |||
// @deprecated Remove deprecations in 6.0 |
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.
Is this comment stale?
@@ -57,14 +57,14 @@ public RestExecuteWatchAction(Settings settings, RestController controller) { | |||
super(settings); | |||
|
|||
// @deprecated Remove deprecations in 6.0 |
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.
Is this comment stale?
@@ -35,8 +35,8 @@ public RestGetWatchAction(Settings settings, RestController controller) { | |||
super(settings); | |||
|
|||
// @deprecated Remove deprecations in 6.0 |
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.
Is this comment stale?
@@ -41,10 +41,10 @@ public RestPutWatchAction(Settings settings, RestController controller) { | |||
super(settings); | |||
|
|||
// @deprecated Remove deprecations in 6.0 |
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.
Is this comment stale?
@@ -30,12 +30,17 @@ public RestWatchServiceAction(Settings settings, RestController controller) { | |||
|
|||
// @deprecated Remove in 6.0 | |||
// NOTE: we switched from PUT in 2.x to POST in 5.x | |||
// NOTE: We added back the old URL with the new VERB (POST) since we are deprecating _xpack/* URIs in 7.0 |
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.
Yeah, that sounds good.
@@ -30,12 +30,17 @@ public RestWatchServiceAction(Settings settings, RestController controller) { | |||
|
|||
// @deprecated Remove in 6.0 |
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.
Is this comment stale?
@@ -31,10 +31,10 @@ public RestWatcherStatsAction(Settings settings, RestController controller) { | |||
super(settings); | |||
|
|||
// @deprecated Remove deprecations in 6.0 |
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.
Is this comment stale?
* elastic/6.x: (37 commits) [HLRC] Added support for Follow Stats API (elastic#36253) Exposed engine must have all ops below gcp during rollback (elastic#36159) TEST: Always enable soft-deletes in ShardChangesTests Use delCount of SegmentInfos to calculate numDocs (elastic#36323) Add soft-deletes upgrade tests (elastic#36286) Remove LocalCheckpointTracker#resetCheckpoint (elastic#34667) Option to use endpoints starting with _security (elastic#36379) [CCR] Restructured QA modules (elastic#36404) RestClient: on retry timeout add root exception (elastic#25576) [HLRC] Add support for put privileges API (elastic#35679) HLRC: Add rollup search (elastic#36334) Explicitly recommend to forceMerge before freezing (elastic#36376) Rename internal repository actions to be internal (elastic#36377) Core: Remove parseDefaulting from DateFormatter (elastic#36386) [ML] Prevent stack overflow while copying ML jobs and datafeeds (elastic#36370) Docs: Fix Jackson reference (elastic#36366) [ILM] Fix issue where index may not yet be in 'hot' phase (elastic#35716) Undeprecate /_watcher endpoints (elastic#36269) Docs: Fix typo in bool query (elastic#36350) HLRC: Add delete template API (elastic#36320) ...
We deprecated these awhile ago in favor of /_xpack/watcher
endpoints. Yet, this is no longer the direction that we want to go in,
instead we want to remove the /_xpack namespace. This commit
undeprecates the /_watcher endpoint.