bujjibabukatta opened a new pull request, #8957: URL: https://github.com/apache/devlake/pull/8957
## What does this PR do? Fixes two missing composite primary keys in the Python domain layer that were misaligned with the Go definitions. ## Changes - `PullRequestLabels.label_name`: added `Field(primary_key=True)` - `CommitParent.parent_commit_sha`: added `Field(primary_key=True)` ## Why Without the correct composite PKs, upserts match on fewer columns than intended, causing rows that differ only in the missing PK column to silently overwrite existing records instead of being treated as distinct entries. ## Related Issue Closes #8954 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
