diff --git a/components/renku_data_services/project/db.py b/components/renku_data_services/project/db.py index bcabb8154..f01f80fb8 100644 --- a/components/renku_data_services/project/db.py +++ b/components/renku_data_services/project/db.py @@ -5,7 +5,7 @@ from typing import Any, Callable, Dict, List, NamedTuple, Tuple, cast from sanic.log import logger -from sqlalchemy import func, select +from sqlalchemy import func, select, update from sqlalchemy.ext.asyncio import AsyncSession import renku_data_services.base_models as base_models @@ -158,6 +158,10 @@ async def update_project( schemas.ProjectRepositoryORM(url=r, project_id=project_id, project=project) for r in payload["repositories"] ] + # Trigger update for ``updated_at`` column + await session.execute( + update(schemas.ProjectORM).where(schemas.ProjectORM.id == project_id).values() + ) for key, value in payload.items(): # NOTE: ``slug``, ``id``, ``created_by``, and ``creation_date`` cannot be edited