Skip to content

Commit a8d005b

Browse files
notebook: getNoteRevision -> getNoteByRevision
1 parent b0f156a commit a8d005b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ private void getNoteByRevision(NotebookSocket conn, Notebook notebook, Message f
12021202
String noteId = (String) fromMessage.get("noteId");
12031203
String revisionId = (String) fromMessage.get("revisionId");
12041204
AuthenticationInfo subject = new AuthenticationInfo(fromMessage.principal);
1205-
Note revisionNote = notebook.getNoteRevision(noteId, revisionId, subject);
1205+
Note revisionNote = notebook.getNoteByRevision(noteId, revisionId, subject);
12061206
conn.send(serializeMessage(new Message(OP.NOTE_REVISION)
12071207
.put("noteId", noteId)
12081208
.put("revisionId", revisionId)

zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public List<Revision> listRevisionHistory(String noteId,
363363
return notebookRepo.revisionHistory(noteId, subject);
364364
}
365365

366-
public Note getNoteRevision(String noteId, String revisionId, AuthenticationInfo subject)
366+
public Note getNoteByRevision(String noteId, String revisionId, AuthenticationInfo subject)
367367
throws IOException {
368368
return notebookRepo.get(noteId, revisionId, subject);
369369
}

0 commit comments

Comments
 (0)