Skip to content

db: add run_labels and run_to_run_labels - #5122

Open
sproderj wants to merge 3 commits into
Ericsson:masterfrom
sproderj:run-labels-feature
Open

sproderj wants to merge 3 commits into
Ericsson:masterfrom
sproderj:run-labels-feature

Conversation

@sproderj

@sproderj sproderj commented Oct 2, 2026

Copy link
Copy Markdown

Adding run_labels and run_to_run_labels for db and run label related API calls

@sproderj
sproderj requested a review from bruntib as a code owner October 2, 2026 09:30

@barnabasdomozi barnabasdomozi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Currently, the linter tests are failing:
https://github.com/Ericsson/codechecker/actions/runs/36990197079/job/110784360627?pr=5122

Also, sorry for changing things around but I think it would make more sense to have two PRs instead:

  • one for database related changes, including Alembic migration
  • one for Thrift API changes, with server side implementation complete

This way, we can merge the changes to master.

So for this PR, only keep changes made to file web/server/codechecker_server/database/run_db_model.py and also implement the Alembic migration (guide here: https://github.com/Ericsson/codechecker/blob/master/docs/web/db_schema_guide.md).
Thanks!

primary_key=True
)

def __init__(self, run_id, run_label_id):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please add type annotations for function parameters.

label_name = Column(String, nullable=False, unique=True, index=True)
description = Column(String, nullable=True)

def __init__(self, label_name, description=None):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please add type annotations for function parameters.

@sproderj
sproderj marked this pull request as draft October 6, 2026 07:54
@sproderj
sproderj marked this pull request as ready for review October 8, 2026 12:59
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.

2 participants