-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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-1374. Should prevent use dot in interpreter name #1365
Conversation
We might also want to make sure that the Websocket API and basic API (if one exist), also check the name accordingly |
@corneadoug make sense, I will update the PR |
In backend side, it might be OK. |
LGTM |
Merge into master if there is no other comments |
dot is invalid for interpreter name as it is used as the separator of interpreter group name and interpreter name. [Improvement] * [ ] - Task * https://issues.apache.org/jira/browse/ZEPPELIN-1374 Tested it manually as shown in the screenshot. ![image](https://cloud.githubusercontent.com/assets/164491/17995181/3047152e-6b92-11e6-9fbf-c683330359a9.png) * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Jeff Zhang <zjffdu@apache.org> Closes #1365 from zjffdu/ZEPPELIN-1374 and squashes the following commits: d36d437 [Jeff Zhang] add rest api checking 0620c6a [Jeff Zhang] ZEPPELIN-1374. Should prevent use dot in interpreter name (cherry picked from commit 33ddc00) Signed-off-by: Mina Lee <minalee@apache.org> Conflicts: zeppelin-web/src/app/interpreter/interpreter.controller.js zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/InterpreterFactory.java
dot is invalid for interpreter name as it is used as the separator of interpreter group name and interpreter name. [Improvement] * [ ] - Task * https://issues.apache.org/jira/browse/ZEPPELIN-1374 Tested it manually as shown in the screenshot. ![image](https://cloud.githubusercontent.com/assets/164491/17995181/3047152e-6b92-11e6-9fbf-c683330359a9.png) * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Jeff Zhang <zjffdu@apache.org> Closes #1365 from zjffdu/ZEPPELIN-1374 and squashes the following commits: d36d437 [Jeff Zhang] add rest api checking 0620c6a [Jeff Zhang] ZEPPELIN-1374. Should prevent use dot in interpreter name (cherry picked from commit 33ddc00) Signed-off-by: Mina Lee <minalee@apache.org> Conflicts: zeppelin-web/src/app/interpreter/interpreter.controller.js zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/InterpreterFactory.java
@@ -325,6 +325,15 @@ angular.module('zeppelinWebApp').controller('InterpreterCtrl', | |||
return; | |||
} | |||
|
|||
if (!$scope.newInterpreterSetting.name.indexOf('.') >= 0) { |
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.
hi, maybe this is a bug.
if ($scope.newInterpreterSetting.name.indexOf('.') >= 0) {
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.
Thanks @ColZer, this is a bug, maybe I introduce this when rebasing.
### What is this PR for? This is for fixing bug introduced in #1365. I may introduce this when rebasing the PR. ### What type of PR is it? [Bug Fix] ### Todos * [ ] - Task ### What is the Jira issue? * https://issues.apache.org/jira/browse/ZEPPELIN-1374] ### Screenshots (if appropriate) ![image](https://cloud.githubusercontent.com/assets/164491/18240526/00996468-737f-11e6-91db-276c73bf70cf.png) ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Jeff Zhang <zjffdu@apache.org> Closes #1403 from zjffdu/HotFix_ZEPPELIN-1374 and squashes the following commits: 032bafa [Jeff Zhang] HotFix for ZEPPELIN-1374
What is this PR for?
dot is invalid for interpreter name as it is used as the separator of interpreter group name and interpreter name.
What type of PR is it?
[Improvement]
Todos
What is the Jira issue?
How should this be tested?
Tested it manually as shown in the screenshot.
Screenshots (if appropriate)
Questions: