<#3034 fix(targets): Avoid emitting an empty state...
# meltano-repo-activity
g
#3034 fix(targets): Avoid emitting an empty state from the target if the tap has not sent any state messages Pull request opened by edgarrmondragon ## Summary by Sourcery Prevent the target from emitting an empty state when the tap has not sent any state messages and add a corresponding test and sample tap for this scenario. New Features: • Introduce a SampleTapFakePeople demo tap that suppresses state messages to reproduce the no-state condition. Bug Fixes: • Skip writing a state message if no state has ever been received, avoiding emission of an empty state. Enhancements: • Change _latest_state to an optional type and accept generic Iterables in _drain_all for greater flexibility. Tests: • Add test_fake_people_to_csv to verify that no state/bookmark messages are emitted when the tap sends none. Chores: • Include a sample tap implementation under samples/sample_tap_fake_people to support the new test. meltano/sdk