diff --git a/tap_github/repository_streams.py b/tap_github/repository_streams.py index 2e03497c..151ba249 100644 --- a/tap_github/repository_streams.py +++ b/tap_github/repository_streams.py @@ -2299,17 +2299,6 @@ def query(self) -> str: class TrafficRestStream(GitHubRestStream): """Base class for Traffic Streams""" - @property - def metadata(self): - """Override default selection metadata for this stream. - - TODO: Remove this in favor of the recommended approach when the SDK has one. - """ - result = super().metadata - if self._tap_input_catalog is None: - result.root.selected = False - return result - def parse_response(self, response: requests.Response) -> Iterable[dict]: if response.status_code != 200: return [] @@ -2341,6 +2330,7 @@ class TrafficClonesStream(TrafficRestStream): ignore_parent_replication_key = True state_partitioning_keys = ["repo", "org"] records_jsonpath = "$.clones[*]" + selected_by_default = False schema = th.PropertiesList( # Parent keys @@ -2365,6 +2355,7 @@ class TrafficReferralPathsStream(TrafficRestStream): ignore_parent_replication_key = True state_partitioning_keys = ["repo", "org"] records_jsonpath = "[*]" + selected_by_default = False schema = th.PropertiesList( # Parent keys @@ -2390,6 +2381,7 @@ class TrafficReferrersStream(TrafficRestStream): ignore_parent_replication_key = True state_partitioning_keys = ["repo", "org"] records_jsonpath = "[*]" + selected_by_default = False schema = th.PropertiesList( # Parent keys @@ -2414,6 +2406,7 @@ class TrafficPageViewsStream(TrafficRestStream): ignore_parent_replication_key = True state_partitioning_keys = ["repo", "org"] records_jsonpath = "$.views[*]" + selected_by_default = False schema = th.PropertiesList( # Parent keys