Skip to content

fix(python): align PullRequestLabels and CommitParent composite primary keys with Go domain layer#8957

Open
bujjibabukatta wants to merge 1 commit into
apache:mainfrom
bujjibabukatta:fix/#8954
Open

fix(python): align PullRequestLabels and CommitParent composite primary keys with Go domain layer#8957
bujjibabukatta wants to merge 1 commit into
apache:mainfrom
bujjibabukatta:fix/#8954

Conversation

@bujjibabukatta

Copy link
Copy Markdown
Contributor

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

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.

[Bug][Pydevlake] Misalignement of Models between Go and Python - missing Primary Keys in PullRequestLabels

1 participant