fix: Ignore failure propagation in collection member that is ignored in filters and reject failure propagation without common primary key#370
Merged
Moritz Potthoff (MoritzPotthoffQC) merged 4 commits intoJul 21, 2026
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #370 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 56 56
Lines 3506 3507 +1
=========================================
+ Hits 3506 3507 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Moritz Potthoff (MoritzPotthoffQC)
marked this pull request as ready for review
July 21, 2026 15:55
Copilot started reviewing on behalf of
Moritz Potthoff (MoritzPotthoffQC)
July 21, 2026 15:55
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR tightens collection validation to reject collections that cannot correctly apply cross-member behavior (filters and row-failure propagation) due to missing overlapping primary keys, and adds a regression test for the new rejection case.
Changes:
- Extend the metaclass validation to require an overlapping primary key when any non-ignored member enables row-failure propagation (in addition to the existing “filters present” condition).
- Add a test ensuring collections with
propagate_row_failures=Truebut no common primary key are rejected.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
dataframely/collection/_base.py |
Expands the “must have overlapping primary key” validation to cover failure-propagation scenarios. |
tests/collection/test_implementation.py |
Adds a regression test for failure propagation without a common primary key. |
Moritz Potthoff (MoritzPotthoffQC)
marked this pull request as draft
July 21, 2026 16:02
Copilot started reviewing on behalf of
Moritz Potthoff (MoritzPotthoffQC)
July 21, 2026 16:22
View session
Moritz Potthoff (MoritzPotthoffQC)
marked this pull request as ready for review
July 21, 2026 16:33
Oliver Borchert (borchero)
approved these changes
Jul 21, 2026
Oliver Borchert (borchero)
left a comment
Member
There was a problem hiding this comment.
Thank you!
Moritz Potthoff (MoritzPotthoffQC)
deleted the
fix-collection-no-common-primary-key
branch
July 21, 2026 22:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Opposed to the docs, for a member that is ignored in filters, the failure propagation property is currently not ignored.
Additionally, we should reject collections if they have a failure-propagating member (not ignored) but no common primary key. Like for filters, entries that are filtered out of a failure-propagating member would be propagated across members, which does not work without common primary key.
Changes