-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix insert error when insert multi times with the same spec by O…
…verrideFile api (#1314) * fix: fix insert error when insert multi times with the same spec by OverrideFile api Signed-off-by: zongz <[email protected]> * fix: fix test case Signed-off-by: zongz <[email protected]> --------- Signed-off-by: zongz <[email protected]>
- Loading branch information
Showing
8 changed files
with
149 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
schema Data: | ||
id?: int = 0 | ||
value?: str = "value" | ||
|
||
schema Config: | ||
image: str | ||
data?: Data | ||
|
||
if True: | ||
configOther = Config {image = "image/other:v1"} | ||
|
||
|
||
config = Config { | ||
image = "image/image:v1" | ||
} | ||
|
||
config : Config { | ||
image = "image/image:v3" | ||
} | ||
|
||
dict_config = { | ||
"image": "image/image:v1" | ||
"data": { | ||
"id": 1 | ||
"value": "override_value" | ||
} | ||
} | ||
envs = [ | ||
{ | ||
"name": "ENV1" | ||
"value": "value1" | ||
} | ||
{ | ||
"name": "ENV2" | ||
"value": "value2" | ||
} | ||
] | ||
|
||
isfilter = True | ||
|
||
count = 1 | ||
|
||
msg = "Hello World" | ||
|
||
delete = "Delete" | ||
|
||
dict_delete = { | ||
"image": "image/image:v1" | ||
"data": { | ||
"id": 1 | ||
"value": "override_value" | ||
} | ||
} | ||
|
||
dict_delete_whole = { | ||
"image": "image/image:v1" | ||
"data": { | ||
"id": 1 | ||
"value": "override_value" | ||
} | ||
} | ||
|
||
insert_config = {} | ||
|
||
uni_config = { | ||
labels: {key1: "value1"} | ||
} | ||
|
||
config_unification: Config { | ||
image = "image/image:v1" | ||
data = {id = 1, value = "override_value"} | ||
} | ||
|
||
config_unification_delete: Config { | ||
image = "image/image:v1" | ||
data = {id = 1, value = "override_value"} | ||
} |
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