Skip to content

Conversation

@anthonycorbacho
Copy link
Contributor

@anthonycorbacho anthonycorbacho commented Oct 23, 2016

What is this PR for?

The idea behind this feature is to bring flexibility to the user to let him configure his repo via UI without restarting Apache Zeppelin.
This is flexible enough to handle most of the basic needs, but more complex case can be added in the future. I will not implement all NotebookRepo, this should be done in different PR since it will depend on special needs. I will just provide a simple example with VFS notebook repo.

_NB_: this scope of the PR doesn't include save change in the configuration file of zeppelin as well as implementation of every notebook repo, git, s3 etcetc, this will be added later if needed.

What type of PR is it?

  • Improvement

Todos

  • - Implement backend.
  • - Implement frontend.
  • - Implement LocalVFS directory change as exemple.

What is the Jira issue?

How should this be tested?

Go to notebook repo setting page, edit the notebook path and save.

Screenshots (if appropriate)

notebook_repo_settings

Questions:

  • Does the licenses files need update? NO
  • Is there breaking changes for older versions? NO
  • Does this needs documentation? YES

@anthonycorbacho anthonycorbacho changed the title [ZEPPELIN-1575] [WIP] Notebook Repo settings UI [ZEPPELIN-1575] Notebook Repo settings UI Oct 24, 2016
@khalidhuseynov
Copy link
Member

@anthonycorbacho thanks for suggesting to change repo settings via UI. before testing, do you think we need some unit tests for repo settings feature?

@anthonycorbacho
Copy link
Contributor Author

@khalidhuseynov added some tests

anthonycorbacho and others added 25 commits October 25, 2016 16:41
…uest with Empty static object instead of null
(cherry picked from commit 6109a93)
(cherry picked from commit 8753e05)
(cherry picked from commit 2e09b85)
(cherry picked from commit 37ba504)
(cherry picked from commit f8ddfc1)
@anthonycorbacho
Copy link
Contributor Author

Please review this PR

@anthonycorbacho
Copy link
Contributor Author

If no more discussion i am going to merge it.

@khalidhuseynov
Copy link
Member

@anthonycorbacho thanks for tests! tested and LGTM.

@asfgit asfgit closed this in 824fd95 Oct 27, 2016
@anthonycorbacho anthonycorbacho deleted the feat/NotebookRepoSettings branch October 27, 2016 08:44
pedrozatta pushed a commit to pedrozatta/zeppelin that referenced this pull request Oct 27, 2016
### What is this PR for?
The idea behind this feature is to bring flexibility to the user to let him configure his repo via UI without restarting Apache Zeppelin.
This is flexible enough to handle most of the basic needs, but more complex case can be added in the future. I will not implement all NotebookRepo, this should be done in different PR since it will depend on special needs. I will just provide a simple example with VFS notebook repo.

***NB***: this scope of the PR doesn't include save change in the configuration file of zeppelin as well as implementation of every notebook repo, git, s3 etcetc, this will be added later if needed.

### What type of PR is it?
 * **Improvement**

### Todos
* [x] - Implement backend.
* [x] - Implement frontend.
* [x] - Implement LocalVFS directory change as exemple.

### What is the Jira issue?
 * [ZEPPELIN-1575](https://issues.apache.org/jira/browse/ZEPPELIN-1575)

### How should this be tested?
Go to notebook repo setting page, edit the notebook path and save.

### Screenshots (if appropriate)
![notebook_repo_settings](https://cloud.githubusercontent.com/assets/3139557/19643248/583dbc2a-9a24-11e6-8f14-7deda9c443f2.gif)

### Questions:
* Does the licenses files need update? NO
* Is there breaking changes for older versions? NO
* Does this needs documentation? YES

Author: Anthony Corbacho <[email protected]>
Author: Damien CORNEAU <[email protected]>

Closes apache#1553 from anthonycorbacho/feat/NotebookRepoSettings and squashes the following commits:

6d63832 [Anthony Corbacho] Fix style and rebase mistake...
6f17b18 [Anthony Corbacho] Add tests :: API and REST API
23ad18e [Anthony Corbacho] Rename NotebookRepoSettings to NotebookRepoSettingsInfo
42fd3b5 [Anthony Corbacho] Apply broadcasting note list after sucessful update for notebook repo
7fc1f37 [Anthony Corbacho] Change textarea size to 100 row
357b659 [Anthony Corbacho] Fix ASF header
d49bfe1 [Anthony Corbacho] Fix style
517ebc8 [Anthony Corbacho] Fix style
dc7fc50 [Anthony Corbacho] Fix indentation
0b4b74a [Anthony Corbacho] Add exemple of how to change local notebook repo FS
2d67bc8 [Anthony Corbacho] Added method from notebook repo interface
5a13e62 [Anthony Corbacho] Added 2 new methos in notebookRepoSync, exposed get and update notebook repo
8e890d3 [Anthony Corbacho] Add new wrapper for notebook repo PLUS settings
53346d7 [Anthony Corbacho] Add new methods in notebookRepo :: get and set settings in notebook
23912ce [Anthony Corbacho] Added new wrapper class
4d745ab [Damien CORNEAU] Improve ux
05a64de [Damien CORNEAU] Improve edit repo
9c1f999 [Damien CORNEAU] Implement edit
6a97512 [Damien CORNEAU] Get Repos from api
76479b3 [Damien CORNEAU] Change presentation of notebook settings
8075b04 [Damien CORNEAU] Render mocked list of notebook repo settings
054d2aa [Damien CORNEAU] Base structure for notebook repo ui
30d29cd [Anthony Corbacho] Update zeppelin server and add NotebookRepo rest api to the singleton
f7c7bf2 [Anthony Corbacho] Update method :: updateRepoSettings to create NotebookRepoSettingsRequest with Empty static object instead of null
a4d9749 [Anthony Corbacho] Added utility class for notebook re po payload deserialization
efe4c34 [Anthony Corbacho] Add new Rest api endpoint for notebook Repo settings
@chaogefeng
Copy link

@anthonycorbacho thanks for your woker very much ! however,a little problem confused me. I am looking forward to getting your help.
Notebook Repo could be changed by every user, Assume that userA and userB, when userA change his Notebook Repo, userB's Notebook Repo will be changed as well.
Especially in this circumstance,user A and userB keep use default Repo for a long time. when user A alter Repo,user B find his notebook gone all, that's a bad experience.
It will be greatfull if every user has their own Notebook Repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants