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

Rename hook "query" to "access" #418

Merged
merged 1 commit into from
Feb 2, 2015

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Feb 2, 2015

The name "query" creates incorrect assumption that hook handlers may return the result of a query to bypass database access (see #417). That is far from true, since this hook is called also by methods like deleteAll or updateAll that don't perform any SELECT query.

Connect #367

/to @raymondfeng @ritch please review
/cc @crandmck FYI. I'll update the documentation myself when this is landed.

The name "query" creates incorrect assumption that hook handlers
may return the result of a query to bypass database access.
That is far from true, since this hook is called also by methods
like `deleteAll` or `updateAll` that don't perform any SELECT query.
@raymondfeng
Copy link
Contributor

LGTM

bajtos added a commit that referenced this pull request Feb 2, 2015
@bajtos bajtos merged commit 9298919 into master Feb 2, 2015
@bajtos bajtos removed the #review label Feb 2, 2015
@bajtos bajtos deleted the feature/rename-query-to-access-hook branch February 2, 2015 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants