Skip to content
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

Merged
merged 1 commit into from
Feb 11, 2016

Conversation

alexiri
Copy link
Contributor

@alexiri alexiri commented Sep 16, 2015

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.

@corylanou
Copy link
Contributor

Nice. +1. /cc @toddboom

@toddboom
Copy link
Contributor

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?

@alexiri
Copy link
Contributor Author

alexiri commented Sep 17, 2015

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.

@otoolep
Copy link
Contributor

otoolep commented Sep 17, 2015

SHOW DIAGNOSTICS will return full build information.

On Thursday, September 17, 2015, Alex Iribarren notifications@github.com
wrote:

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.


Reply to this email directly or view it on GitHub
#4125 (comment).

@alexiri
Copy link
Contributor Author

alexiri commented Sep 17, 2015

Yes, I meant that calling "/query?q=SHOW+DATABASES" would also return the header with the version that I'm using in my patch.

@otoolep
Copy link
Contributor

otoolep commented Sep 17, 2015

Yeah, that query will work. The nice thing about SHOW DIAGNOSTICS is that the commit and branch of the build will also be returned. That richer information may be useful.

@simi
Copy link

simi commented Oct 25, 2015

It will be great to add statik compilation into build steps and hardcode admin version in the build process. I'll try to inspect this.

@corylanou
Copy link
Contributor

@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>
Copy link

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.

@toddboom toddboom merged commit 22ea73d into influxdata:master Feb 11, 2016
@toddboom
Copy link
Contributor

@corylanou agreed. i added one change to split out the version numbers, rebased, and merged. thanks @alexiri!

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 this pull request may close these issues.

5 participants