Skip to content

Commit

Permalink
Adjust BWC versions after backport of elastic#69756
Browse files Browse the repository at this point in the history
  • Loading branch information
danhermann committed Mar 8, 2021
1 parent 5697643 commit 56650d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@
---
"Test Get Summarized Pipelines":
- skip:
version: " - 7.99.99"
reason: "change to appropriate 7.x release after backport"
version: " - 7.12.99"
reason: "summary option added in 7.13"

- do:
ingest.put_pipeline:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ public GetPipelineRequest(String... ids) {
public GetPipelineRequest(StreamInput in) throws IOException {
super(in);
ids = in.readStringArray();
summary = in.getVersion().onOrAfter(Version.V_8_0_0) ? in.readBoolean() : false;
summary = in.getVersion().onOrAfter(Version.V_7_13_0) ? in.readBoolean() : false;
}

@Override
public void writeTo(StreamOutput out) throws IOException {
super.writeTo(out);
out.writeStringArray(ids);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_13_0)) {
out.writeBoolean(summary);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public GetPipelineResponse(StreamInput in) throws IOException {
for (int i = 0; i < size; i++) {
pipelines.add(PipelineConfiguration.readFrom(in));
}
summary = in.getVersion().onOrAfter(Version.V_8_0_0) ? in.readBoolean() : false;
summary = in.getVersion().onOrAfter(Version.V_7_13_0) ? in.readBoolean() : false;
}

public GetPipelineResponse(List<PipelineConfiguration> pipelines, boolean summary) {
Expand All @@ -69,7 +69,7 @@ public void writeTo(StreamOutput out) throws IOException {
for (PipelineConfiguration pipeline : pipelines) {
pipeline.writeTo(out);
}
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_13_0)) {
out.writeBoolean(summary);
}
}
Expand Down

0 comments on commit 56650d7

Please sign in to comment.