-
Notifications
You must be signed in to change notification settings - Fork 18
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 group for about info endpoint #332
Conversation
ssd04
commented
Oct 13, 2022
- add endpoint for proxy version
- manage app version and commit from build ldflags
- create separate about info processor for future metrics in about section
Makefile
Outdated
cd ${cmd_dir} && \ | ||
go build -v \ | ||
-o ${binary} | ||
-ldflags="-X main.appVersion=$(shell git describe --tags --long --dirty) -X main.commitID=$(shell git rev-parse HEAD)" |
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.
👍
process/aboutInfoProcessor.go
Outdated
func (ap *aboutProcessor) GetAboutInfo() *data.GenericAPIResponse { | ||
commit := ap.commitID | ||
if ap.commitID != common.UndefinedCommitString { | ||
commit = commit[:7] |
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.
magic number. Define a const?
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.
done, added const
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.
System test passed.