-
Notifications
You must be signed in to change notification settings - Fork 138
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
CBG-4390: provide cluster UUID at top level endpoint #7345
Conversation
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.
Just a comment about how we populate the API response for extensibility - otherwise looks good
rest/admin_api.go
Outdated
@@ -352,9 +352,14 @@ func (h *handler) handleGetDbConfig() error { | |||
|
|||
type RunTimeServerConfigResponse struct { | |||
*StartupConfig | |||
RuntimeClusterUUID |
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.
I'd like to put this in a nested "runtime" struct in the response if possible - somewhere we can add more runtime-only info in future without interfering or being lost inside the actual StartupConfig
properties.
I'm thinking of things like post-bootstrap server addresses (since we can bootstrap from a single node and get many servers back), server node latency information, and even non-server runtime info (uptime, command line flags, host timezone, etc.)
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.
Good shout, updated screenshot in description to reflect the change.
* CBG-4390: provide cluster UUID at top level endpoint * update to fix for non persistent config * fix for rosmar * remove pre paramatised test * nit * move mgtrequest into common function * updates * remove unused code * fix failing test * update to create separate struct of info for runtime only info
CBG-4390
Pre-review checklist
fmt.Print
,log.Print
, ...)base.UD(docID)
,base.MD(dbName)
)docs/api
Integration Tests
GSI=true,xattrs=true
https://jenkins.sgwdev.com/job/SyncGateway-Integration/2940/