Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

zjffdu
Copy link
Contributor

@zjffdu zjffdu commented Aug 26, 2016

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

  • - Task

What is the Jira issue?

How should this be tested?

Tested it manually as shown in the screenshot.

Screenshots (if appropriate)

image

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@zjffdu
Copy link
Contributor Author

zjffdu commented Aug 26, 2016

\cc @minahlee @jongyoul Ready for review.

@corneadoug
Copy link
Contributor

We might also want to make sure that the Websocket API and basic API (if one exist), also check the name accordingly

@zjffdu
Copy link
Contributor Author

zjffdu commented Aug 27, 2016

@corneadoug make sense, I will update the PR

@jongyoul
Copy link
Member

In backend side, it might be OK.

@minahlee
Copy link
Member

LGTM

@minahlee
Copy link
Member

minahlee commented Aug 31, 2016

Merge into master if there is no other comments

@asfgit asfgit closed this in 33ddc00 Sep 2, 2016
asfgit pushed a commit that referenced this pull request Sep 2, 2016
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
asfgit pushed a commit that referenced this pull request Sep 2, 2016
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) {
Copy link

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) {

Copy link
Contributor Author

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.

@zjffdu zjffdu mentioned this pull request Sep 5, 2016
1 task
asfgit pushed a commit that referenced this pull request Sep 5, 2016
### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants