File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
packages/postgres-database/src/simcore_postgres_database Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 22
33"""
44
5+ import warnings
6+
57import sqlalchemy as sa
68
79from ._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
You can’t perform that action at this time.
0 commit comments