-
Notifications
You must be signed in to change notification settings - Fork 21
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
Aerie version discovery endpoint #1535
Comments
Thanks for filing this @cartermak - I updated the description above based on discussion with @Mythicaeda today, let me know if there are any more details to hash out. Assigning to @Mythicaeda |
The concern from Clipper is more that we have users try to run new Aerie-CLI against old Aerie. While Clipper GDS manages Aerie deployments, we can't control which of client software is installed by users. Still, having any future version of Aerie-CLI identify that an Aerie 2.11.2 host is out-of-date will address this issue.
I'll just state my case here and let you both make any final call. IMO, it's safer to have a develop branch report a non-release version tag. That could be just
The second point would also be addressed by making the "base" be the upcoming version release and updating Aerie-CLI to accept that version as soon as development starts on that release, which I'm open to, but I think making Aerie-CLI give special treatment to a "develop" tag is a cleaner solution. |
Thanks - I typo'ed that and meant what you said - will update in the description.
I agree with your points, however we're going to proceed with just exposing the base (most-recently-released) version for the first implementation & discuss options for doing that as a follow up. It will take quite a lot more work to detect and report a development branch, and there are some tricky implementation details re: how to represent the branch name/commit & how to handle it on the CLI side. I'd like to get the base version implemented & released ASAP so we can work on the proposed CLI changes which rely on it. |
@cartermak the
We're going to keep this ticket open for now because we'd like to also discuss including other useful version information here such as the database schema version & potentially git branch information (if possible) - but the currently-released version should be enough to implement version-checking on the CLI side now. |
Closing this - will consider adding other version info at a later date. |
Background
In the near future we're planning to release some breaking changes to the Aerie backend (for procedural scheduling), and we'll also need to release a new version of the
aerie-cli
tool to support this. There is some (valid) concern fromaerie-cli
users about accidentally running aoldnew version of the CLI against an old version of the Aerie backend, causing errors or unexpected results.The plan for handling this is to have future versions of
aerie-cli
query the Aerie backend to check its version, & throw an error to the user if they are incompatible (eg. "Unsupportedaerie
version2.18.0
- update youraerie-cli
version to run this command"). However, there aren't any endpoints on the backend today which expose the current Aerie version.Describe the feature request
Add a new endpoint called
/version
toaerie-gateway
which reports the Aerie version. It should be safe to assume that Gateway and the other backend services will be running the same versions. The response from the endpoint should look like:Notes/Questions
db_schema_version
would be the schema version from the database ie. would tell you if you're fully migrated to the latest schema or not. This is a bonus and not required if difficult.2.18.0
. But if there is any better way of handling this, we're open to it.The text was updated successfully, but these errors were encountered: