Skip to content

Commit 7b2c396

Browse files
author
Hendrik Muhs
authored
[Transform] reenable bwc (#53329)
re-enable BWC and finish backport of #53324
1 parent d2740c2 commit 7b2c396

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ task verifyVersions {
220220
* after the backport of the backcompat code is complete.
221221
*/
222222

223-
boolean bwc_tests_enabled = false
224-
final String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/pull/53324" /* place a PR link here when committing bwc changes */
223+
boolean bwc_tests_enabled = true
224+
final String bwc_tests_disabled_issue = "" /* place a PR link here when committing bwc changes */
225225
if (bwc_tests_enabled == false) {
226226
if (bwc_tests_disabled_issue.isEmpty()) {
227227
throw new GradleException("bwc_tests_disabled_issue must be set when bwc_tests_enabled == false")

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/transform/transforms/pivot/SingleGroupSource.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public SingleGroupSource(final String field, final ScriptConfig scriptConfig) {
8080

8181
public SingleGroupSource(StreamInput in) throws IOException {
8282
field = in.readOptionalString();
83-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) { // change to 7.7.0
83+
if (in.getVersion().onOrAfter(Version.V_7_7_0)) {
8484
scriptConfig = in.readOptionalWriteable(ScriptConfig::new);
8585
} else {
8686
scriptConfig = null;
@@ -107,7 +107,7 @@ protected void innerXContent(XContentBuilder builder, Params params) throws IOEx
107107
@Override
108108
public void writeTo(StreamOutput out) throws IOException {
109109
out.writeOptionalString(field);
110-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
110+
if (out.getVersion().onOrAfter(Version.V_7_7_0)) {
111111
out.writeOptionalWriteable(scriptConfig);
112112
}
113113
}

0 commit comments

Comments
 (0)