fix(dashboard): Prevent fatal error when database connection is unavailable (#37576)

This commit is contained in:
Alexandru Soare
2026-02-07 06:52:17 +02:00
committed by GitHub
parent 9086ae8e6c
commit 9ea5ded988
3 changed files with 50 additions and 1 deletions

View File

@@ -106,6 +106,18 @@ class Explorable(Protocol):
# Identity & Metadata
# =========================================================================
@property
def id(self) -> int | str:
"""
Primary key identifier for this explorable.
Used for database lookups such as row-level security filter resolution.
Must be accessible without triggering expensive operations like
database engine connections.
:return: Primary key (typically int, but may be str for some implementations)
"""
@property
def uid(self) -> str:
"""