Skip to content

Commit

Permalink
feat: By default, new targets now emit a warning message if they do n…
Browse files Browse the repository at this point in the history
…ot support `ACTIVATE_VERSION`
  • Loading branch information
edgarrmondragon committed Sep 6, 2024
1 parent 640e00b commit 51521d5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions singer_sdk/_singerlib/encoding/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,19 @@ def _process_record_message(self, message_dict: dict) -> None: ...
@abc.abstractmethod
def _process_state_message(self, message_dict: dict) -> None: ...

@abc.abstractmethod
def _process_activate_version_message(self, message_dict: dict) -> None: ...

@abc.abstractmethod
def _process_batch_message(self, message_dict: dict) -> None: ...

def _process_activate_version_message(self, message_dict: dict) -> None: # noqa: ARG002, PLR6301
"""Default implementation for ACTIVATE_VERSION messages.
Override this method in a subclass to handle ACTIVATE_VERSION messages.
Args:
message_dict: Dictionary representation of the Singer message.
"""
logger.warning("ACTIVATE_VERSION messages are not supported")

def _process_unknown_message(self, message_dict: dict) -> None: # noqa: PLR6301
"""Internal method to process unknown message types from a Singer tap.
Expand Down

0 comments on commit 51521d5

Please sign in to comment.