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

[ZEPPELIN-1690] - ZeppelinHubNotebookRepo multy user handling #1635

Closed
wants to merge 15 commits into from
Closed

[ZEPPELIN-1690] - ZeppelinHubNotebookRepo multy user handling #1635

wants to merge 15 commits into from

Conversation

anthonycorbacho
Copy link
Contributor

@anthonycorbacho anthonycorbacho commented Nov 15, 2016

What is this PR for?

This PR bring multi user handling to ZeppelinHubNotebookRepo.

What type of PR is it?

[Improvement ]

What is the Jira issue?

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@khalidhuseynov
Copy link
Contributor

khalidhuseynov commented Nov 16, 2016

@anthonycorbacho thanks for enhancements! i started looking into this one and first of all CI looks like failing with checkstyle issues. Also some methods seem to be missing, and proper jira ticket would be appreciated :) let me know if i can help somehow

@anthonycorbacho
Copy link
Contributor Author

@khalidhuseynov as you can see its a wip, i will let you know when its ready for review

@anthonycorbacho anthonycorbacho changed the title [WIP] - ZeppelinHubNotebookRepo multy user handling [ZEPPELIN-1690] WIP - ZeppelinHubNotebookRepo multy user handling Nov 21, 2016
@anthonycorbacho anthonycorbacho changed the title [ZEPPELIN-1690] WIP - ZeppelinHubNotebookRepo multy user handling [ZEPPELIN-1690] - ZeppelinHubNotebookRepo multy user handling Nov 22, 2016
@@ -157,6 +161,9 @@ protected User authenticateUser(String requestBody) {
ZeppelinServer.notebookWsServer.broadcastReloadedNoteList(
new org.apache.zeppelin.user.AuthenticationInfo(account.login), userAndRoles);

// Add ZeppelinHub user_session token this singleton map, this will help ZeppelinHubRepo
// to get specific information about the current user.
UserSessionContainer.instance.setSession(account.login, userSession);
Copy link
Contributor

Choose a reason for hiding this comment

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

i think this setSession should go few lines above, right after catch statement, since there's broadcastReloadedNoteList called afterwards that will require

@anthonycorbacho
Copy link
Contributor Author

CI is green, please review otherwise merging it :)

@khalidhuseynov
Copy link
Contributor

thanks for the fix, LGTM!

@asfgit asfgit closed this in 33e2dab Nov 24, 2016
@anthonycorbacho anthonycorbacho deleted the feat/ZeppelinHubRepoMultiUser branch November 24, 2016 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants