Surface the deployment details in the live read api client - #9794
Merged
Martin-Molinero merged 1 commit intoSep 15, 2026
Merged
Martin-Molinero merged 1 commit into
Martin-Molinero merged 1 commit into
Conversation
LiveAlgorithmResults now carries the deploymentDetails the live/read endpoint reports, deserialized like the runtime and server statistics next to it. The field is optional: deployments running an older Lean, or whose brokerage and data queue handlers share none, report nothing and it stays null. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N792RJ2EcZBDXhbe3KRLLq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
LiveAlgorithmResultsnow carries thedeploymentDetailsthelive/readendpoint reports, deserialized alongside the runtime and server statistics that sit next to it in the same response.The field is optional and backwards compatible: the converter's dictionary helper returns null when the key is absent or is not an object, so deployments running an older Lean, or whose brokerage and data queue handlers share nothing, simply leave it null. Covered by tests.
Renames the converter's private
DeserializeStatisticshelper toDeserializeDictionary, since it is no longer used only for statistics.Depends on the API server reporting the field, which is a separate change. Nothing breaks while it does not.
Related Issue
#9792
Motivation and Context
Completes the deployment details feature on the client side.
QCAlgorithm.DeploymentDetailsexposes them to a running algorithm andAlgorithmConfiguration.DeploymentDetailsstores them in the results, but a client reading a live deployment through the API had no way to see them, since the live read response is built field by field.Requires Documentation Change
LiveAlgorithmResults.DeploymentDetailsHow Has This Been Tested?
New
LiveAlgorithmResultsJsonConverterTests: the field present in camelCase and in PascalCase, the field absent entirely with everything else still deserializing, and a regression case for the server statistics that share the renamed helper.Types of changes
Checklist:
bug-<issue#>-<description>orfeature-<issue#>-<description>🤖 Generated with Claude Code