032: fix get_dashboards_page_async -> get_dashboards_page (method renamed during async migration)

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'.
This commit is contained in:
2026-06-05 08:39:05 +03:00
parent 079b2dd37b
commit 71156783cf
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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: