Elvis0607 commented on pull request #4044:
URL: https://github.com/apache/zeppelin/pull/4044#issuecomment-792737587
private void reloadNote(NotebookSocket conn, Message fromMessage) throws
IOException {
String noteId = (String) fromMessage.get("id");
if (noteId == null) {
return;
}
getNotebookService().getNote(noteId, true,
getServiceContext(fromMessage),
new WebSocketServiceCallback<Note>(conn) {
@Override
public void onSuccess(Note note, ServiceContext context)
throws IOException {
getConnectionManager().addNoteConnection(note.getId(), conn);
conn.send(serializeMessage(new Message(OP.NOTE).put("note",
note)));
updateAngularObjectRegistry(conn, note);
sendAllAngularObjects(note,
context.getAutheInfo().getUser(), conn);
}
});
}
getServiceContext require a TicketContainer.Entry as input, but here is a
Message
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]