-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-705]Search should aware notebook permission #833
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
Conversation
|
@ravicodder |
|
LGTM, +1 for adding test. |
|
@Leemoonsoo @prabhjyotsingh Sorry for late response. Added test . Please have a look. |
|
@ravicodder No worries. Thanks for the fix and tests. Looks good to me. |
|
@ravicodder thank you for fixing it. Could you also please make sure that coded formatting is consistent project's style guide? 👍 for having tests! Right now |
|
@bzz Thanks for the review, |
|
LGTM |
|
Looks great, thank you for taking care. I have one more question: in case of no auth configured, can somebody please help me to understand what is the performance implication or price per-API call to We want search to be as fast as possible in a common case, so just want to make sure that we keep an eye on it. Would that be reasonable to add something like this to the query API code and at least manually compare results once (post here), to make sure preformance does not degraded, or see if any optimization are needed for case when no auth is configuted? Please let me know what do you think! |
|
@bzz I noted the time to search in both the cases, with permission check and without permission check. |
|
@ravicodder looks great, thank you for double-checking! |
### What is this PR for? Make search aware of notebook permissions and allow only those search results for which user has read permission. ### What type of PR is it? Bug Fix ### Todos NA ### What is the Jira issue? [ZEPPELIN-705]( https://issues.apache.org/jira/browse/ZEPPELIN-705?jql=project%20%3D%20ZEPPELIN%20AND%20status%20in%20(Open%2C%20Resolved)%20AND%20resolution%20%3D%20Unresolved%20AND%20fixVersion%20%3D%200.6.0%20ORDER%20BY%20due%20ASC%2C%20priority%20DESC%2C%20created%20ASC) ### How should this be tested? ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update?No * Is there breaking changes for older versions?No * Does this needs documentation?No Author: Ravi Ranjan <[email protected]> Closes apache#833 from ravicodder/ZEPPELIN-705 and squashes the following commits: a4a9999 [Ravi Ranjan] Make test more Readable c42573e [Ravi Ranjan] Add check to see search searching all allowed notebook 7a624d0 [Ravi Ranjan] Add rest API test 2fe33e5 [Ravi Ranjan] search should aware notebook permissions


What is this PR for?
Make search aware of notebook permissions and allow only those search results for which user has read permission.
What type of PR is it?
Bug Fix
Todos
NA
What is the Jira issue?
ZEPPELIN-705
How should this be tested?
Screenshots (if appropriate)
Questions: