Skip to content
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

Merged
merged 2 commits into from
May 6, 2024

Conversation

johnswanson
Copy link
Contributor

No description provided.

@johnswanson johnswanson requested a review from camsaul as a code owner May 6, 2024 14:02
@johnswanson johnswanson added the backport Automatically create PR on current release branch on merge label May 6, 2024
@metabase-bot metabase-bot bot added the .Team/AdminWebapp Admin and Webapp team label May 6, 2024
@johnswanson johnswanson requested a review from a team May 6, 2024 14:05
Copy link

replay-io bot commented May 6, 2024

Status In Progress ↗︎ 51 / 52
Commit 437d809
Results
⚠️ 7 Flaky
2458 Passed

@@ -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)
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, done!

Copy link
Contributor

@escherize escherize left a 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.

@johnswanson johnswanson merged commit 1a5d9e8 into master May 6, 2024
109 checks passed
@johnswanson johnswanson deleted the add-can-write-to-search-api branch May 6, 2024 18:22
johnswanson added a commit that referenced this pull request May 16, 2024
Co-authored-by: John Swanson <john.swanson@metabase.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Automatically create PR on current release branch on merge .Team/AdminWebapp Admin and Webapp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants