Skip to content

SAC-31213: Adding tests to handle nested child/grandchild data#17

Open
nk7up wants to merge 5 commits into
masterfrom
SAC-31213
Open

SAC-31213: Adding tests to handle nested child/grandchild data#17
nk7up wants to merge 5 commits into
masterfrom
SAC-31213

Conversation

@nk7up

@nk7up nk7up commented Jun 11, 2026

Copy link
Copy Markdown

JIRA

https://qlik-dev.atlassian.net/browse/SAC-31252

What does this PR do?

The PR contains new tests that were added to handle nested child and grandchild data for tap-notion. The tests recursively checks for blocks and block child and their grandchild data and ensure the data is being replicated and not omitted.

  • Runs a full sync against the three hierarchical streams pages, blocks, block_children
  • Asserts at least one pages record is replicated
  • Asserts at least one blocks record is linked to a replicated page
  • Asserts at least one direct child exists under those page-linked blocks
  • Asserts at least one grandchild exists under those direct children

Type of change

  • Bug fix
  • New feature
  • Refactor / code cleanup
  • Documentation update
  • Dependency update
  • New tests added
  • Existing tests updated
  • Test logic / structure refactored
  • Other:

Related issues

https://qlik-dev.atlassian.net/browse/SAC-31184

Checklist

  • Code is self-reviewed
  • Test coverage is meaningful — not just passing, but testing the right things
  • Documentation updated (if needed)
  • No unintended side effects or breaking changes

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread tests/test_nested_data_hierarchy.py
Comment thread tests/test_nested_data_hierarchy.py
Comment thread tests/test_nested_data_hierarchy.py
nk7up and others added 3 commits June 11, 2026 10:23
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread tests/test_nested_data_hierarchy.py Outdated
Comment thread tests/test_nested_data_hierarchy.py Outdated

class NotionNestedHierarchyTest(NotionBaseTest):
"""
Validate parent-child-grandchild replication integrity for Notion.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It seems like this test relies on the shape of the existing data in the source. I'm not sure if there are implications here with data aging out over time. This is an awesome start but I think we should note that the setup here is outside of the test and manual (making sure the parent-child-grandchild data is already set up in the source for those 3 streams). Notion also has a robust client, so a future project could be to transition this test to a CRUD test using the client to set up and then clean up the source data.

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.

I want to get a little more on this. Lets discuss

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.

3 participants