apache / apache/linkis

[Feature] Provide an interface API to get the executor

Open
#1,453 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
3.4k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

### Search before asking

- [X] I had searched in the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar feature requirement.

### Problem Description

The API supports the parameter "executeUser", but Linkis does not provide an interface for get the executor, including the front-end system, which does not have this function.

API:/api/rest_j/v1/entrance/execute

后端接口支持传入"executeUser",但是系统没有提供获取执行者的接口,包括前端也不支持。

### Description

I hope this system can provide an interface API to get the executor.

### Use case

Describe the use case of your feature request.

@RequestMapping(path = "/getExecuteUserList",method = RequestMethod.GET,produces = {"application/json"})
public Message getExecuteUserList(HttpServletRequest req) throws IOException, WorkSpaceException {
String userName = SecurityFilter.getLoginUsername(req);
//get the executor
return;
}

### solutions

To obtain the API of the ”executor“, my opinion is to provide an abstract interface, and the implementation can be developed by each user according to the actual situation.
获取执行者用户的API,我意见是提供一个抽象接口,具体实现由各个用户根据自动实际情况开发即可。

### Anything else

Which module should provide this api?

### Are you willing to submit a PR?

- [X] Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.