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

only return non archived cards in nested queries (#6731)

parent c4ae23b5
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@
"Fetch the Cards that can be used as source queries (e.g. presented as virtual tables)."
[]
(as-> (db/select [Card :name :description :database_id :dataset_query :id :collection_id :result_metadata]
:result_metadata [:not= nil]
:result_metadata [:not= nil] :archived false
{:order-by [[:%lower.name :asc]]}) <>
(filter card-database-supports-nested-queries? <>)
(remove card-uses-unnestable-aggregation? <>)
......
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