Skip to content
Snippets Groups Projects
Unverified Commit 4c92392a authored by Kyle Doherty's avatar Kyle Doherty Committed by GitHub
Browse files

filter out hidden tables in table entity (#8831)

parent 2cd4028d
Branches
Tags
No related merge requests found
......@@ -11,7 +11,14 @@ import { GET } from "metabase/lib/api";
const listTables = GET("/api/table");
const listTablesForDatabase = async (...args) =>
// HACK: no /api/database/:dbId/tables endpoint
(await GET("/api/database/:dbId/metadata")(...args)).tables;
(await GET("/api/database/:dbId/metadata")(...args)).tables.filter(
/*
* HACK: Right now the endpoint returns all tables regardless of
* whether they're hidden. make sure table lists only use non hidden tables
* Ideally this should live in the API?
*/
t => t.visibility_type !== "hidden",
);
const listTablesForSchema = GET("/api/database/:dbId/schema/:schemaName");
// OBJECT ACTIONS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment