[jira] [Created] (SUBMARINE-490) Use LDAP service to synchronizing the user information to Submarine.
Eroschang created SUBMARINE-490: --- Summary: Use LDAP service to synchronizing the user information to Submarine. Key: SUBMARINE-490 URL: https://issues.apache.org/jira/browse/SUBMARINE-490 Project: Apache Submarine Issue Type: Task Components: Security Reporter: Eroschang Assignee: Eroschang We need to support LDAP service for synchronizing the user/group information to Submarine , which will be the user/group of Submarine. 1. First , we use the "ugsync" module of Ranger to synchronize user/group information from LDAP server to Submarine. 2. In test case , we need to embedded a LDAP server , use some simulation data as user/group information , then the synchronization module in Submarine can synchronize these information , and verify the correction of the synchronization module. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@submarine.apache.org For additional commands, e-mail: dev-h...@submarine.apache.org
[jira] [Resolved] (SUBMARINE-470) [web]Implement database connection in department page with Angular
[ https://issues.apache.org/jira/browse/SUBMARINE-470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Liu Xun resolved SUBMARINE-470. --- Fix Version/s: 0.5.0 Resolution: Fixed Issue resolved by pull request 276 [https://github.com/apache/submarine/pull/276] > [web]Implement database connection in department page with Angular > -- > > Key: SUBMARINE-470 > URL: https://issues.apache.org/jira/browse/SUBMARINE-470 > Project: Apache Submarine > Issue Type: Sub-task > Components: Workbench Web >Reporter: HSIN YUAN, CHEN >Assignee: HSIN YUAN, CHEN >Priority: Major > Labels: pull-request-available > Fix For: 0.5.0 > > > Implement database connection in department page with Angular. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@submarine.apache.org For additional commands, e-mail: dev-h...@submarine.apache.org
[submarine] branch master updated: SUBMARINE-470. [WEB]Implement database connection in department page
This is an automated email from the ASF dual-hosted git repository. liuxun pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/submarine.git The following commit(s) were added to refs/heads/master by this push: new ea4d1a3 SUBMARINE-470. [WEB]Implement database connection in department page ea4d1a3 is described below commit ea4d1a38024216c7289d953f21521d43426e56f2 Author: jasoonn AuthorDate: Tue May 5 10:17:28 2020 +0800 SUBMARINE-470. [WEB]Implement database connection in department page ### What is this PR for? Implement database connection in department page with Angular. ### What type of PR is it? [Feature] ### Todos ### What is the Jira issue? https://issues.apache.org/jira/projects/SUBMARINE/issues/SUBMARINE-470?filter=allopenissues ### How should this be tested? https://travis-ci.org/github/apache/submarine/builds/683207421 ### Screenshots (if appropriate) ![](https://i.imgur.com/XafuQyg.gif) ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: jasoonn Closes #276 from jasoonn/SUBMARINE-470 and squashes the following commits: f080cc9 [jasoonn] update --- .../apache/submarine/integration/departmentIT.java | 10 +- .../src/app/interfaces/sys-dept-item.ts| 33 ++ .../manager/department/department.component.html | 57 ++-- .../manager/department/department.component.ts | 339 + .../src/app/services/department.service.ts | 63 5 files changed, 345 insertions(+), 157 deletions(-) diff --git a/submarine-test/test-e2e/src/test/java/org/apache/submarine/integration/departmentIT.java b/submarine-test/test-e2e/src/test/java/org/apache/submarine/integration/departmentIT.java index 32764b4..846f00c 100644 --- a/submarine-test/test-e2e/src/test/java/org/apache/submarine/integration/departmentIT.java +++ b/submarine-test/test-e2e/src/test/java/org/apache/submarine/integration/departmentIT.java @@ -62,12 +62,12 @@ public class departmentIT extends AbstractSubmarineIT{ // Test create new department pollingWait(By.xpath("//button[@id='btnAddDepartment']"), MAX_BROWSER_TIMEOUT_SEC).click(); -pollingWait(By.xpath("//input[@id='codeInput']"), MAX_BROWSER_TIMEOUT_SEC).sendKeys("e2e test code"); -pollingWait(By.xpath("//input[@id='nameInput']"), MAX_BROWSER_TIMEOUT_SEC).sendKeys("e2e test name"); +pollingWait(By.xpath("//input[@id='codeInput'] "), MAX_BROWSER_TIMEOUT_SEC).sendKeys("e2e Test"); +pollingWait(By.xpath("//input[@id='nameInput']"), MAX_BROWSER_TIMEOUT_SEC).sendKeys("e2e Test"); + wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//label[@id='validCode']"))); pollingWait(By.xpath("//button[@id='btnSubmit']"), MAX_BROWSER_TIMEOUT_SEC).click(); - -//TODO(jasoonn): Assert whether new project be created - + wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//nz-table[@id='departmentTable']"))); +Assert.assertEquals(pollingWait(By.xpath("//td[contains(., 'e2e Test')]"), MAX_BROWSER_TIMEOUT_SEC).isDisplayed(), true); } } diff --git a/submarine-workbench/workbench-web-ng/src/app/interfaces/sys-dept-item.ts b/submarine-workbench/workbench-web-ng/src/app/interfaces/sys-dept-item.ts new file mode 100644 index 000..563320e --- /dev/null +++ b/submarine-workbench/workbench-web-ng/src/app/interfaces/sys-dept-item.ts @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +export interface SysDeptItem { + key: number; + deptCode: string; + description: string; + deleted: number; + deptName: string; + sortOrder: number; + children: SysDeptItem[]; + id: string; + parent?: SysDeptItem + parentCode?: string; + level?: number; + expand?: boolean; +} diff --git a/submarine-workbench/workbench-web-ng/src/app/pages/workbench/manager/department/department.component.html b/submarine-workbench/workbench-web-ng/src/app/pages/workbench/manager/department/department.component.html index 2cb5571..4cde529 100644 ---
[jira] [Assigned] (SUBMARINE-489) SHOW CURRENT ROLES syntax
[ https://issues.apache.org/jira/browse/SUBMARINE-489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Liu Xun reassigned SUBMARINE-489: - Assignee: Kent Yao > SHOW CURRENT ROLES syntax > - > > Key: SUBMARINE-489 > URL: https://issues.apache.org/jira/browse/SUBMARINE-489 > Project: Apache Submarine > Issue Type: Sub-task > Components: Security >Reporter: Kent Yao >Assignee: Kent Yao >Priority: Major > Labels: pull-request-available > Fix For: 0.5.0 > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@submarine.apache.org For additional commands, e-mail: dev-h...@submarine.apache.org
[jira] [Resolved] (SUBMARINE-489) SHOW CURRENT ROLES syntax
[ https://issues.apache.org/jira/browse/SUBMARINE-489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Liu Xun resolved SUBMARINE-489. --- Fix Version/s: 0.5.0 Resolution: Fixed Issue resolved by pull request 277 [https://github.com/apache/submarine/pull/277] > SHOW CURRENT ROLES syntax > - > > Key: SUBMARINE-489 > URL: https://issues.apache.org/jira/browse/SUBMARINE-489 > Project: Apache Submarine > Issue Type: Sub-task > Components: Security >Reporter: Kent Yao >Priority: Major > Labels: pull-request-available > Fix For: 0.5.0 > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@submarine.apache.org For additional commands, e-mail: dev-h...@submarine.apache.org
[submarine] branch master updated: SUBMARINE-489. DCL Framework: SHOW CURRENT ROLES syntax
This is an automated email from the ASF dual-hosted git repository. liuxun pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/submarine.git The following commit(s) were added to refs/heads/master by this push: new cef21e6 SUBMARINE-489. DCL Framework: SHOW CURRENT ROLES syntax cef21e6 is described below commit cef21e6b92d070cc38fa8c360baedeece7aae922 Author: Kent Yao AuthorDate: Wed May 6 00:43:33 2020 +0800 SUBMARINE-489. DCL Framework: SHOW CURRENT ROLES syntax ### What is this PR for? Part of DCL framework, this PR adds SHOW CURRENT ROLES statement. ### What type of PR is it? Improvement ### Todos * [ ] - Task ### What is the Jira issue? Jira https://issues.apache.org/jira/browse/SUBMARINE-489 ### How should this be tested? new unit test ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? /No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Kent Yao Closes #277 from yaooqinn/SUBMARINE-489 and squashes the following commits: fffed1e [Kent Yao] SUBMARINE-489. DCL Framework: SHOW CURRENT ROLES syntax --- .../ShowCurrentRolesCommand.scala | 30 + .../ShowCurrentRolesCommand.scala | 51 ++ .../spark/security/parser/SubmarineSqlBase.g4 | 3 ++ .../security/parser/SubmarineSqlAstBuilder.scala | 8 +++- .../security/parser/SubmarineSqlParserTest.scala | 7 ++- 5 files changed, 96 insertions(+), 3 deletions(-) diff --git a/submarine-security/spark-security/ranger-1/src/main/scala/org.apache.submarine.spark.security.command/ShowCurrentRolesCommand.scala b/submarine-security/spark-security/ranger-1/src/main/scala/org.apache.submarine.spark.security.command/ShowCurrentRolesCommand.scala new file mode 100644 index 000..b736af5 --- /dev/null +++ b/submarine-security/spark-security/ranger-1/src/main/scala/org.apache.submarine.spark.security.command/ShowCurrentRolesCommand.scala @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.submarine.spark.security.command + +import org.apache.spark.sql.{Row, SparkSession} +import org.apache.spark.sql.execution.command.RunnableCommand + +case class ShowCurrentRolesCommand() extends RunnableCommand { + override def run(sparkSession: SparkSession): Seq[Row] = { +throw new UnsupportedOperationException("SHOW CURRENT ROLES") + } +} + diff --git a/submarine-security/spark-security/ranger-2/src/main/scala/org.apache.submarine.spark.security.command/ShowCurrentRolesCommand.scala b/submarine-security/spark-security/ranger-2/src/main/scala/org.apache.submarine.spark.security.command/ShowCurrentRolesCommand.scala new file mode 100644 index 000..7739483 --- /dev/null +++ b/submarine-security/spark-security/ranger-2/src/main/scala/org.apache.submarine.spark.security.command/ShowCurrentRolesCommand.scala @@ -0,0 +1,51 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.submarine.spark.security.command + +import scala.collection.JavaConverters._ +import scala.util.control.NonFatal + +import org.apache.hadoop.security.UserGroupInformation +import org.apache.spark.sql.{Row, SparkSession} +import org.apache.spark.sql.catalyst.expressions.{Attribute, AttributeReference}
[jira] [Updated] (SUBMARINE-489) SHOW CURRENT ROLES syntax
[ https://issues.apache.org/jira/browse/SUBMARINE-489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated SUBMARINE-489: - Labels: pull-request-available (was: ) > SHOW CURRENT ROLES syntax > - > > Key: SUBMARINE-489 > URL: https://issues.apache.org/jira/browse/SUBMARINE-489 > Project: Apache Submarine > Issue Type: Sub-task > Components: Security >Reporter: Kent Yao >Priority: Major > Labels: pull-request-available > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@submarine.apache.org For additional commands, e-mail: dev-h...@submarine.apache.org
[jira] [Created] (SUBMARINE-489) SHOW CURRENT ROLES syntax
Kent Yao created SUBMARINE-489: -- Summary: SHOW CURRENT ROLES syntax Key: SUBMARINE-489 URL: https://issues.apache.org/jira/browse/SUBMARINE-489 Project: Apache Submarine Issue Type: Sub-task Components: Security Reporter: Kent Yao -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@submarine.apache.org For additional commands, e-mail: dev-h...@submarine.apache.org