-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add can_write
to cards/dashboards in Search
#42276
Conversation
|
src/metabase/api/search.clj
Outdated
@@ -512,6 +517,7 @@ | |||
total-results (cond->> (scoring/top-results reducible-results search.config/max-filtered-results xf) | |||
true hydrate-user-metadata | |||
(:model-ancestors? search-ctx) (add-dataset-collection-hierarchy) | |||
true (map add-can-write) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we can move this map operation into the xf
above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I did leave a question about xf
, but I think the perf increase would be quite minor, so if it would be difficult I'd leave it as-is.
No description provided.