Skip to content

Add reusable machinery for settings update#8

Merged
cboulay merged 7 commits intodevfrom
live_settings
Apr 24, 2026
Merged

Add reusable machinery for settings update#8
cboulay merged 7 commits intodevfrom
live_settings

Conversation

@cboulay
Copy link
Copy Markdown
Member

@cboulay cboulay commented Apr 24, 2026

  • delegation from unit to processor
  • sane default behaviour in processor

cboulay added 2 commits April 24, 2026 18:01
…ld).

- Added _apply_composite_settings() helper with the full reconciliation logic: rebind settings, early-exit when only NONRESET fields changed, rebuild via _initialize_processors(new_settings), delegate to old.update_settings(new.settings) for same-type children, close + swap for type-mismatched or disappeared keys, re-run _validate_processor_chain().
- Added update_settings to both CompositeProcessor and CompositeProducer as one-line delegators.
5 cases covering state preservation via delegation, new-key insertion, disappeared-key close, no-op update, and composite-level NONRESET_SETTINGS_FIELDS skipping rebuild.
@cboulay cboulay merged commit 0e23305 into dev Apr 24, 2026
14 checks passed
@cboulay cboulay deleted the live_settings branch April 24, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant