Skip to content

Run/config: allow configuring default columns for run stats table#329

Open
ol-nata wants to merge 2 commits into
ts-factory:mainfrom
ol-nata:feat/runstats
Open

Run/config: allow configuring default columns for run stats table#329
ol-nata wants to merge 2 commits into
ts-factory:mainfrom
ol-nata:feat/runstats

Conversation

@ol-nata

@ol-nata ol-nata commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Info

Add support for configuring which columns are displayed by default in the run stats table via the main project config. The default value matches the previous hardcoded behaviour. The stats API response is extended to include the resolved default column list alongside the existing results, so the frontend can apply it without hardcoding.

Overview of changes

Config

Added configuration parameter to control which run stats table columns are displayed by default.

Снимок экрана — 2026-06-15 в 21 45 59

API

GET /bublik/api/v2/<run ID>/stats/

Response data (default_columns added):

{
    "results": {
        "result_id": 6335,
        "exec_seqno": 1,
        "parent_id": null,
        "type": "pkg",
        "test_id": 1,
        "test_name": "dpdk-ethdev-ts",
        "period": "1781110030s230276-1781119169s529164",
        "path": [
            "dpdk-ethdev-ts"
        ],
        "objective": "",
        "children": [
        ...
        ],
        "stats": {
            "passed": 114,
            "failed": 0,
            "passed_unexpected": 0,
            "failed_unexpected": 0,
            "skipped": 198,
            "skipped_unexpected": 66,
            "abnormal": 0
        },
        "comments": []
    },
    "default_columns": [
        "run",
        "passed",
        "failed",
        "passed_unexpected",
        "failed_unexpected",
        "skipped",
        "skipped_unexpected",
        "abnormal"
    ]
}

@ol-nata ol-nata requested a review from okt-limonikas June 15, 2026 16:48
ol-nata added 2 commits June 16, 2026 11:24
Add `RUN_STATS_COLUMNS_DEFAULT` to the main project configuration
schema. The setting accepts an array of column identifiers and
controls which columns are displayed by default in the run stats
table. All 13 available column names are enumerated in the schema
with titles and descriptions for documentation purposes. The default
value matches the previous hardcoded behaviour.

Signed-off-by: Natalia Rybchenko <natalia.rybchenko@oktetlabs.ru>
Include the project-level default column configuration in the run stats
API response alongside the existing results. The value is resolved from
the main project config.

Signed-off-by: Natalia Rybchenko <natalia.rybchenko@oktetlabs.ru>
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