-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Figure out the InfluxDB version from /ping and show it on the admin page #4125
Conversation
Nice. +1. /cc @toddboom |
I like this. I'm wondering if it makes sense to have both the client version (possibly still hardcoded) and the server version (pulled from the ping), just to help with debugging in the future. What do you think? |
I'm not sure I see the usefulness of that, I wasn't aware that the admin page had a "client" version different from the server. I guess it could make sense if you were connecting from one server's admin page to a different server. Still, keeping a hardcoded version number that must be updated with each release negates a bit the spirit of this change, which was to hardcode fewer things. :) By the way, the version number could also be extracted from the "SHOW DATABASES" query which runs at startup anyway. |
SHOW DIAGNOSTICS will return full build information. On Thursday, September 17, 2015, Alex Iribarren notifications@github.com
|
Yes, I meant that calling "/query?q=SHOW+DATABASES" would also return the header with the version that I'm using in my patch. |
Yeah, that query will work. The nice thing about |
It will be great to add |
@toddboom can you review this. I'm fine with it if we rebase. Thoughts? |
@@ -160,7 +160,7 @@ <h3 class="panel-title">Connection Settings</h3> | |||
<!-- /.container --> | |||
<div id="footer"> | |||
<div class="container"> | |||
<p class="text-muted text-right credit"><b>InfluxDB</b> v0.9.3</p> | |||
<p class="text-muted text-right credit"><b>InfluxDB</b> <span class="influxdb-version"></span></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think id can be used here instead of class to match another tag lookups in javascript.
@corylanou agreed. i added one change to split out the version numbers, rebased, and merged. thanks @alexiri! |
I noticed the InfluxDB version at the bottom of the admin page is hardcoded (currently to 0.9.3) and it hasn't been updated to 0.9.4. #4117 updates the version, but here's a patch to dynamically get the version from /ping instead.