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
HLRC XPack Protocol clean up: Migration; Graph; Watcher #34639
HLRC XPack Protocol clean up: Migration; Graph; Watcher #34639
Conversation
Drop protocol module Relates elastic#34451
Pinging @elastic/es-core-infra |
|
||
public class IndexUpgradeInfoResponseTests extends AbstractStreamableXContentTestCase<IndexUpgradeInfoResponse> { | ||
@Override | ||
protected IndexUpgradeInfoResponse doParseInstance(XContentParser parser) { |
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.
Can we keep these tests somehow so we're fairly confident of the parsing? Not, like, the tests how they look now, but some kind of parsing tests? Like we've done for the rollup response stuff?
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.
👍
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 combination with the other in flight PRs around testing, this looks good to me.
import org.elasticsearch.test.ESTestCase; | ||
|
||
public class IndexUpgradeInfoResponseTests extends ESTestCase { | ||
// TODO: add to cross XPack-HLRC serialization test |
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 see you already have that in flight in another PR so this is fine by me!
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.
Great work. @rjernst will be jealous that you got to remove so much code instead of him ;) One small nit on 2 watcher classes but i dont need to see this again.
@@ -51,7 +51,6 @@ dependencies { | |||
compile "org.elasticsearch.plugin:aggs-matrix-stats-client:${version}" | |||
compile "org.elasticsearch.plugin:rank-eval-client:${version}" | |||
compile "org.elasticsearch.plugin:lang-mustache-client:${version}" | |||
bundle project(':x-pack:protocol') |
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.
🎉
ActionRequestValidationException validationException = null; | ||
if (id == null){ | ||
validationException = ValidateActions.addValidationError("watch id is missing", validationException); | ||
public Optional<ValidationException> validate() { |
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.
lets put this in the constructor instead if possible.
@@ -136,20 +109,20 @@ public void setVersion(long version) { | |||
} | |||
|
|||
@Override | |||
public ActionRequestValidationException validate() { | |||
ActionRequestValidationException validationException = null; | |||
public Optional<ValidationException> validate() { |
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.
can we move this to the constructor a-la https://github.com/elastic/elasticsearch/blob/master/client/rest-high-level/src/main/java/org/elasticsearch/client/watcher/DeactivateWatchRequest.java#L29-L37
❤️ |
Move parts related to XPack for packages Migration; Graph; Watcher from protocol to client Drop protocol module Relates elastic#34451, backport of elastic#34639 (cherry picked from commit 69fe9a1)
Move parts related to XPack for packages Migration; Graph; Watcher from protocol to client Drop protocol module Relates #34451
Move parts related to XPack for packages Migration; Graph; Watcher from protocol to client
Drop protocol module
Relates #34451