-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-957] Normalize note name. #965
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
Conversation
|
LGTM |
| } | ||
| private String normalizeNoteName(String path){ | ||
| path = path.trim(); | ||
| path = path.replace("\\", "/"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this change windows path like mynotebooks\notebook1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: