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

SearchKit - Pass entire record into checkAccess #25969

Merged
merged 1 commit into from
Apr 2, 2023

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Apr 1, 2023

Overview

Efficiency tweak for SearchKit

Technical Details

For efficiency it's best to pass all available data into the action to avoid unnecessary db lookups. This ensures the full record is passed in when checking access before enabling in-place edit.

For efficiency it's best to pass all available data into the `checkAccess` action to avoid unnecessary
db lookups. This ensures the full record is passed in when checking access before enabling in-place edit.
@civibot
Copy link

civibot bot commented Apr 1, 2023

(Standard links)

@civibot civibot bot added the master label Apr 1, 2023
@eileenmcnaughton
Copy link
Contributor

Thanks @colemanw this worked for me - putting up a PR with the change based on it

@eileenmcnaughton eileenmcnaughton merged commit d098b59 into civicrm:master Apr 2, 2023
@eileenmcnaughton eileenmcnaughton deleted the entityValues branch April 2, 2023 03:12
@MegaphoneJon
Copy link
Contributor

Linking this to its regression: https://lab.civicrm.org/dev/core/-/issues/4483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants