Skip to content
Snippets Groups Projects
Commit 6d8f99ab authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #307 from metabase/ag-filter-disabled-fields

when hydrating :fields on a 'Table' lets filter down to only the set of ...
parents bea027e7 491d23e9
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
(defmethod post-select Table [_ {:keys [id db db_id description] :as table}]
(u/assoc* table
:db (or db (delay (sel :one db/Database :id db_id)))
:fields (delay (sel :many Field :table_id id (order :position :ASC) (order :name :ASC)))
:fields (delay (sel :many Field :table_id id :active true (order :position :ASC) (order :name :ASC)))
:description (u/jdbc-clob->str description)
:pk_field (delay (:id (sel :one :fields [Field :id] :table_id id (where {:special_type "id"}))))
:can_read (delay @(:can_read @(:db <>)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment