mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix(dashboard): Prevent fatal error when database connection is unavailable (#37576)
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user