Return nested Mimic randomization controls - #7279
Conversation
There was a problem hiding this comment.
Isaac Lab Review Bot
Reviewed the recursive return-value propagation in interactive_update_randomizable_params(), its focused regression test, and the isaaclab_mimic changelog fragment. The patch directly fixes omission of nested controls without altering control creation.
- Design and architecture: The existing recursive traversal remains intact; extending the parent list with each recursive result preserves depth-first configuration order, dotted path construction, and existing widget side effects.
- API: The function continues returning the declared list of key-path/widget tuples. Nested controls now use the same entry shape as top-level controls, with full split key paths, so the fix completes the return behavior without changing the interface format.
- Implementation: The changed branch correctly propagates recursively collected entries. The regression test covers both nested and top-level parameters and verifies their paths and ordering, while isolating widget construction through a targeted monkeypatch. The changelog fragment accurately records the user-visible fix.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
Greptile SummaryFixes
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified. The recursive calls use independent accumulators, and extending their results returns each nested leaf exactly once while preserving traversal order and the expected descriptor shape. Important Files Changed
Reviews (1): Last reviewed commit: "Preserve nested Mimic randomization cont..." | Re-trigger Greptile |
There was a problem hiding this comment.
AI review disclosure: This review was produced with assistance from multiple AI systems.
Thank you for putting this PR together.
Assessment: inputs.extend preserves depth-first order and returns each nested control exactly once.
Findings: Invalid .patch.rst changelog filename; substantive workflows await authorization.
Requested changes: Rename the fragment and rerun the focused CI workflows.
Changelog filename: Rename the current <slug>.patch.rst fragment to <slug>.rst for this patch-level change. IsaacLab accepts <slug>.rst (patch), <slug>.minor.rst, and <slug>.major.rst; it does not accept a .patch.rst suffix.
Test scope: Focused nested/top-level path-and-order regression is the smallest sufficient test.
Documentation / AI skills: No additional documentation update is required: no signature or public-doc contract changed. No AI-skill update is required.
Description
Fixes
interactive_update_randomizable_params()omitting nested randomizable controls from its return value.The function recursively creates controls for nested parameter dictionaries, but the recursive result was previously discarded. Nested controls were therefore displayed and remained functional, while callers received only top-level controls in the returned list.
The recursive result is now extended into the parent
inputslist, preserving the documented complete list of generated controls at every nesting level.Type of change
Validation
isaaclab_mimicchangelog fragment.Checklist