[ZEPPELIN-1549] Change NotebookID variable name to NoteID#1518
[ZEPPELIN-1549] Change NotebookID variable name to NoteID#1518hyonzin wants to merge 17 commits intoapache:masterfrom hyonzin:ZEPPELIN-1549
Conversation
|
@hyonzin @cloverhearts Do you change these two files in this PR? |
|
@jongyoul thank you for review. Yes, and I'm still working in process. I'll fix more files. |
|
It seems looks great to me. |
|
Seems there are some test failures in SCALA_VER="2.10" SPARK_VER="1.5.2" I think they are related with this change.. |
| throws IOException, IllegalArgumentException { | ||
| LOG.info("stop notebook jobs {} ", notebookId); | ||
| Note note = notebook.getNote(notebookId); | ||
| LOG.info("stop notebook jobs {} ", noteId); |
There was a problem hiding this comment.
Shall we change notebook -> note in log too?
| public Response getNoteParagraphJobStatus(@PathParam("noteId") String noteId, | ||
| @PathParam("paragraphId") String paragraphId) | ||
| throws IOException, IllegalArgumentException { | ||
| LOG.info("get notebook paragraph job status."); |
There was a problem hiding this comment.
Same here. Instead of notebook, note would be more correct.
| private Notebook notebook; | ||
| private NotebookServer notebookServer; | ||
| private SearchService notebookIndex; | ||
| private SearchService noteIndex; |
There was a problem hiding this comment.
Term noteIndex is little bit confusing for me. Since you are working on naming, how about changing it into noteSearchService?
| public List<Map<String, Object>> getJobListByNoteId(String noteID) { | ||
| final String CRON_TYPE_NOTEBOOK_KEYWORD = "cron"; | ||
| long lastRunningUnixTime = 0; | ||
| boolean isNotebookRunning = false; |
There was a problem hiding this comment.
isNotebookRunning -> isNoteRunning
| } | ||
|
|
||
| public List<Map<String, Object>> getJobListBymNotebookId(String notebookID) { | ||
| public List<Map<String, Object>> getJobListByNoteId(String noteID) { |
There was a problem hiding this comment.
Could you make it to use Id instead of ID for consistency? We have camel convention.
|
@minahlee Thank you for your review! I modified more lines you commented, and some trivial placeholder because I think it's better to read. Is it okay? |
|
Test in SCALA_VER="2.10" SPARK_VER="1.5.2" still fails. I checked its LOG, 13:50:41,164 INFO org.apache.zeppelin.rest.AbstractTestRestApi:299 - 200 - OK
13:50:41,164 INFO org.apache.zeppelin.rest.AbstractTestRestApi:140 - Test Zeppelin stared.
SPARK HOME detected null+cp spark-1.5.2-bin-hadoop2.3.tgz ..
+cd ..
+tar zxf spark-1.5.2-bin-hadoop2.3.tgz
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
+echo 'Unable to extract spark-1.5.2-bin-hadoop2.3.tgz'
Unable to extract spark-1.5.2-bin-hadoop2.3.tgz
+rm -rf spark-1.5.2-bin-hadoop2.3
+rm -f spark-1.5.2-bin-hadoop2.3.tgz
+set +xeIt seems to be disabled to extract .tgz file, so it can't find Spark Home. |
|
@hyonzin Sometimes, CI tests are flaky. Could you re-trigger CI once again and see if it goes to green? |
|
I doubted CI's test in this PR, so I tried this test for absolutely same code in my own repository. And it shows all green. |
|
@hyonzin Could you rebase please? Let me know if you need any help. |
|
@minahlee Thank you. I rebase it and solve conflicts now. Please confirm it! |
|
@hyonzin I found more places to be changed. There were too much of them to comment here so I made PR to your repository. Can you please check and merge it? |
Change notebook to note and fix indentation
|
@hyonzin There is another confilct :( Can you please rebase one more time? Thank you in advance for your patience! |
|
@hyonzin I missed one file... https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/test/java/org/apache/zeppelin/socket/NotebookServerTest.java#L157 in this line, |
|
@minahlee I have fixed it now. Really thank you for your great help :) |
|
CI passed in https://travis-ci.org/hyonzin/zeppelin/builds/170100291. Merge if there is no further discussion. |
### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <[email protected]> Author: 정현진 <[email protected]> Author: Mina Lee <[email protected]> Closes apache#1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request apache#1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <[email protected]> Author: 정현진 <[email protected]> Author: Mina Lee <[email protected]> Closes apache#1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request apache#1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <[email protected]> Author: 정현진 <[email protected]> Author: Mina Lee <[email protected]> Closes apache#1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
What is this PR for?
This PR fixes wrong written NotebookID to NoteID.
What type of PR is it?
[Improvement]
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1549
Questions: