From 3f34f83a91d6a31e3158d9ca7cc255e54a521e17 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Thu, 20 Jun 2024 17:55:17 +0300 Subject: [PATCH] Version bump to 1.16.0 API version bump to 2.30 Add missing endpoints to schema --- apiserver/documentation/api_versions.md | 3 ++ apiserver/schema/services/events.conf | 4 +- apiserver/schema/services/tasks.conf | 49 +++++++++++++++++++++++++ apiserver/service_repo/service_repo.py | 2 +- apiserver/version.py | 2 +- 5 files changed, 56 insertions(+), 4 deletions(-) diff --git a/apiserver/documentation/api_versions.md b/apiserver/documentation/api_versions.md index c0e0f6e..2f900ba 100644 --- a/apiserver/documentation/api_versions.md +++ b/apiserver/documentation/api_versions.md @@ -2,6 +2,9 @@ | Release | ApiVersion | |---------|------------| +| v1.16 | 2.30 | +| v1.15 | 2.29 | +| v1.14 | 2.28 | | v1.13 | 2.27 | | v1.12 | 2.26 | | v1.11 | 2.25 | diff --git a/apiserver/schema/services/events.conf b/apiserver/schema/services/events.conf index d660d92..d885673 100644 --- a/apiserver/schema/services/events.conf +++ b/apiserver/schema/services/events.conf @@ -947,7 +947,7 @@ get_task_log { } } } - "999.0": ${get_task_log."2.9"} { + "2.30": ${get_task_log."2.9"} { request.metrics { type: array description: List of metrics and variants @@ -1712,7 +1712,7 @@ clear_task_log { } } } - "999.0": ${clear_task_log."2.19"} { + "2.30": ${clear_task_log."2.19"} { request.properties { include_metrics { type: array diff --git a/apiserver/schema/services/tasks.conf b/apiserver/schema/services/tasks.conf index 9bff7b5..4d54f66 100644 --- a/apiserver/schema/services/tasks.conf +++ b/apiserver/schema/services/tasks.conf @@ -1107,6 +1107,13 @@ delete_many { default: true } } + "2.30": ${delete_many."2.21"} { + request.properties.include_pipeline_steps { + description: If set then for the passed pipeline controller tasks the pipeline steps will be also deleted + type: boolean + default: false + } + } } delete { "2.1" { @@ -1182,6 +1189,13 @@ delete { default: true } } + "2.30": ${delete."2.21"} { + request.properties.include_pipeline_steps { + description: If set then and the passed task is a pipeline controller then delete the pipeline tasks too + type: boolean + default: false + } + } } archive { "2.12" { @@ -1219,6 +1233,13 @@ archive { } } } + "2.30": ${archive."2.12"} { + request.properties.include_pipeline_steps { + description: If set then for the passed pipeline controller tasks also archive the pipeline steps + type: boolean + default: false + } + } } archive_many { "2.13": ${_definitions.batch_operation} { @@ -1245,6 +1266,13 @@ archive_many { } } } + "2.30": ${archive_many."2.13"} { + request.properties.include_pipeline_steps { + description: If set then for the passed pipeline controller tasks also archive the pipeline steps + type: boolean + default: false + } + } } unarchive_many { "2.13": ${_definitions.batch_operation} { @@ -1271,6 +1299,13 @@ unarchive_many { } } } + "2.30": ${unarchive_many."2.13"} { + request.properties.include_pipeline_steps { + description: If set then for the passed pipeline controller tasks also archive the pipeline steps + type: boolean + default: false + } + } } started { "2.1" { @@ -1309,6 +1344,13 @@ stop { } ${_references.status_change_request} response: ${_definitions.update_response} } + "2.30": ${stop."2.1"} { + request.properties.include_pipeline_steps { + description: If set and the passed task is a pipeline controller then stop all its steps too + type: boolean + default: false + } + } } stop_many { "2.13": ${_definitions.change_many_request} { @@ -1322,6 +1364,13 @@ stop_many { } } } + "2.30": ${stop_many."2.13"} { + request.properties.include_pipeline_steps { + description: If set then for all the passed pipeline controller tasks stop their steps too + type: boolean + default: false + } + } } stopped { "2.1" { diff --git a/apiserver/service_repo/service_repo.py b/apiserver/service_repo/service_repo.py index ea8ee2f..c75b5ec 100644 --- a/apiserver/service_repo/service_repo.py +++ b/apiserver/service_repo/service_repo.py @@ -39,7 +39,7 @@ class ServiceRepo(object): """If the check is set, parsing will fail for endpoint request with the version that is grater than the current maximum """ - _max_version = PartialVersion("2.29") + _max_version = PartialVersion("2.30") """ Maximum version number (the highest min_version value across all endpoints) """ _endpoint_exp = ( diff --git a/apiserver/version.py b/apiserver/version.py index 6b0872c..638c121 100644 --- a/apiserver/version.py +++ b/apiserver/version.py @@ -1 +1 @@ -__version__ = "1.15.0" +__version__ = "1.16.0"