-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update /xh
endpoints and config for version/instance change detection
#387
Conversation
…ropriate defaults
Associated with HR PR: xh/hoist-react#3768 |
@@ -219,8 +219,8 @@ class XhController extends BaseController { | |||
renderJSON(environmentService.getEnvironment()) | |||
} | |||
|
|||
def version() { | |||
def options = configService.getMap('xhAppVersionCheck', [:]) | |||
def 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.
confusing with our status monitors?
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.
connectionCheck? heartbeat?
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 continue with
/status
, but plan to expand the payload here at a later point to include
health/readiness information.- Could include some highly summarized version of the actual status monitor outputs (eg counts only), if only to acknowledge those have some claim to "status". Although for this whitelisted endpoint we obvs would not want to output anything more detailed (not even, say, the names of monitors).
- But thinking ahead to this including some general
ready:true
indicator helps to justify the name - which I like (mostly because it's difficult to come up with another, better name...)
/instance
,/instanceInfo
or/instanceDetails
would be my other suggestion. It might be a bit weird to have the other version-check related instructions in a return with that name, but not that weird.- If we felt the need, we could always nest those under a sub-key in the return, like
versionCheck
- If we felt the need, we could always nest those under a sub-key in the return, like
tldr; I am OK with status
if we plan to expand the payload to ready checks, but suggest instance
otherwise.
@@ -219,8 +219,8 @@ class XhController extends BaseController { | |||
renderJSON(environmentService.getEnvironment()) | |||
} | |||
|
|||
def version() { | |||
def options = configService.getMap('xhAppVersionCheck', [:]) | |||
def 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 continue with
/status
, but plan to expand the payload here at a later point to include
health/readiness information.- Could include some highly summarized version of the actual status monitor outputs (eg counts only), if only to acknowledge those have some claim to "status". Although for this whitelisted endpoint we obvs would not want to output anything more detailed (not even, say, the names of monitors).
- But thinking ahead to this including some general
ready:true
indicator helps to justify the name - which I like (mostly because it's difficult to come up with another, better name...)
/instance
,/instanceInfo
or/instanceDetails
would be my other suggestion. It might be a bit weird to have the other version-check related instructions in a return with that name, but not that weird.- If we felt the need, we could always nest those under a sub-key in the return, like
versionCheck
- If we felt the need, we could always nest those under a sub-key in the return, like
tldr; I am OK with status
if we plan to expand the payload to ready checks, but suggest instance
otherwise.
# Conflicts: # CHANGELOG.md
+ Tailor /xh/environment return based on auth user - support minimal unauthorized payload for backwards compat with existing usages, but mix-in full details for authenticated users. + Client now calls this endpoint both for initial load and for ongoing polling. + Rework `xhAppStatusCheck` to `xhEnvPollingConfig`, nest within authenticated /xh/environment return. Client reads and respects changes to config updates, with some sanity checks. + Restore /xh/version for backwards compat, return minimal environment summary.
xhAppVersionCheck
-> xhAppStatusCheck
and provide more app…/xh
endpoints and config for version/instance change detection
Had a discussion with Lee earler this evening and throwing these changes over the wall to see if you guys think this holds together. While the client-side code does not save down all the data produced by Retained |
# Conflicts: # CHANGELOG.md
+ Remove dedicated `PingController` + Add extra info - appCode, timestamp, success:true - from ping to version output.
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 like a good place to land to me 👍
…ropriate defaults