You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enforce the project health set in the database, not only at the API #412
area: databaseSchema, migrations, queries, seedarea: projectsProjects, milestones and initiativesgood first issueSmall, well scoped, with the file paths written downhelp wantedWe would love a hand with this onepoints: 1Fibonacci estimate: 1readyScoped, agreed, and safe to pick upschema changeAdds, drops or alters a table. Migrations are applied by hand before the code shipssize: smallA sitting. One file or two, the fix is written in the issue
PROJECT_HEALTHS in packages/shared/src/constants/project.ts fixes health to on_track, at_risk, off_track and no_update, and the validators enforce it on every write. The columns themselves are still free text: health on project and on project_update in packages/db/src/schema/work.ts have no check constraint, so a direct write or a future importer can store anything.
Add a check constraint on both columns, generate the migration with drizzle-kit, and add a schema test that a value outside the set is refused. The migration must also be applied to the hosted database before the code ships, per the migrations note in CLAUDE.md.
area: databaseSchema, migrations, queries, seedarea: projectsProjects, milestones and initiativesgood first issueSmall, well scoped, with the file paths written downhelp wantedWe would love a hand with this onepoints: 1Fibonacci estimate: 1readyScoped, agreed, and safe to pick upschema changeAdds, drops or alters a table. Migrations are applied by hand before the code shipssize: smallA sitting. One file or two, the fix is written in the issue
Activity