-
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
Add section in workspace to handle the agents #1774
Comments
@ashumilova I have started to work on this one. After browsing a little bit through REST API I figure out how to get agents per workspace:
Basically, the agents' names for my test workspace are:
looking at the mockup I find it hard to understand how can I get agents' "state" and "description" properties. REST API for agents e.g |
@ibuziuk : Glad, and super excited to see you contributing to Che. Please give a look at the updated mockup. Agents will be defined per machines in environments. In the agent section, you'd have the ability to see the whole list of agents installed with Che. User will then just have to use the slider to activate the agents in the machine or not. |
@slemeur hey, buddy! I also super exited having a possibility to contribute - for now I'm only getting familiar with a code base though. New mockup looks completed, however I still baffled with the agent properties "state" / "description" - I can not figure out what API should be used here. |
Currently agents don't provide description. |
What we have is dependencies, properties and script. @tolusha can we add description - to have smth human readable. @ibuziuk about state - the state is determined whether machine includes the agent provided by Che or not. So we display all agents provided by Che in the list, and those that are mentioned in machines agents list - are active for this machine, others - inactive. |
@tolusha : Each agents must be provided with a set of meaningful information for end-user. Please create the issue to improve this area. |
@tolusha @ashumilova Thanks for clarifications |
@slemeur @ashumilova As it was mentioned above Che Agent API is missing "description" property and the "name" property like "org.eclipse.che.ls.json" does not look viable from the user perspective. So, I guess with the current version of API the best layout would be the following (please, let me know if it is ok for the initial implementation): Basically, in the next iteration it would be great to change the Agents REST API the following way:
WDYT ? |
Yes, yes, yes, and yes. :) I think using the fully qualified name as you have it is a reasonable first start so that we can go ahead and get the capabilities merged into master. We can then make an improvement PR once the API is updated. So I am +1 for splitting into two segments. |
@TylerJewell awesome! I am planning to provide the initial implementation by the end of the week |
That is really awesome. There are just a couple of lingering language server and agent bugs, but if all goes well, we may have a shippable release with agents and language server by next week! |
@ashumilova @slemeur @TylerJewell while implementing the agents enabling / disabling I have noticed that API does not allow to disable ws-agent agent: Am I correct that the switch for this agent should be permanently disabled ? |
@ibuziuk and @ashumilova : Yes at least one machine from the environment needs the ws-agent. I think we should use the "Dev" slider to handle that. The "ws-agent" will still be listed in the agents list, but in disable state. |
@slemeur just want to be sure that we are on the same page:
I'm polishing my PR now, but I do not really know when 5.0.0-M3 is going to be released to be sure that the fix will be ready on time for it |
The approximate date of 5.0.0-M3 release is Monday (09/26). |
@ashumilova oh, awesome I was thinking it's today ;-) |
@ibuziuk : yes perfect! we are on the same page ;) |
|
Fixed by @ibuziuk |
@ashumilova @slemeur as I understand it was decided to split this issue in two parts. First one is done and merged, the second one is coupled with changing Agents REST API and adjusting front-end part for it. Should I work on the second part ? |
@ibuziuk Yes sure ! It would definitely be great for the product ! |
@slemeur great! should I create another issue for it ? |
@ibuziuk Yes please, it would make it clearer ;) |
We will need a new section in the workspace details to handle the agents.
This is a proposed design that we will iterate.
The text was updated successfully, but these errors were encountered: