diff --git a/pyegeria/core/config.py b/pyegeria/core/config.py index eeae6b04..1995bc12 100644 --- a/pyegeria/core/config.py +++ b/pyegeria/core/config.py @@ -150,6 +150,10 @@ class EnvironmentConfig(BaseModel): # RS-EGERIA-TIER stage 1). PYEGERIA_REPORT_SPEC_FOLDERS (comma-separated) overrides it. # Empty by default: a sync never takes "every ReportSpec visible". pyegeria_report_spec_folders: List[str] = Field(default_factory=list, alias="Pyegeria Report Spec Folders") + # Dashboard folders (LD-1): CollectionFolder qualified names whose Dashboard sheets a listing + # shows, e.g. "DashboardFolder::Consumer::Portal". PYEGERIA_DASHBOARD_FOLDERS (comma-separated) + # overrides it. Empty means every Dashboard:: sheet, and the listing says so. + pyegeria_dashboard_folders: List[str] = Field(default_factory=list, alias="Pyegeria Dashboard Folders") model_config = ConfigDict(populate_by_name=True, extra='allow') diff --git a/pyegeria/view/dashboard_resolver.py b/pyegeria/view/dashboard_resolver.py index 84bd799a..fd67e7a3 100644 --- a/pyegeria/view/dashboard_resolver.py +++ b/pyegeria/view/dashboard_resolver.py @@ -50,7 +50,7 @@ __all__ = [ "NOT_VISIBLE", "REPORT_GONE", "ResolvedPlacement", "ResolvedReport", "ResolvedSheet", "async_list_dashboard_sheets_for_viewer", "async_resolve_dashboard_sheet", "async_resolve_sheet", - "is_not_visible_error", "list_dashboard_sheets_for_viewer", "placements_for_perspective", + "is_not_visible_error", "list_dashboard_sheets_for_viewer", "placements_for_perspective", "SPEC_NOT_IN_FOLDER", "report_from_element", "resolve_dashboard_sheet", "resolve_sheet", ] @@ -58,6 +58,9 @@ NOT_VISIBLE = "not visible to you" #: A Report this viewer was linked to but Egeria no longer holds. REPORT_GONE = "the Report this placement shows is no longer in Egeria" +#: A placement whose spec no tier here holds, fetched from Egeria as the viewer: consumer folders govern +#: what a tool LISTS, not whether a spec a sheet already references can RUN (Architect, B7a read-back). +SPEC_NOT_IN_FOLDER = "held in Egeria, not in this tool's folder" #: Egeria's message ids for "this element is in a zone you cannot see": an explicit read (403-020) and a #: filtered one (500-002, normally swallowed by the server, matched in case it surfaces). @@ -106,6 +109,8 @@ class ResolvedPlacement(BaseModel): refusal: Optional[str] = None # the spec resolver's words when not runnable result: Optional[Dict[str, Any]] = None # with run=True: exec_report_spec's result error: Optional[str] = None # what went wrong finding the spec or running it, in words + #: The internal name ("egeria: