Skip to content

feat(config): SelfhostedConfig schema — wire adapters to config - #7

Merged
gerfru merged 1 commit into
mainfrom
feat/overlay-schema
Jul 4, 2026
Merged

feat(config): SelfhostedConfig schema — wire adapters to config#7
gerfru merged 1 commit into
mainfrom
feat/overlay-schema

Conversation

@gerfru

@gerfru gerfru commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Pydantic schema: XWikiConfig, RedmineConfig, SelfhostedConfig added to src/core/config.py; CoreConfig gains optional target and selfhosted fields
  • selfhosted.yaml restructured — xwiki/redmine blocks now nested under selfhosted: key to match schema
  • Adapters: XWikiAdapter and RedmineAdapter read all settings (base_url, space_key, project_key, etc.) from CoreConfig — no more hardcoded values
  • CLI: _deploy_selfhosted reads tracker_mapping from config.selfhosted.redmine.tracker_mapping
  • cli/__init__.py: empty file for clean package structure
  • config/clients/example.yaml: reference template for client overlays (gitignore exception added)
  • 3 new tests: selfhosted overlay loads and validates, tracker mapping covers all record types, missing selfhosted block gives None

Test plan

  • qms-kit deploy --target selfhosted --config config/clients/example.yaml --dry-run renders all templates cleanly
  • CI passes (lint, security, typecheck, tests)

🤖 Generated with Claude Code

- Add XWikiConfig, RedmineConfig, SelfhostedConfig Pydantic models
- CoreConfig gains optional target + selfhosted fields
- selfhosted.yaml restructured under selfhosted: key to match schema
- XWikiAdapter and RedmineAdapter now read all settings from CoreConfig
- CLI _deploy_selfhosted reads tracker_mapping from config (no hardcoded values)
- Add cli/__init__.py for clean package structure
- Add config/clients/example.yaml as reference template for client overlays
- Add 3 tests covering selfhosted overlay loading and tracker mapping validation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gerfru
gerfru merged commit 6c9c459 into main Jul 4, 2026
6 checks passed
@gerfru
gerfru deleted the feat/overlay-schema branch July 4, 2026 18:06
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.

1 participant