Skip to content

Add support to track Agent API version #10339

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

Closed
spikecurtis opened this issue Oct 19, 2023 · 0 comments · Fixed by #10419
Closed

Add support to track Agent API version #10339

spikecurtis opened this issue Oct 19, 2023 · 0 comments · Fixed by #10419

Comments

@spikecurtis
Copy link
Contributor

Background

We are in the process of consolidating/refactoring the API calls the Coder Agent makes into a new Agent API. This API will be versioned separately from the main Coder Product version and consist of a major and minor version (no patch).

The existing combination of REST calls and websockets is now defined as Agent API version 1.0.

Feature

  1. Define a new column in the workspace_agents table, called api_version to track the API version of the agent when it connects.
  2. Populate the API version in the same code-path as we populate the version column. For now we can hard-code 1.0 as the version.
  3. API calls that fetch the Agent should return the api_version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant