You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2026/07/15 08:39:32 UTC
(devlake) branch main updated: fix(python): add missing composite primary keys in domain_layer/code.py (#8957)
This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 3a4333eb6 fix(python): add missing composite primary keys in domain_layer/code.py (#8957)
3a4333eb6 is described below
commit 3a4333eb6ff431bb9e790cbe0c52e606d3a8f77c
Author: bujjibabukatta <bu...@gmail.com>
AuthorDate: Wed Jul 15 04:39:27 2026 -0400
fix(python): add missing composite primary keys in domain_layer/code.py (#8957)
---
backend/python/pydevlake/pydevlake/domain_layer/code.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/backend/python/pydevlake/pydevlake/domain_layer/code.py b/backend/python/pydevlake/pydevlake/domain_layer/code.py
index cffe7f502..bd28802c9 100644
--- a/backend/python/pydevlake/pydevlake/domain_layer/code.py
+++ b/backend/python/pydevlake/pydevlake/domain_layer/code.py
@@ -50,7 +50,7 @@ class PullRequest(DomainModel, table=True):
class PullRequestLabels(NoPKModel, table=True):
__tablename__ = 'pull_request_labels'
pull_request_id: str = Field(primary_key=True)
- label_name: str
+ label_name: str = Field(primary_key=True)
class PullRequestCommit(NoPKModel, table=True):
@@ -94,7 +94,7 @@ class Commit(NoPKModel, table=True):
class CommitParent(NoPKModel, table=True):
__tablename__ = 'commit_parents'
commit_sha: str = Field(primary_key=True)
- parent_commit_sha: str
+ parent_commit_sha: str = Field(primary_key=True)
class CommitsDiff(DomainModel, table=True):
@@ -112,6 +112,7 @@ class RefCommit(NoPKModel, table=True):
new_commit_sha: str
old_commit_sha: str
+
class Component(NoPKModel, table=True):
__tablename__ = 'components'
repo_id: str