-
Notifications
You must be signed in to change notification settings - Fork 483
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
Added jaeger ui version to about menu #606
Merged
yurishkuro
merged 6 commits into
jaegertracing:master
from
alanisaac:display-ui-version
Oct 18, 2020
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2a55237
Added jaeger ui version to about menu
alanisaac d5a4b0a
Merge branch 'master' into display-ui-version
alanisaac e412f77
Added Jaeger version info from config
alanisaac 3d3a0b6
Removed extra 'v' from Jaeger version
alanisaac f7624bf
Changed to use short git commit hash
alanisaac 9f5e7fe
Added test for missing coverage
alanisaac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It might be misleading/confusing to display the UI project version rather than the backend release version (which implies a certain UI 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.
+1. We may need to supply release version to the CONFIG here
jaeger-ui/packages/jaeger-ui/public/index.html
Lines 18 to 27 in 2a55237
This is replaced in server code with a JSON object.
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.
Finally got some time to come back to this -- gave it a shot in jaegertracing/jaeger#2406
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.
alternative solution that does not touch the config: jaegertracing/jaeger#2547
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.
Would you like to give it another try? If you sync to jaeger-ui/master, the index.html now gets the following top level function:
Considering that there are several data elements here, I would recommend adding them at the bottom of the About menu, e.g.
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.
Made the updates as requested, though this does make an assumption about the correct short hash for git being 7 characters. While this is the default, my understanding is that's not always the case if there are collisions and ambiguity.
I think the more technically correct way to get the short hash might be to use
git rev-parse --short <SHA>
at the source and inject it instead, though this would involve more changes on the Jaeger query side.On a side note, in testing with Jaeger, I found that the default recommended way to run of
make run-all-in-one
does not include the$(BUILD_INFO)
necessary to inject the version information, so the query version info in the about menu appears blank when running via this method. Is this desired or not? For convenience in my own local testing I temporarily added$(BUILD_INFO)
to the command.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.
Looks awesome. One other idea I had is to make versions actually clickable, to that vN.N.N links would take you to the respective release notes page and the commit hash to that commit (the latter is less important than the versions). But this can be done in a separate PR, I would like to merge this first.
Regarding
make run-all-in-one
, sounds like something we could improve in the make target, although when running from a local copy getting the versions is a bit fuzzy.