Skip to content

The Database page should display an error when connection is invalid #3371

@pavish

Description

@pavish

Description

  • Add an invalid connection (eg., wrong host, port). Notice that the connection gets added.
  • Open the database page. eg., http://localhost:8000/db/57/.
  • Notice that the page displays Schemas (0), instead of displaying an error to the user.
  • This is because the schemas endpoint filters by connection_id /api/db/v0/schemas/?connection_id=57, and returns: {"count":0,"results":[]}.

Expected behavior

  • The database page should show an error mentioning that the connection failed.
  • This might require both frontend and backend changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: implementation specsWe need clarity on HOW we'll implement it from a technical perspectiverestricted: maintainersOnly maintainers can resolve this issuetype: bugwork: backendRelated to Python, Django, and simple SQLwork: frontendRelated to frontend code in the mathesar_ui directory

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions