Skip to content

fix(service): use load_settings() in GET /config - #4233

Merged
dan-petty merged 3 commits into
mainfrom
fix/2517-use-load-settings-in-get-config
Nov 9, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/2517-use-load-settings-in-get-config

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The GET /api/v1/config route of the Service says that it returns the active, non-secret configuration, but it builds Settings() directly. Settings.settings_customise_sources returns only init_settings (src/devops_cli/config/settings.py:1378), so the constructor reads no variable and no config file and returns the field defaults. The route therefore reports defaults instead of the settings that the Service runs with (#2517).

Closes #2517

Change: openspec/changes/archive/2026-11-09-2517-use-load-settings-in-get-config/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/service The long-running devops Service and its lanes labels Nov 9, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 9, 2026 14:18
@dan-petty
dan-petty merged commit 230d77c into main Nov 9, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/2517-use-load-settings-in-get-config branch November 9, 2026 14:32
dan-petty pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.101.0](v0.100.2...v0.101.0)
(2026-11-09)


### Features

* **config:** add task variables for the context window
([#4234](#4234))
([c034509](c034509))


### Bug Fixes

* **ai:** price a hosted group call by the asked model
([#4231](#4231))
([7b85c91](7b85c91))
* **ai:** Refuse uv audit when project is outside workspace
([#4239](#4239))
([1700648](1700648))
* **ci:** retry the download of a release asset
([#4235](#4235))
([cf0567e](cf0567e))
* **service:** use load_settings() in GET /config
([#4233](#4233))
([230d77c](230d77c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/service The long-running devops Service and its lanes type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(service): Use load_settings() in GET /config

1 participant