Commit f780d794 authored by Samuel GAIST's avatar Samuel GAIST

[widgets][algorithmeditor] Make migrated algorithm sequential rather than legacy

Legacy is used as a temporary state to people can
execute their algorithms using the V2 backend.

The editor does not allow to create legacy algorithm, therefore
this will trigger an update of the code directly to become what
is closer to v1 which is sequential.
parent 6898645a
......@@ -105,7 +105,7 @@ class TestHelperMethods:
assert v1_declaration != v2_declaration
assert v2_declaration["schema_version"] == 2
assert v2_declaration["api_version"] == 2
assert v2_declaration["type"] == "legacy"
assert v2_declaration["type"] == "sequential"
@pytest.mark.parametrize(
["algorithm_name", "new_type", "field_to_add"],
......
......@@ -96,7 +96,7 @@ def migrate_to_api_v2(asset):
declaration = new_asset.declaration
declaration["api_version"] = 2
declaration["schema_version"] = 2
declaration["type"] = "legacy"
declaration["type"] = "sequential"
new_asset.declaration = declaration
return status, new_asset
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment