feat: add slug-only dashboard profile filter and unify backend imports
This commit is contained in:
@@ -46,10 +46,11 @@ class ResourceService:
|
||||
env: Any,
|
||||
tasks: Optional[List[Task]] = None,
|
||||
include_git_status: bool = True,
|
||||
require_slug: bool = False,
|
||||
) -> List[Dict[str, Any]]:
|
||||
with belief_scope("get_dashboards_with_status", f"env={env.id}"):
|
||||
client = SupersetClient(env)
|
||||
dashboards = client.get_dashboards_summary()
|
||||
dashboards = client.get_dashboards_summary(require_slug=require_slug)
|
||||
|
||||
# Enhance each dashboard with Git status and task status
|
||||
result = []
|
||||
@@ -96,6 +97,7 @@ class ResourceService:
|
||||
page_size: int = 10,
|
||||
search: Optional[str] = None,
|
||||
include_git_status: bool = True,
|
||||
require_slug: bool = False,
|
||||
) -> Dict[str, Any]:
|
||||
with belief_scope(
|
||||
"get_dashboards_page_with_status",
|
||||
@@ -106,6 +108,7 @@ class ResourceService:
|
||||
page=page,
|
||||
page_size=page_size,
|
||||
search=search,
|
||||
require_slug=require_slug,
|
||||
)
|
||||
|
||||
result = []
|
||||
|
||||
Reference in New Issue
Block a user