Files
jobtrackingapp/JobTrackerApi/Migrations/20260719085904_AddApplicationChecklistItems.cs
T
cesnimda 3a906b881e
CI and Deploy / test (push) Failing after 1m8s
CI and Deploy / deploy (push) Has been skipped
feat(workspace): unified application checklist (Phase 5 milestone 2)
Evolve the existing readiness workflow into one persisted, user-controlled
checklist rather than adding a second tracker.

ApplicationChecklistItem records only completion state and user intent. Each
default system item carries a stable SystemKey and an AutoSignal — the same
signal /readiness already computed — and re-syncs on every read: a satisfied
signal auto-completes the item, a reverted signal reopens it, and a manual tick
always wins. Users can add, reorder, dismiss and delete.

Readiness is refactored into a projection of the checklist (score = completion
percentage, completed/missing = live items by status). Its DTO shape and the
workflowSignal/reminders health view are unchanged, so no API contract breaks.

The workspace's next recommended action now comes from the first pending
checklist item in category priority order (preparation, submission, follow-up,
interview, custom), replacing the parallel ruleset — so the overview can never
recommend something already ticked off, and a user's own task can be next.

The table follows the established MariaDB-safe path: the scaffolded migration is
a no-op and the idempotent reconciler owns the DDL for both providers. Verified
on MariaDB 11 — auto_increment PK, varchar/datetime(6)/tinyint(1) columns, both
indexes inside the key limit, cascade delete, unique system key per application,
and NULL system keys not colliding for custom items.

329 backend tests, 94 frontend tests, type check, production build and both
Docker builds pass locally.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-19 11:15:46 +02:00

29 lines
1.0 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace JobTrackerApi.Migrations
{
/// <inheritdoc />
public partial class AddApplicationChecklistItems : Migration
{
// Deliberately a no-op. Scaffolded against SQLite, so on MariaDB this would emit TEXT datetimes
// and a PRIMARY KEY without AUTO_INCREMENT, and the composite index over those columns then
// exceeds MySQL's 3072-byte key limit — exactly the failure that crashed prod startup for the
// Phase 4 CvVariants tables.
//
// ApplicationChecklistItems is provisioned instead by the idempotent reconciler in
// StartupInitializationExtensions, which carries correct DDL for both SQLite and MySQL. This
// migration exists only so the model snapshot stays in sync.
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}