Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.8.0
-
None
-
None
Description
Cloning a notebook only copies the `name` and `paragraphs` attributes of a `Note` object. It should also copy other attributes like `noteParams`, `noteForms` and `config`.
Function `Note cloneNote` inside `org.apache.zeppelin.notebook.Notebook` is where the functionality lies
***
Note newNote = createNote(subject);
***
newNote.setName(newNoteName);
***
newNote.setCronSupported(getConf());List<Paragraph> paragraphs = sourceNote.getParagraphs();
for (Paragraph p : paragraphs) { newNote.addCloneParagraph(p, subject); }***
noteSearchService.addIndexDoc(newNote);
newNote.persist(subject);
return newNote;
Is this an intended behavior, and if so what is the reason for it? If not, I'd like to raise a PR for the same.