Reamer commented on a change in pull request #4240: URL: https://github.com/apache/zeppelin/pull/4240#discussion_r721279604
########## File path: zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/NotebookTest.java ########## @@ -78,7 +80,7 @@ private Notebook notebook; private NoteManager noteManager; - private NotebookRepo notebookRepo; + private VFSNotebookRepo notebookRepo; Review comment: Why is this necessary? I think we should work with the interface. ########## File path: zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/NoteManager.java ########## @@ -246,6 +246,13 @@ public void moveNote(String noteId, // update notebookrepo this.notebookRepo.move(noteId, notePath, newNotePath, subject); + + // save note if note name is changed, because we need to update the note field in note json. + String oldNoteName = getNoteName(notePath); + String newNoteName = getNoteName(newNotePath); + if (!oldNoteName.equalsIgnoreCase(newNoteName)) { Review comment: I think it would be good to use StringUtils.equalsIgnoreCase(..) to be null safe. -- 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. To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org