-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Commands API for Workspace.Next #9546
Comments
@garagatyi is this an epic? If so please label it accordingly. Thanks |
I'm not sure whether this is an epic. AFAIK we haven't discussed what has to be done with commands in Workspace NEXT, so can't say whether it is something like an epic or a regular task. |
@garagatyi does this issue still make sense? |
Yes, we have |
I think it's simple way that can be implemented quickly. @garagatyi WDYT about proposed functionality? Should I create a separate issue for it or it may be implemented in this issue? |
I'm OK with either way because I don't have strong opinion on that at the moment. |
Feel free to use this issue for the scope you are tackling. |
Now {
"defaultEnv": "default",
"environments": {
"default": {
...
}
},
"projects": [],
"name": "che7",
"attributes": {
"editor": "org.eclipse.che.editor.theia:1.0.0",
"plugins": "che-machine-exec-plugin:0.0.1"
},
"commands": [
{
"commandLine": "echo Hello From Exec Plugin",
"name": "hello-plugin",
"attributes": {
"previewUrl": "",
"goal": "Build",
"plugin": "che-machine-exec-plugin:0.0.1"
},
"type": "mvn"
},
{
"commandLine": "echo Hello From Runtime",
"name": "hello-runtime",
"attributes": {
"goal": "",
"previewUrl": ""
},
"type": "custom"
}
]
} Runtime {
"machines": {
"ws/theia-ide": {
...
},
"status": "STARTING"
},
"ws/che-machine-exec": {
"servers": {
"che-machine-exec": {
"url": "ws://routeyjs82ne2-eclipse-che.192.168.0.108.nip.io",
"attributes": {
"type": "terminal",
"internal": "false"
},
"status": "UNKNOWN"
}
},
"status": "STARTING"
}
...
},
"warnings": [],
"activeEnv": "default",
"commands": [
{
"commandLine": "echo Hello From Runtime",
"name": "hello-runtime",
"attributes": {
"goal": "",
"previewUrl": ""
},
"type": "custom"
},
{
"commandLine": "echo Hello From Exec Plugin",
"name": "hello-plugin",
"attributes": {
"goal": "Build",
"previewUrl": "",
"plugin": "che-machine-exec-plugin:0.0.1",
"machineName": "ws/che-machine-exec"
},
"type": "mvn"
}
],
"machineToken": "...",
} |
A separate issue is created for IDEs adaptation #12053 |
@sleshchenko thanks for the JSON! |
Description
In workspace next when a client starts a workspace, with current API definitions, it’s complicated to retrieve the full list of commands, in particular, the commands defined at a service level.
A client has to get features, then services from these features, eliminate duplications, get all the commands from all the containers in services, match them with machines. After that, it can use it for commands execution UI.
This approach is too complicated. We should consider changes in the APIs that would simplify it dramatically.
Possible solutions are:
The text was updated successfully, but these errors were encountered: