Skip to content

Commit

Permalink
Remove unwanted unreleased versions (opensearch-project#1877)
Browse files Browse the repository at this point in the history
Only last major (2.0.0), last minor(1.3.0) and (1.2.4) can be unreleased

Signed-off-by: Rabi Panda <adnapibar@gmail.com>
  • Loading branch information
adnapibar authored Jan 11, 2022
1 parent 412bf82 commit 40442aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions server/src/main/java/org/opensearch/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ public class Version implements Comparable<Version>, ToXContentFragment {
public static final Version V_EMPTY = new Version(V_EMPTY_ID, org.apache.lucene.util.Version.LATEST);

public static final Version V_1_0_0 = new Version(1000099, org.apache.lucene.util.Version.LUCENE_8_8_2);
public static final Version V_1_0_1 = new Version(1000199, org.apache.lucene.util.Version.LUCENE_8_8_2);
public static final Version V_1_1_0 = new Version(1010099, org.apache.lucene.util.Version.LUCENE_8_9_0);
public static final Version V_1_1_1 = new Version(1010199, org.apache.lucene.util.Version.LUCENE_8_9_0);
public static final Version V_1_2_0 = new Version(1020099, org.apache.lucene.util.Version.LUCENE_8_10_1);
public static final Version V_1_2_1 = new Version(1020199, org.apache.lucene.util.Version.LUCENE_8_10_1);
public static final Version V_1_2_2 = new Version(1020299, org.apache.lucene.util.Version.LUCENE_8_10_1);
Expand Down
2 changes: 1 addition & 1 deletion server/src/test/java/org/opensearch/VersionTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
import java.util.Map;
import java.util.Set;

import static org.opensearch.Version.V_1_1_1;
import static org.opensearch.Version.V_1_3_0;
import static org.opensearch.Version.MASK;
import static org.opensearch.test.VersionUtils.allVersions;
Expand All @@ -68,6 +67,7 @@
public class VersionTests extends OpenSearchTestCase {

public void testVersionComparison() {
Version V_1_1_1 = Version.fromString("1.1.1");
assertThat(V_1_1_1.before(V_1_3_0), is(true));
assertThat(V_1_1_1.before(V_1_1_1), is(false));
assertThat(V_1_3_0.before(V_1_1_1), is(false));
Expand Down

0 comments on commit 40442aa

Please sign in to comment.