[ZEPPELIN-957] Normalize note name.#965
Conversation
|
LGTM |
| } | ||
| private String normalizeNoteName(String path){ | ||
| path = path.trim(); | ||
| path = path.replace("\\", "/"); |
There was a problem hiding this comment.
does this change windows path like mynotebooks\notebook1?
There was a problem hiding this comment.
Yes, That line change for the windows path to '/'.
|
Tested Merging if there is no more discussions |
|
should this check for both |
|
@felixcheung Thank you for pointing out that i missed. I just fixed it. |
|
Is normalization applied on note name change? |
|
Thanks @astroshim for the improvement. I've tested and although it's working well, i think there're little more things we can think
with this branch
but i think it should be like
|
|
I really appreciate your detailed review. @Leemoonsoo |
|
@astroshim Thanks! |
|
@Leemoonsoo Thank you for kindly explaination. I understand about name. |
|
@Leemoonsoo I fixed 1,2,3,4. please review. |
|
Thanks for quick response. LGTM |
|
Merge it into master if there're no more discussions |
What is this PR for?
It's better if notebook name can be normalized.
What type of PR is it?
Improvement
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-957
How should this be tested?
Try create notebook name with many slashes and no slashes.
You can refer to screen shot.
Screenshots (if appropriate)
Questions: