Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
74dedfdb
Commit
74dedfdb
authored
7 years ago
by
Cam Saul
Browse files
Options
Downloads
Plain Diff
Merge branch 'release-0.25.0' into simplify-mac-app-setup-steps
parents
09d6c085
be74488b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/metabase/api/database.clj
+1
-1
1 addition, 1 deletion
src/metabase/api/database.clj
test/metabase/api/card_test.clj
+15
-1
15 additions, 1 deletion
test/metabase/api/card_test.clj
with
16 additions
and
2 deletions
src/metabase/api/database.clj
+
1
−
1
View file @
74dedfdb
...
...
@@ -135,7 +135,7 @@
[
include_tables
include_cards
]
{
include_tables
(
s/maybe
su/BooleanString
)
include_cards
(
s/maybe
su/BooleanString
)}
(
or
(
dbs-list
include_tables
include_cards
)
(
or
(
dbs-list
(
Boolean/parseBoolean
include_tables
)
(
Boolean/parseBoolean
include_cards
)
)
[]))
...
...
This diff is collapsed.
Click to expand it.
test/metabase/api/card_test.clj
+
15
−
1
View file @
74dedfdb
...
...
@@ -197,7 +197,21 @@
:dataset_query
(
mbql-count-query
database-id
table-id
)
:visualization_settings
{
:global
{
:title
nil
}}
:database_id
database-id
; these should be inferred automatically
:table_id
table-id
})
:table_id
table-id
:labels
[]
:can_write
true,
:dashboard_count
0
,
:collection
nil
:creator
(
match-$
(
fetch-user
:rasta
)
{
:common_name
"Rasta Toucan"
:is_superuser
false
:is_qbnewb
true
:last_login
$
:last_name
"Toucan"
:first_name
"Rasta"
:date_joined
$
:email
"rasta@metabase.com"
:id
$
})})
(
with-self-cleaning-random-card-name
[
_
card-name
]
(
dissoc
((
user->client
:rasta
)
:post
200
"card"
(
card-with-name-and-query
card-name
(
mbql-count-query
database-id
table-id
)))
:created_at
:updated_at
:id
))))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment