Repository: meltano/sdk
Pull request #2805 (2024-12-10 15:12:40)

refactor: Rename setting `activate_version` to `process_activate_version_messages`


<!-- readthedocs-preview meltano-sdk start -->
----
📚 Documentation preview 📚: https://meltano-sdk--2805.org.readthedocs.build/en/2805/

<!-- readthedocs-preview meltano-sdk end -->

codspeed-hq[bot]: ## [CodSpeed Performance Report](https://codspeed.io/meltano/sdk/branches/edgarrmondragon%2Frefactor%2Factivate_version--process_activate_version_messages)

### Merging #2805 will **not alter performance**

<sub>Comparing <code>edgarrmondragon/refactor/activate_version--process_activate_version_messages</code> (ca03d9b) with <code>main</code> (fd494db)</sub>



### Summary

`✅ 7` untouched benchmarks  




codecov[bot]: ## [Codecov](https://app.codecov.io/gh/meltano/sdk/pull/2805?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=meltano) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 91.27%. Comparing base [(`fd494db`)](https://app.codecov.io/gh/meltano/sdk/commit/fd494db29bbf772babf0c1038306fb0cb6a0d8c8?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=meltano) to head [(`ca03d9b`)](https://app.codecov.io/gh/meltano/sdk/commit/ca03d9b0e486dd5ef40d06f975e9f944b9cac609?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=meltano).

<details><summary>Additional details and impacted files</summary>


```diff
@@           Coverage Diff           @@
##             main    #2805   +/-   ##
=======================================
  Coverage   91.27%   91.27%           
=======================================
  Files          62       62           
  Lines        5182     5182           
  Branches      669      669           
=======================================
  Hits         4730     4730           
  Misses        319      319           
  Partials      133      133           
```

</details>

[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/meltano/sdk/pull/2805?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=meltano).   
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=meltano).


Patch:
diff --git a/cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/.pre-commit-config.yaml b/cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/.pre-commit-config.yaml
index e00fcf85..cb317968 100644
--- a/cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/.pre-commit-config.yaml
+++ b/cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/.pre-commit-config.yaml
@@ -24,7 +24,7 @@ repos:
   - id: check-github-workflows
 
 - repo: https://github.com/astral-sh/ruff-pre-commit
-  rev: v0.8.1
+  rev: v0.8.2
   hooks:
   - id: ruff
     args: [--fix, --exit-non-zero-on-fix, --show-fixes]
diff --git a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/.pre-commit-config.yaml b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/.pre-commit-config.yaml
index 1e260eba..98ead435 100644
--- a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/.pre-commit-config.yaml
+++ b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/.pre-commit-config.yaml
@@ -24,7 +24,7 @@ repos:
   - id: check-github-workflows
 
 - repo: https://github.com/astral-sh/ruff-pre-commit
-  rev: v0.8.1
+  rev: v0.8.2
   hooks:
   - id: ruff
     args: [--fix, --exit-non-zero-on-fix, --show-fixes]
diff --git a/cookiecutter/target-template/{{cookiecutter.target_id}}/.pre-commit-config.yaml b/cookiecutter/target-template/{{cookiecutter.target_id}}/.pre-commit-config.yaml
index 891875e4..fe875719 100644
--- a/cookiecutter/target-template/{{cookiecutter.target_id}}/.pre-commit-config.yaml
+++ b/cookiecutter/target-template/{{cookiecutter.target_id}}/.pre-commit-config.yaml
@@ -24,7 +24,7 @@ repos:
   - id: check-github-workflows
 
 - repo: https://github.com/astral-sh/ruff-pre-commit
-  rev: v0.8.1
+  rev: v0.8.2
   hooks:
   - id: ruff
     args: [--fix, --exit-non-zero-on-fix, --show-fixes]
diff --git a/singer_sdk/helpers/capabilities.py b/singer_sdk/helpers/capabilities.py
index a679bfd8..b1f18887 100644
--- a/singer_sdk/helpers/capabilities.py
+++ b/singer_sdk/helpers/capabilities.py
@@ -146,7 +146,7 @@ TARGET_SCHEMA_CONFIG = PropertiesList(
 ).to_dict()
 ACTIVATE_VERSION_CONFIG = PropertiesList(
     Property(
-        "activate_version",
+        "process_activate_version_messages",
         BooleanType,
         default=True,
         title="Process `ACTIVATE_VERSION` messages",
diff --git a/singer_sdk/sinks/core.py b/singer_sdk/sinks/core.py
index dcac2bee..3681ae96 100644
--- a/singer_sdk/sinks/core.py
+++ b/singer_sdk/sinks/core.py
@@ -406,7 +406,7 @@ class Sink(metaclass=abc.ABCMeta):  # noqa: PLR0904
         Returns:
             True if activate version messages should be processed.
         """
-        return self.config.get("activate_version", True)
+        return self.config.get("process_activate_version_messages", True)
 
     @property
     def datetime_error_treatment(self) -> DatetimeErrorTreatmentEnum:


Test patch:
diff --git a/tests/samples/test_target_sqlite.py b/tests/samples/test_target_sqlite.py
index bb659763..9de140a1 100644
--- a/tests/samples/test_target_sqlite.py
+++ b/tests/samples/test_target_sqlite.py
@@ -79,7 +79,12 @@ def sqlite_sample_target_hard_delete(sqlite_target_test_config):
 @pytest.fixture
 def sqlite_sample_target_no_activate_version(sqlite_target_test_config):
     """Get a sample target object with hard_delete disabled."""
-    return SQLiteTarget(config={**sqlite_target_test_config, "activate_version": False})
+    return SQLiteTarget(
+        config={
+            **sqlite_target_test_config,
+            "process_activate_version_messages": False,
+        }
+    )
 
 
 @pytest.fixture