Skip to content

Commit 9f591b1

Browse files
committed
fixes to deprecation warnings
1 parent 7318dc1 commit 9f591b1

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

services/api-server/openapi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
"files"
224224
],
225225
"summary": "List Files",
226-
"description": "Lists all files stored in the system\n\nSEE `get_files_page` for a paginated version of this function",
226+
"description": "\ud83d\udea8 **Deprecated**: This endpoint is deprecated and will be removed in a future release.\nPlease use `GET /v0/files/page` instead.\n\n\n\nLists all files stored in the system\n\nAdded in *version 0.5*: \n\nRemoved in *version 0.7*: This endpoint is deprecated and will be removed in a future version",
227227
"operationId": "list_files",
228228
"responses": {
229229
"200": {
@@ -1414,7 +1414,7 @@
14141414
"solvers"
14151415
],
14161416
"summary": "List Solvers",
1417-
"description": "Lists all available solvers (latest version)\n\nSEE get_solvers_page for paginated version of this function",
1417+
"description": "\ud83d\udea8 **Deprecated**: This endpoint is deprecated and will be removed in a future release.\nPlease use `GET /v0/solvers/page` instead.\n\n\n\nLists all available solvers (latest version)\n\nNew in *version 0.5.0*\n\nRemoved in *version 0.7*: This endpoint is deprecated and will be removed in a future version",
14181418
"operationId": "list_solvers",
14191419
"responses": {
14201420
"200": {

services/api-server/src/simcore_service_api_server/api/routes/files.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,11 @@ async def _create_domain_file(
146146
deprecated=True,
147147
alternative="GET /v0/files/page",
148148
changelog=[
149-
FMSG_CHANGELOG_ADDED_IN_VERSION.format("0.5"),
150-
FMSG_CHANGELOG_REMOVED_IN_VERSION_FORMAT.format("0.7"),
149+
FMSG_CHANGELOG_ADDED_IN_VERSION.format("0.5", ""),
150+
FMSG_CHANGELOG_REMOVED_IN_VERSION_FORMAT.format(
151+
"0.7",
152+
"This endpoint is deprecated and will be removed in a future version",
153+
),
151154
],
152155
),
153156
)

services/api-server/src/simcore_service_api_server/api/routes/solvers.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@
5757
deprecated=True,
5858
alternative="GET /v0/solvers/page",
5959
changelog=[
60-
FMSG_CHANGELOG_NEW_IN_VERSION.format("0.5.0"),
61-
FMSG_CHANGELOG_REMOVED_IN_VERSION_FORMAT.format("0.7"),
60+
FMSG_CHANGELOG_NEW_IN_VERSION.format("0.5.0", ""),
61+
FMSG_CHANGELOG_REMOVED_IN_VERSION_FORMAT.format(
62+
"0.7",
63+
"This endpoint is deprecated and will be removed in a future version",
64+
),
6265
],
6366
),
6467
)

0 commit comments

Comments
 (0)