-
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
Get client version dynamically #5862
Conversation
toddboom
commented
Feb 29, 2016
- CHANGELOG.md updated
- Rebased/mergable
- Tests pass
- Sign CLA (if not already signed)
|
||
query.done(function (data, status, xhr) { | ||
var version = xhr.getResponseHeader('X-InfluxDB-Version'); | ||
$('.influxdb-client-version').html('v'+version); |
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.
X-InfluxDB-Version
returns unknown
when InfluxDB is built without a version, which causes this to display as InfluxDB vunkown
.
Had one comment, otherwise +1. |
Needs a rebase, but LGTM 👍 |
@toddboom What needs to be done here to push this through? It looks like the 0.10.2 Admin UI wasn't updated, so the sooner we can get this in the better. |
@rossmcdonald i think @gunnaraasen was going to take a look at closing this out. i'll sync up with him today. |
bd0af5f
to
d79fc52
Compare
@toddboom I changed things around a bit. InfluxDB server version is now set using the header from the |
@gunnaraasen this looks good to me - keeps the code pretty clean and gets the job done. thanks! 👍 |
Get client version dynamically