Skip to content

Connector Config — Schema versioning leaf and migration (boost.connectors.__schemaVersion) #4286

Description

@mareklibra

Labels: ready-to-code (when starting), workspace/boost, feature
Depends on: #4044 (connector leaves exist)
Priority: P2 — no connector DB overrides exist yet; safe to land after #4044
RHIDP Stories: RHIDP-15340 (deferred slice) + OpenSpec group 9
Feature: RHDHPLAN-1513 — Epic RHIDP-15332
Parent gate: #4044 implementation gate (OUT → this issue)

Why (single scope)

#4044 bumps global BOOST_CONFIG_SCHEMA_VERSION and registers v1 connector leaves. OpenSpec also calls for:

  • per-connector metadata leaf boost.connectors.<id>.__schemaVersion (configScope: db-only, excluded from normal per-leaf Zod product validation / must survive validateStoredValues())
  • migration when stored connector schema version < current
  • tests + docs for future v1→v2 field changes

There is no prior connector override data to migrate at first ship — implementing migration in #4044 would be speculative. Isolate it here.

In

From openspec/changes/connector-config-hot-reload/tasks.md:

  • Task 2.8 (migration logic) and group 9 (9.1–9.3)
  • Spec scenarios in specs/config-schemas/spec.md under Schema Versioning / migration (not the basic leaf registration covered by Connector Config — Zod Schemas and RuntimeConfigResolver Extension (issue 6 of 29) #4044)
  • Register __schemaVersion leaves for jira/github/gitlab as db-only
  • Document how connector field renames/removals bump version and run migration
  • Unit tests: missing version → treat as v1; v1→v2 migration hook (can be a no-op transform plus version bump until a real breaking change exists)

Out

Specs

  • openspec/changes/connector-config-hot-reload/specs/config-schemas/spec.md (Schema Versioning)
  • openspec/changes/connector-config-hot-reload/tasks.md group 9

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions