Skip to content

SAC-28847: Add parent-tap-stream-id key in metadata#84

Open
MuralidharT03 wants to merge 10 commits into
masterfrom
SAC-28847-add-new-metadata
Open

SAC-28847: Add parent-tap-stream-id key in metadata#84
MuralidharT03 wants to merge 10 commits into
masterfrom
SAC-28847-add-new-metadata

Conversation

@MuralidharT03

@MuralidharT03 MuralidharT03 commented Oct 13, 2025

Copy link
Copy Markdown

Description of change

Adds support for tracking parent-child relationships between streams by including a parent-tap-stream-id key in the metadata. This enables better understanding of stream hierarchies during data discovery operations.

  • Added logic to detect parent stream relationships and store parent stream ID in metadata
  • Enhanced metadata with parent-tap-stream-id field when a parent stream exists

Jira: SAC-28847

Manual QA steps

  • Run Discovery (tap-intercom --config config.json --discover)
  • Verify conversation_parts stream contains "parent-tap-stream-id": "conversations" in its catalog metadata

Risks

  • Low - metadata only change, no impact on sync logic or record output

Rollback steps

  • revert this branch

AI generated code

https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code

  • this PR has been written with the help of GitHub Copilot or another generative AI tool

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for tracking parent-child relationships between streams by including a parent-tap-stream-id key in the metadata. This enables better understanding of stream hierarchies during data discovery operations.

  • Added logic to detect parent stream relationships and store parent stream ID in metadata
  • Enhanced metadata with parent-tap-stream-id field when a parent stream exists

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@RushiT0122 RushiT0122 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update discovery integration tests.

@MuralidharT03

Copy link
Copy Markdown
Author

Update discovery integration tests.

Added tests in the latest commit

@RushiT0122 RushiT0122 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving this PR but update tap version to minor.

Comment thread tests/base.py Outdated
"admins": {
self.PRIMARY_KEYS: {"id"},
self.REPLICATION_METHOD: self.FULL_TABLE,
self.EXPECTED_PARENT_STREAM: "admin_list",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While testing this tap found Admin_List as parent stream but we don't have schema for it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed

Comment thread CHANGELOG.md Outdated
Comment on lines 4 to 5
* Adds parent-tap-stream-id field to catalog for child streams [#84](https://github.com/singer-io/tap-intercom/pull/84)
# 2.2.5

@RushiT0122 RushiT0122 Jun 12, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Adds parent-tap-stream-id field to catalog for child streams [#84](https://github.com/singer-io/tap-intercom/pull/84)
# 2.2.5
* Adds parent-tap-stream-id field to catalog for child streams [#84](https://github.com/singer-io/tap-intercom/pull/84)
# 2.2.5

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants