Skip to content

Commit

Permalink
fix: Update connector ID for Grafana login attributes in reporting se…
Browse files Browse the repository at this point in the history
…rvice (#332)
  • Loading branch information
taylorwalton authored Nov 6, 2024
1 parent cfa7312 commit 26bea86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/app/connectors/grafana/services/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ async def get_dashboard_details(dashboard_uid: str) -> GrafanaDashboardDetails:
async def login_to_page(page, session: AsyncSession):
try:
# Navigate to the login page
await page.goto(f'{await get_connector_attribute(connector_id=12, column_name="connector_url", session=session)}/login')
await page.goto(f'{await get_connector_attribute(connector_id=8, column_name="connector_url", session=session)}/login')
# Enter the username and password
await page.fill(
'input[name="user"]',
f'{await get_connector_attribute(connector_id=12, column_name="connector_username", session=session)}',
f'{await get_connector_attribute(connector_id=8, column_name="connector_username", session=session)}',
)
await page.fill(
'input[name="password"]',
f'{await get_connector_attribute(connector_id=12, column_name="connector_password", session=session)}',
f'{await get_connector_attribute(connector_id=8, column_name="connector_password", session=session)}',
)
# Click the login button
await page.click('button[data-testid="data-testid Login button"]')
Expand Down

0 comments on commit 26bea86

Please sign in to comment.