Skip to content

Commit b836ab0

Browse files
committed
@sanderegg review: deprecation
1 parent 0272554 commit b836ab0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/postgres-database/src/simcore_postgres_database/utils_products.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
"""
44

5+
import warnings
6+
57
import sqlalchemy as sa
68

79
from ._protocols import AiopgConnection, DBConnection
@@ -76,6 +78,13 @@ async def get_or_create_product_group(
7678
"""
7779
Returns group_id of a product. Creates it if undefined
7880
"""
81+
warnings.warn(
82+
f"{__name__}.get_or_create_product_group uses aiopg which has been deprecated in this repo. Please use the asyncpg equivalent version instead"
83+
"See https://github.com/ITISFoundation/osparc-simcore/issues/4529",
84+
DeprecationWarning,
85+
stacklevel=1,
86+
)
87+
7988
async with connection.begin():
8089
group_id = await execute_get_or_create_product_group(
8190
connection, product_name=product_name

0 commit comments

Comments
 (0)