Skip to content

dashboard: make the dashboard API URL configurable#286

Merged
aliceinwire merged 1 commit into
kernelci:mainfrom
bhcopeland:dashboard-api-config
Jul 24, 2026
Merged

dashboard: make the dashboard API URL configurable#286
aliceinwire merged 1 commit into
kernelci:mainfrom
bhcopeland:dashboard-api-config

Conversation

@bhcopeland

Copy link
Copy Markdown
Member

The dashboard API URL was hard-coded to the production dashboard, preventing queries against staging or internal KernelCI instances.

Replace the DASHBOARD_API and DASHBOARD_URL constants with accessors backed by a module-level setting. The URL can now be set with a dashboard_api key in kci-dev.toml, either in an instance section or at the top level of the file, and library users can pass dashboard_api to KernelCIClient. The production dashboard remains the default when nothing is configured.

Closes #237

The dashboard API URL was hard-coded to the production dashboard,
preventing queries against staging or internal KernelCI instances.

Replace the DASHBOARD_API and DASHBOARD_URL constants with accessors
backed by a module-level setting. The URL can now be set with a
dashboard_api key in kci-dev.toml, either in an instance section or at
the top level of the file, and library users can pass dashboard_api to
KernelCIClient. The production dashboard remains the default when
nothing is configured.

Closes kernelci#237

Signed-off-by: Ben Copeland <ben.copeland@linaro.org>
@bhcopeland
bhcopeland requested a review from aliceinwire July 23, 2026 14:46
@aliceinwire

Copy link
Copy Markdown
Member

Thanks for this. was long time in my mind to add more flexible settings

@aliceinwire
aliceinwire merged commit 4603fdc into kernelci:main Jul 24, 2026
7 checks passed
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.

Make dashboard API URL configurable

2 participants