Repository navigation
Read the complete declared configuration graph - #66
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
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.
Fix
Collect the complete declared configuration graph, rather than stopping after direct children. A grandchild such as
ToadSettings.ui.inputnow supplies its actual live values and inherited source.The traversal visits each stored object once, reads declared dataclass fields without triggering lazy getters, preserves shared instances, and keeps the existing refusal for two different instances of one nominal configuration type. No second resolver or value cache.
Evidence
tests/test_context_manager.py: 14 passed, exit 0; includes nested/shared records and nested identity collision.Part of Toad P192 / OpenHCSDev/toad#1750.