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} {/if} diff --git a/my.env b/my.env index 19646f2..a27f00c 100644 --- a/my.env +++ b/my.env @@ -40,6 +40,7 @@ AUTHZ_CLASS_NAME= #Chat config PUBLIC_CHAT_ENABLED=false PUBLIC_CHAT_NAME=Chat +PUBLIC_CHAT_DESCRIPTION=Chat with your Lakehouse PUBLIC_CHAT_SERVER=ws://localhost:8000/ws #Any extra link we want to put, would go in top right app selector @@ -50,4 +51,5 @@ PUBLIC_EXTRA_LINK_TEXT= PUBLIC_COMPANY_NAME="Apache Iceberg" PUBLIC_PLATFORM_NAME=Lakehouse - +#Database for storing insights and future features +DATABASE_URL=postgresql://:@:/dbname