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
20cdd7cc
Unverified
Commit
20cdd7cc
authored
11 months ago
by
Chris Truter
Committed by
GitHub
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix a bunch of small typos (#43055)
parent
73e1b126
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/metabase/search/filter.clj
+5
-5
5 additions, 5 deletions
src/metabase/search/filter.clj
with
5 additions
and
5 deletions
src/metabase/search/filter.clj
+
5
−
5
View file @
20cdd7cc
...
...
@@ -109,17 +109,17 @@
(
defmulti
^
:private
build-optional-filter-query
"Build the query to filter by `filter`.
Dispath with an array of [filter model-name]."
{
:arglists
'
([
model
fi
t
ler
query
filter-value
])}
Dispat
c
h with an array of [filter model-name]."
{
:arglists
'
([
model
fil
t
er
query
filter-value
])}
(
fn
[
filter
model
_query
_filter-value
]
[
filter
model
]))
(
defmethod
build-optional-filter-query
:default
[
filter
model
_query
_
creator-id
]
[
filter
model
_query
_
filter-value
]
(
throw
(
ex-info
(
format
"%s filter for %s is not supported"
filter
model
)
{
:filter
filter
:model
model
})))
;; Created by filters
(
defn-
default-created-by-fi
t
ler-clause
(
defn-
default-created-by-fil
t
er-clause
[
model
creator-ids
]
(
if
(
=
1
(
count
creator-ids
))
[
:=
(
search.config/column-with-model-alias
model
:creator_id
)
(
first
creator-ids
)]
...
...
@@ -128,7 +128,7 @@
(
doseq
[
model
[
"card"
"dataset"
"metric"
"dashboard"
"action"
]]
(
defmethod
build-optional-filter-query
[
:created-by
model
]
[
_filter
model
query
creator-ids
]
(
sql.helpers/where
query
(
default-created-by-fi
t
ler-clause
model
creator-ids
))))
(
sql.helpers/where
query
(
default-created-by-fil
t
er-clause
model
creator-ids
))))
;; Verified filters
...
...
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