-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ui: react: Add runtime and build info page #2832
Conversation
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
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.
Some suggestions on how to make it even better :P Awesome work! btw, how is this not a user-facing change? 😄 we should probably make a new entry in the CHANGELOG.md
file
Oh I thought the new UI is still in beta 😅 But yeah, maybe we should add an entry in |
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
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.
Awesome! Love it - clean, concise code. Only one very minor nit in line but it's not a blocker, let's merge this and you could follow up with another small PR! ❤️
GOGC: os.Getenv("GOGC"), | ||
GODEBUG: os.Getenv("GODEBUG"), | ||
} | ||
return status |
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.
We could just return this struct directly, no need for a variable. But I'd guess that the compiler already does this optimization for us. Plus, I'm surprised that none of our linters caught this. Perhaps we could improve the linters to catch functions that look like:
func foo() test {
a := test{}
return a
}
In the distant future? 😄
Changes
/status/runtimeinfo
and/api/buildinfo
Runtime & Build Information
page in react UIVerification
Tested locally using both production and development build.
Screenshot