Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced VersionType.FORCE & VersionType.EXTERNAL_GTE
Also added "external_gt" as an alias name for VersionType.EXTERNAL , accessible for the rest layer. Closes #4213 , Closes #2946
- Loading branch information
Showing
31 changed files
with
722 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
"External version": | ||
|
||
- do: | ||
create: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: external_gte | ||
version: 5 | ||
|
||
- match: { _version: 5} | ||
|
||
- do: | ||
catch: conflict | ||
create: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: external_gte | ||
version: 5 | ||
|
||
- do: | ||
catch: conflict | ||
create: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: external_gte | ||
version: 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
"External version": | ||
|
||
- do: | ||
create: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: force | ||
version: 5 | ||
|
||
- match: { _version: 5} | ||
|
||
- do: | ||
catch: conflict | ||
create: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: force | ||
version: 5 | ||
|
||
- do: | ||
catch: conflict | ||
create: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: force | ||
version: 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
"External GTE version": | ||
|
||
- do: | ||
index: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: external_gte | ||
version: 5 | ||
|
||
- match: { _version: 5} | ||
|
||
- do: | ||
catch: conflict | ||
delete: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
version_type: external_gte | ||
version: 4 | ||
|
||
- do: | ||
delete: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
version_type: external_gte | ||
version: 6 | ||
|
||
- match: { _version: 6} | ||
|
||
- do: | ||
index: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: external_gte | ||
version: 6 | ||
|
||
- match: { _version: 6} | ||
|
||
- do: | ||
delete: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
version_type: external_gte | ||
version: 6 | ||
|
||
- match: { _version: 6} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
"Force version": | ||
|
||
- do: | ||
index: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: force | ||
version: 5 | ||
|
||
- match: { _version: 5} | ||
|
||
- do: | ||
delete: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
version_type: force | ||
version: 4 | ||
|
||
- match: { _version: 4} | ||
|
||
- do: | ||
index: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: force | ||
version: 6 | ||
|
||
- match: { _version: 6} | ||
|
||
- do: | ||
delete: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
version_type: force | ||
version: 6 | ||
|
||
- match: { _version: 6} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
"External GTE version": | ||
|
||
- do: | ||
index: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: external_gte | ||
version: 5 | ||
|
||
- match: { _version: 5} | ||
|
||
- do: | ||
catch: conflict | ||
index: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: external_gte | ||
version: 4 | ||
|
||
- do: | ||
index: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar2 } | ||
version_type: external_gte | ||
version: 5 | ||
|
||
- match: { _version: 5} | ||
|
||
- do: | ||
index: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar2 } | ||
version_type: external_gte | ||
version: 6 | ||
|
||
- match: { _version: 6} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
"Force version": | ||
|
||
- do: | ||
index: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: force | ||
version: 5 | ||
|
||
- match: { _version: 5} | ||
|
||
- do: | ||
index: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar } | ||
version_type: force | ||
version: 4 | ||
|
||
- match: { _version: 4} | ||
|
||
- do: | ||
index: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar2 } | ||
version_type: force | ||
version: 5 | ||
|
||
- match: { _version: 5} | ||
|
||
- do: | ||
index: | ||
index: test_1 | ||
type: test | ||
id: 1 | ||
body: { foo: bar3 } | ||
version_type: force | ||
version: 5 | ||
|
||
- match: { _version: 5} |
Oops, something went wrong.