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

Added group for about info endpoint #332

Merged
merged 8 commits into from
Oct 14, 2022
Merged

Conversation

ssd04
Copy link
Contributor

@ssd04 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)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

func (ap *aboutProcessor) GetAboutInfo() *data.GenericAPIResponse {
commit := ap.commitID
if ap.commitID != common.UndefinedCommitString {
commit = commit[:7]
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, added const

@ssd04 ssd04 marked this pull request as ready for review October 13, 2022 13:29
cmd/proxy/config/apiConfig/v1_0.toml Outdated Show resolved Hide resolved
cmd/proxy/config/apiConfig/v_next.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@gabi-vuls gabi-vuls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System test passed.

@ssd04 ssd04 merged commit 819fc0d into development Oct 14, 2022
@ssd04 ssd04 deleted the add-about-info-endpoint branch October 14, 2022 10:35
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