From 71156783cf46ab71a4000435a772f6d1326423e8 Mon Sep 17 00:00:00 2001 From: busya Date: Fri, 5 Jun 2026 08:39:05 +0300 Subject: [PATCH] 032: fix get_dashboards_page_async -> get_dashboards_page (method renamed during async migration) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit get_dashboards_page_async() no longer exists — the sync/async split was removed and the method is now simply get_dashboards_page() (already async). Calls in dashboard slug resolution and git helpers were using the old name. This caused AttributeError at runtime, making all slug-based dashboard lookups fail with 'Dashboard not found'. --- backend/src/api/routes/dashboards/_helpers.py | 2 +- backend/src/api/routes/git/_helpers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/api/routes/dashboards/_helpers.py b/backend/src/api/routes/dashboards/_helpers.py index 6bda4b81..b099d763 100644 --- a/backend/src/api/routes/dashboards/_helpers.py +++ b/backend/src/api/routes/dashboards/_helpers.py @@ -98,7 +98,7 @@ async def _find_dashboard_id_by_slug_async( for query in query_variants: try: - _count, dashboards = await client.get_dashboards_page_async(query=query) + _count, dashboards = await client.get_dashboards_page(query=query) if dashboards: resolved_id = dashboards[0].get("id") if resolved_id is not None: diff --git a/backend/src/api/routes/git/_helpers.py b/backend/src/api/routes/git/_helpers.py index 62f57c9e..652e608b 100644 --- a/backend/src/api/routes/git/_helpers.py +++ b/backend/src/api/routes/git/_helpers.py @@ -175,7 +175,7 @@ async def _find_dashboard_id_by_slug_async( for query in query_variants: try: - _count, dashboards = await client.get_dashboards_page_async(query=query) + _count, dashboards = await client.get_dashboards_page(query=query) if dashboards: resolved_id = dashboards[0].get("id") if resolved_id is not None: