ONB-14 · Migration + back-compat (fold TrackedRepository / DastTarget in) #132

Closed
opened 2026-07-10 08:34:48 +00:00 by sharang · 0 comments
Owner

Part of #118.

Context

Existing TrackedRepository and DastTarget records must fold into the new OnboardedTarget model without breaking current scans, dashboards, or webhooks.

Scope

  • Migration: map each TrackedRepositoryOnboardedTarget { target_type: inferred, artifacts: [GitRepo] }; each DastTarget → target with a LiveUrl artifact; link pentest sessions.
  • Back-compat: keep existing endpoints/pages working (views over the unified model) during transition, or provide adapters.
  • Data migration script + a rollback note; infer target_type for legacy repos via the classifier (ONB-03) with a safe default.

Acceptance criteria

  • Existing repos/DAST targets appear as onboarded targets with correct artifacts.
  • Current scan/webhook/dashboard flows continue to pass integration tests.
  • Migration is idempotent and reversible.

Depends on

ONB-01, ONB-13. Do last.

Part of #118. ## Context Existing `TrackedRepository` and `DastTarget` records must fold into the new `OnboardedTarget` model without breaking current scans, dashboards, or webhooks. ## Scope - Migration: map each `TrackedRepository` → `OnboardedTarget { target_type: inferred, artifacts: [GitRepo] }`; each `DastTarget` → target with a `LiveUrl` artifact; link pentest sessions. - Back-compat: keep existing endpoints/pages working (views over the unified model) during transition, or provide adapters. - Data migration script + a rollback note; infer `target_type` for legacy repos via the classifier (ONB-03) with a safe default. ## Acceptance criteria - Existing repos/DAST targets appear as onboarded targets with correct artifacts. - Current scan/webhook/dashboard flows continue to pass integration tests. - Migration is idempotent and reversible. ## Depends on ONB-01, ONB-13. Do last.
sharang added this to the Onboarding v1 milestone 2026-07-10 08:34:48 +00:00
sharang added the enhancementonboarding labels 2026-07-10 08:34:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sharang/compliance-scanner-agent#132