You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there’s no built-in way for users to know if their instance of CodeGate is running an outdated version. This can cause a sub-par experience or potential security or compatibility issues.
I’d like to propose a simple version-checking system that:
Stores the current local version (e.g., in a VERSION file at the repo root or an environment variable).
Fetches the latest version from GitHub (via either:
lukehinds
changed the title
Add a Simple Version Check to Inform Users of Outdated Instances
Add a simple version check to inform users of outdated versions
Jan 12, 2025
In implementing this (polling the server from the UI, which checks Github for latest release) I got myself rate limited by the Github API pretty quickly. Going to rethink the polling mechanism in the UI while I work on this.
Description:
Currently, there’s no built-in way for users to know if their instance of CodeGate is running an outdated version. This can cause a sub-par experience or potential security or compatibility issues.
I’d like to propose a simple version-checking system that:
VERSION
file at the repo root or an environment variable).VERSION
file on themain
branch:``` https://raw.githubusercontent.com///main/VERSION ``` ).
Why this is needed
Proposed Steps
VERSION
file at the root of the repository or using the existing https://github.com/stacklok/codegate/blob/main/src/codegate/__init__.py#L17, and have it updated each time we release new code (automate via GH actions when we publish a release)./api/version
endpoint in the FastAPI backend that returns the local (running) version./api/update-status
), fetching the latest release or rawVERSION
file from themain
branch."is_latest": true/false
).The text was updated successfully, but these errors were encountered: