mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
[ZEPPELIN-3092] Add documentation for loading notebooks from repo
The change is about refreshing the notebooks everytime the repository is requested. Refreshing means, fetching the latest version from the repository. For example in case of GitHub storage, everytime the notebook is requested, it is pulled from GitHub and updated locally (`git pull`).
This commit is contained in:
parent
3009abd47d
commit
81969e123a
1 changed files with 3 additions and 0 deletions
|
|
@ -297,6 +297,9 @@ public class Notebook implements NoteEventListener {
|
|||
}
|
||||
|
||||
public Note getNoteAfterReloadFromRepo(String noteId) {
|
||||
// Each time the notebook is requested, it is loaded from the storage repository. This helps in fetching the
|
||||
// latest versions of the notebook if a remote repository is used. For example, if GitHub is integrated, whenever
|
||||
// the notebook is requested, it is pulled from the remote repository.
|
||||
loadNoteFromRepo(noteId, new AuthenticationInfo(StringUtils.EMPTY));
|
||||
return getNote(noteId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue