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

[Feature] Provide an interface API to get the executor #1453

Open
2 tasks done
Tracked by #1161
liangqilang opened this issue Feb 14, 2022 · 1 comment
Open
2 tasks done
Tracked by #1161

[Feature] Provide an interface API to get the executor #1453

liangqilang opened this issue Feb 14, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@liangqilang
Copy link
Contributor

Search before asking

  • I had searched in the 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?

  • Yes I am willing to submit a PR!
@liangqilang liangqilang added the enhancement New feature or request label Feb 14, 2022
@azhsmesos
Copy link

Can you give me a example to help me understand what this pr should do? I want to have a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants