GitHub user mohamagdy opened a pull request:
https://github.com/apache/zeppelin/pull/2700
[ZEPPELIN-3092] GitHub Integration
### What is this PR for?
GitHub integration as a storage for notebooks.
### What type of PR is it?
Feature
### What is the Jira issue?
[ZEPPELIN-3092](https://issues.apache.org/jira/browse/ZEPPELIN-3092)
### How should this be tested?
1. Change the configuration in `zeppelin-site.xml` to enable GitHub
integration (add GitHub url, username, access token and origin) as described in
https://github.com/apache/zeppelin/compare/master...mohamagdy:zeppelin-3092-remote-github-integration?expand=1#diff-89104d48f0358450399a6f679bba9c4f
2. Start the Zeppelin server
3. Open an existing notebook or create a new notebook
4. Do some changes to the notebook, for example add a new paragraph
5. Click on the versioning button on the top menu to commit and save changes
6. Checkout the changes in the GitHub repository. The changes should be
reflected
### Questions:
* **Does the licenses files need update?**
No
* **Is there breaking changes for older versions?**
No
* **Does this needs documentation?**
Yes. Documentation is updated as part of the pull request.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mohamagdy/zeppelin
zeppelin-3092-remote-github-integration
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/2700.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2700
----
commit 94675032cce563e169889d411e0d420ac30f3a49
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-05T13:12:10Z
[ZEPPELIN-3092] Add `zepplein-server/local-repo` to `.gitignore`
commit 0bde310138666dadb69006ee586c8312ded8e148
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-05T13:12:49Z
[ZEPPELIN-3092] Add `zeppelin-site.xml` to `zeppelin-server` resources
commit eeb485a2fec19f80c0043fb6053fec71c5a83d41
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-05T13:13:41Z
[ZEPPELIN-3092] Add Github configuration reader
commit 32f6764b19562720453c0930ad7335c07d3b29e4
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-05T16:52:50Z
[ZEPPELIN-3092] Fix GitNotebook test
- Setting the proper path for the test notebooks
- Add the test notebooks to the `src/test/resource` directory
commit 33ae24a473188be4ca81a79456703287f2fe07a5
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-05T16:54:42Z
[ZEPPELIN-3092] Add remote Github repository synchronzing
- Pull the latest changes when the notebook page loads in the browser
- After commiting the changes, pull the latest changes from the remote repo
then push the latest changes to the remote repo
commit bb0afe2fca3f7915bd3f6047fdc8860d29722ba6
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-08T16:33:17Z
[ZEPPELIN-3092] Add GitHub remote to configurations
commit 2dbf11622cadc200b7d4d06c215ff0b5fa2c39b1
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-08T17:03:23Z
[ZEPPELIN-3092] Add GitHub configuration to `zeppelin-site.xml` template
commit 5236176ad9cf157aaf30886eaf43f50d537f8510
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-08T17:04:11Z
[ZEPPELIN-3092] Move GitHub notebook repostiory to separte file
commit 843e42a2736af325fe2240e5f8d03e2ec0c5d8f4
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-08T17:24:19Z
[ZEPPELIN-3092] Cleanup GitHub repository tests
commit 2b093b2056bbff1fd8595f3db11549c23f02d534
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-08T17:40:40Z
[ZEPPELIN-3092] Add documentation about GitHub integration
commit 0dacbf1c2fb8bb7013af7545cb173cb9a30ad058
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-08T17:46:46Z
[ZEPPELIN-3092] Fix encoding in the documenation
commit aadd9b5f36dcd8f6ef21cadc08d2da36f1e1902b
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-08T17:50:49Z
[ZEPPELIN-3092] Revert back ZeppelinServer changes
The changes were removed because it was closing the local server when any
key is
pressed in the console.
commit b77a2d33706bf33bbe698c3328c1bb8ed7a5f1da
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-08T17:53:34Z
[ZEPPELIN-3092] Fix identation in `pom.xml`
commit 6aa4ba7ddd8c0055643e5ae8d487cedf35f0de8e
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-08T17:56:04Z
[ZEPPELIN-3092] Revert back `GitNotebookRepo` to `master`
Only change the visiblity of the `getGit` method to `protected`
commit 3009abd47de3048cae922c82e36081d61608f3e9
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-08T18:03:28Z
[ZEPPELIN-3092] Reset `GitNotebookRepo` to `master`
commit 81969e123a4fb8e28501262e3b12f2380951f45e
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-08T18:06:40Z
[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`).
commit 0174bbdbf9dde311b5d3e2b71f552d01b2e4ce36
Author: Mohamed Magdy <[email protected]>
Date: 2017-12-08T18:10:17Z
[ZEPPELIN-3092] Add documentation how to enabled `GitHubNotebookRepo`
----
---