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
19b08f78
Commit
19b08f78
authored
6 years ago
by
Simon Belak
Browse files
Options
Downloads
Patches
Plain Diff
Fix bad merge
parent
7b677725
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/metabase/automagic_dashboards/core.clj
+7
-8
7 additions, 8 deletions
src/metabase/automagic_dashboards/core.clj
with
7 additions
and
8 deletions
src/metabase/automagic_dashboards/core.clj
+
7
−
8
View file @
19b08f78
...
...
@@ -850,14 +850,13 @@
(
s/defn
^
:private
related
"Build a balanced list of related X-rays. General composition of the list is determined for each
root type individually via `related-selectors`. That recepie is then filled round-robin style."
[
dashboard,
rule
:-
(
s/maybe
rules/Rule
)]
(
let
[
root
(
->
dashboard
:context
:root
)]
(
->>
(
merge
(
indepth
root
rule
)
(
drilldown-fields
dashboard
)
(
related-entities
root
))
(
fill-related
max-related
(
related-selectors
(
->
root
:entity
type
)))
(
group-by
:selector
)
(
m/map-vals
(
partial
map
:entity
)))))
[{
:keys
[
root
]
:as
context
}
,
rule
:-
(
s/maybe
rules/Rule
)]
(
->>
(
merge
(
indepth
root
rule
)
(
drilldown-fields
context
)
(
related-entities
root
))
(
fill-related
max-related
(
related-selectors
(
->
root
:entity
type
)))
(
group-by
:selector
)
(
m/map-vals
(
partial
map
:entity
))))
(
defn-
filter-referenced-fields
"Return a map of fields referenced in filter cluase."
...
...
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