Move pause_control and paused_since from GobanBase to GobanEngineConfig#217
Move pause_control and paused_since from GobanBase to GobanEngineConfig#217anoek merged 1 commit intoonline-go:mainfrom
pause_control and paused_since from GobanBase to GobanEngineConfig#217Conversation
e86de7c to
5565287
Compare
Code ReviewI've analyzed this PR and found one minor style issue: Style Issue - Missing Semicolon In pause_control?: AdHocPauseControlThis line is missing a trailing semicolon. All other properties in the pause_control?: AdHocPauseControl;Overall Assessment The refactoring logic is sound:
|
5565287 to
9c32e50
Compare
|
I've reviewed this PR for bugs and performance issues. The code changes look good - no issues found. This is a clean refactoring that correctly moves The import of |
|
Rebased and force-pushed the missing semicolon (linter error) and removing the Sorry to make you work thrice, Claude 😅 |
Code ReviewI've analyzed this PR for bugs and performance issues. The changes look good - no issues found. Summary:
The PR successfully fixes a type system inconsistency and improves third-party client compatibility. ✅ |
|
Yep I think it's better there, thanks! |
See online-go/online-go.com#3010.
These keys are both included in WS
game/:id/gamedatamessages, which says to me they belong inGobanEngineConfigrather thanGobanBase.pause_controlis necessary for a functioning implementation of pausing in a third-party client, so it's awkward that theGobanEngineConfigdefinition doesn't include it. Fully possible I don't understand the convention here, but this seems like common sense to me?paused_sincebeing unusable is a bit awkward (it currently reflects "when was the last time the game began a pause, regardless of whether it's currently paused"), but I thnk adding a comment about it to ward off folks is probably warranted. Open to tweaking the wording.Thanks!