-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[Zeppelin - 1152] Listing note revision history #1160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Zeppelin - 1152] Listing note revision history #1160
Conversation
|
@khalidhuseynov All builds are red, can you check it out? |
|
@corneadoug thanks for the help with rendering list, and i've fixed the tests. CI is green and ready for review. |
|
Looks good. Can we display time as well as date in each revision? |
5049163 to
c437017
Compare
88faf78 to
4607c03
Compare
|
@Leemoonsoo updated code and screenshot with feedback |
00a5dc5 to
f676b74
Compare
|
Is it better to have the Date potentially hidden or the title hidden? |
|
@khalidhuseynov what is the benefit of having a new websocket call? Why not use rest-api? |
|
@corneadoug i'm not sure exactly what you mean, could you provide an example? @anthonycorbacho because:
|
|
@khalidhuseynov Previous order in the list was: Date - Title, now it is Title - Date.
|
|
@corneadoug yeah i changed the order since it's more intuitive to have name first, and date afterwards. But you're right when too long name, the ellipse doesn't look good. how do you think we can fix it; maybe move date to new line, or any other suggestions? |
|
Or how about align commit message left, and align date right and use fixed length date format? |
|
okay, i'll play with it a bit then |
|
@corneadoug @Leemoonsoo @anthonycorbacho how about this one? |
|
@khalidhuseynov looks good, but i would reduce the font size and spacing |
|
@corneadoug how about this one 614ed61 : |
|
Great improvement! In this case WS protocol improvement makes sense indeed. 👍 for tests CI is failing on which looks like a flaky test to me. |
01343ca to
924a6c5
Compare
|
addressed comments and CI is green. updated description screenshot as well, /cc @corneadoug @Leemoonsoo @bzz for review |
|
LGTM |
|
Looks good to me, merging if there is no further discussion |
### What is this PR for? This PR addresses ability to view the history of note revisions from the `version control` menu ### What type of PR is it? Improvement ### Todos * [x] - backend changes * [x] - tests * [x] - propagation to frontend * [x] - rendering list ### What is the Jira issue? [Zeppelin - 1152](https://issues.apache.org/jira/browse/ZEPPELIN-1152) ### How should this be tested? 1. Select Git notebook storage layer as primary (e.g. in `conf/zeppelin-env.sh` add ``` export ZEPPELIN_NOTEBOOK_STORAGE="org.apache.zeppelin.notebook.repo.GitNotebookRepo" ``` 2. Select any note in Zeppelin and `commit` it in `version control` menu 3. The list with new commit should be shown in the same menu ### Screenshots (if appropriate) <img width="782" alt="screen shot 2016-07-21 at 11 35 21 am" src="https://cloud.githubusercontent.com/assets/1642088/17009639/c8bcbd58-4f37-11e6-92cd-88147b7419e6.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Khalid Huseynov <[email protected]> Author: Khalid Huseynov <[email protected]> Author: Damien CORNEAU <[email protected]> Closes apache#1160 from khalidhuseynov/front/list-revision-history and squashes the following commits: 924a6c5 [Khalid Huseynov] address @corneadoug comments 614ed61 [Khalid Huseynov] date: smaller font and spacing f676b74 [Khalid Huseynov] Merge branch 'master' into front/list-revision-history bd068fd [Khalid Huseynov] add css class with smaller font for revision date 0445b42 [Khalid Huseynov] move date to right, add time 4607c03 [Khalid Huseynov] fix css e6bafde [Khalid Huseynov] change time format 2090d60 [Khalid Huseynov] mock listRevisionHistory 1d20aeb [Khalid Huseynov] fix jshint checkstyle ee7b94f [Damien CORNEAU] Reverse revisions order to have the latest first 9523b48 [Damien CORNEAU] Add dropdown of revisions 660139b [Damien CORNEAU] fix the jscs error bcf6cf1 [Khalid Huseynov] return list on successful commit 18d430a [Khalid Huseynov] add initial listing b4c69df [Khalid Huseynov] add test: revision history, multiple notes d8f4282 [Khalid Huseynov] add new note resource for tests with multiple notes a7e8fd8 [Khalid Huseynov] initial impl



What is this PR for?
This PR addresses ability to view the history of note revisions from the
version controlmenuWhat type of PR is it?
Improvement
Todos
What is the Jira issue?
Zeppelin - 1152
How should this be tested?
conf/zeppelin-env.shaddcommitit inversion controlmenuScreenshots (if appropriate)

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