Ajay Viswanathan created ZEPPELIN-3673:
------------------------------------------
Summary: Cloning a notebook does not copy `noteParams`,
`noteForms` and `config`
Key: ZEPPELIN-3673
URL: https://issues.apache.org/jira/browse/ZEPPELIN-3673
Project: Zeppelin
Issue Type: Bug
Components: Core, rest-api, zeppelin-server
Affects Versions: 0.8.0
Reporter: Ajay Viswanathan
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
```java
***
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)