You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by fe...@apache.org on 2019/02/27 05:25:28 UTC
[zeppelin] branch master updated: [ZEPPELIN-4012] Save paragraphs
after clone
This is an automated email from the ASF dual-hosted git repository.
felixcheung pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/master by this push:
new dd624a6 [ZEPPELIN-4012] Save paragraphs after clone
dd624a6 is described below
commit dd624a67a4cf27e1778be260d964abc3df96e345
Author: Egor Klimov <kl...@yandex.ru>
AuthorDate: Wed Feb 27 08:25:23 2019 +0300
[ZEPPELIN-4012] Save paragraphs after clone
### What is this PR for?
Paragraphs in cloned note disappear after zeppelin restart if they weren't executed
* Bug:
![clone_bug](https://user-images.githubusercontent.com/6136993/52918382-5ed02e00-3307-11e9-888e-5eb4dce756f1.gif)
* Fix:
![clone_fix](https://user-images.githubusercontent.com/6136993/52918383-6263b500-3307-11e9-83e3-e851f65c34b8.gif)
### What type of PR is it?
Bug Fix
### What is the Jira issue?
* https://issues.apache.org/jira/browse/ZEPPELIN-4012
### How should this be tested?
* CI pass
### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No
---
.../src/main/java/org/apache/zeppelin/notebook/Notebook.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java b/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java
index ccb9b95..ab32059 100644
--- a/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java
+++ b/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java
@@ -244,6 +244,7 @@ public class Notebook {
for (Paragraph p : paragraphs) {
newNote.addCloneParagraph(p, subject);
}
+ saveNote(newNote, subject);
return newNote;
}