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
Get agent API and "deleted" agents #10714
Comments
I wonder if this is related to why you get an error if you try to click a link off the popup to an elastic agent since removed: e.g https://build.gocd.org/go/agents/7c736314-cd8b-4b01-898f-2ca6e2817d99/job_run_history |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. |
Issue Type
Summary
For background: I'm asking this question in the context of moving the job detail page away from velocity + jstemplate to a spark based SPA.
The get agent API does not return agents that are soft-deleted. However, I realised that the job detail page does contain agent details. On further examiation, it occured to me that the agents are simply soft-deleted from the DB.
Would it be sensible to make this agent information available via the get API? I have taken a stab at this, and am getting the following response. To me, this response seems reasonable, and does clearly indicate that the agent has been "Disabled". We could also possibly add another field, to indicate
deleted
, if it helps.Here is the quick and dirty change I applied locally, to get the above response:
The text was updated successfully, but these errors were encountered: