Skip to content

Commit 2ca12d6

Browse files
SAC-28465/add-parent-tap-stream-id (#220)
* feat: add parent-tap-stream-id to metadata ----------------------------- Co-authored-by: Scott Nakano <[email protected]> * feat: version bump 3.3.0 and changelog update ----------------------------- Co-authored-by: Scott Nakano <[email protected]> --------- Co-authored-by: Leslie VanDeMark <[email protected]>
1 parent 3d1aa76 commit 2ca12d6

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
# 3.3.0
4+
* Adds `forced_replication_method` and `parent_tap_stream_id` as discoverable metadata [#220](https://github.com/singer-io/tap-github/pull/220)
5+
36
# 3.2.0
47
* Removes the `Projects`, `ProjectCards`, and `ProjectColumns`
58
streams as they've been sunset by Github [#218](https://github.com/singer-io/tap-github/pull/218)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages
44

55
setup(name='tap-github',
6-
version='3.2.0',
6+
version='3.3.0',
77
description='Singer.io tap for extracting data from the GitHub API',
88
author='Stitch',
99
url='http://singer.io',

tap_github/schema.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def get_schemas():
5151
replication_method = (hasattr(stream_metadata, 'replication_method') or None) and stream_metadata.replication_method
5252
)
5353
mdata = metadata.to_map(mdata)
54+
if stream_metadata.parent is not None:
55+
mdata = metadata.write(mdata, (), 'parent-tap-stream-id', stream_metadata.parent)
56+
5457

5558
# Loop through all keys and make replication keys and primary keys of child stream which are not automatic in parent stream of automatic inclusion
5659
for field_name in schema['properties'].keys():

0 commit comments

Comments
 (0)