<#3114 fix: Centralize state writing to avoid emit...
# meltano-repo-activity
g
#3114 fix: Centralize state writing to avoid emitting duplicate STATE messages Pull request opened by edgarrmondragon ## Summary by Sourcery Integrate a centralized StateWriter to manage and deduplicate STATE messages across taps and streams, replacing direct state emissions and redundant tracking logic. New Features: • Introduce StateWriter class to centralize and deduplicate STATE message emissions Bug Fixes: • Prevent duplicate STATE messages across taps and streams by tracking last emitted state Enhancements: • Integrate StateWriter into TapBase and core streams for consistent state emission • Remove redundant per-stream state tracking in favor of centralized StateWriter Tests: • Update parent-child stream snapshot tests to reflect new state emission behavior --- 📚 Documentation preview 📚: https://meltano-sdk--3114.org.readthedocs.build/en/3114/ ## Summary by Sourcery Centralize and deduplicate STATE message emission by introducing a StateWriter class and integrating it into TapBase and core streams. New Features: • Introduce StateWriter class to manage and deduplicate STATE messages. Bug Fixes: • Prevent duplicate STATE messages across taps and streams by centralizing state tracking. Enhancements: • Integrate StateWriter into TapBase and core streams for consistent state emission. • Remove redundant per-stream state tracking logic in favor of centralized state management. Tests: • Update snapshot tests to reflect new centralized state emission behavior. meltano/sdk