diff --git a/be/app/insights/runner.py b/be/app/insights/runner.py index 7932d82..fb8d74f 100644 --- a/be/app/insights/runner.py +++ b/be/app/insights/runner.py @@ -170,17 +170,18 @@ def run_for_table(self, table_identifier, rule_ids: List[str] = None, type: str return run_result - def run_for_namespace(self, namespace: str, rule_ids: List[str] = None, recursive: bool = True, type: str = "manual") -> Dict[str, List[Insight]]: + def run_for_namespace(self, namespace: str, rule_ids: List[str] = None, recursive: bool = False, type: str = "manual") -> Dict[str, List[Insight]]: tables = self.lakeview.get_tables(namespace) results = [] for t_ident in tables: qualified = qualified_table_name(t_ident) results.extend(self.run_for_table(qualified, rule_ids, type)) if recursive: - nested_namespaces = self.lakeview._get_nested_namespaces(namespace) + ns = tuple(namespace.split('.')) + nested_namespaces = self.lakeview._get_nested_namespaces(ns, len(ns)) for ns in nested_namespaces: ns_str = ".".join(ns) - results.extend(self.run_for_namespace(ns_str, rule_ids, recursive=False, type=type)) + results.extend(self.run_for_namespace(ns_str, rule_ids, recursive=recursive, type=type)) return results def run_for_lakehouse(self, rule_ids: List[str] = None, type: str = "manual") -> Dict[str, List[Insight]]: diff --git a/fe/src/routes/+layout.svelte b/fe/src/routes/+layout.svelte index 2feac2b..3bd2486 100644 --- a/fe/src/routes/+layout.svelte +++ b/fe/src/routes/+layout.svelte @@ -28,6 +28,7 @@ let AUTH_ENABLED = false; let CHAT_ENABLED = false; let CHAT_NAME = 'Chat'; + let CHAT_DESCRIPTION = ''; let extra_link; let extra_link_text; let company = 'Apache Iceberg'; @@ -75,6 +76,9 @@ if (env.PUBLIC_CHAT_NAME) { CHAT_NAME = env.PUBLIC_CHAT_NAME; } + if (env.PUBLIC_CHAT_DESCRIPTION) { + CHAT_DESCRIPTION = env.PUBLIC_CHAT_DESCRIPTION; + } CHAT_ENABLED = true; } if (env.PUBLIC_EXTRA_LINK) { @@ -201,11 +205,12 @@ size='lg' passiveModal bind:open={isChatOpen} - modalHeading="{CHAT_NAME} - Chat with your Lakehouse" + modalHeading="{CHAT_NAME}" on:open={handleChatOpen} on:close={handleChatClose} on:click:overlay={handleChatClose} > +
{CHAT_DESCRIPTION}
{#if user}