v0.7.0-beta: Projects / Change Cases - #48
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
ChangeCasebackend model with fieldsid,title,description,status(draft,in_review,approved,closed),created_by_user_id,created_atandupdated_at, and an optional relationship fromcheckstochange_casesviachange_case_id(DB/ORM changes inbackend/app/models.py).backend/alembic/versions/0003_change_cases.pyto create thechange_casestable and addchecks.change_case_idFK.backend/app/api/routes_change_cases.py:GET /api/change-cases,POST /api/change-cases,GET /api/change-cases/{id},PATCH /api/change-cases/{id}, andGET /api/change-cases/{id}/reportswith role checks and status/transition validation.backend/app/api/routes_checks.py) preserving backward compatibility: check request schemas accept optionalchange_case_id, checks/reports are linked when provided, and unknownchange_case_idyields clean404responses; additional audit events are emitted when attachments occur.change_case_created,change_case_updated,change_case_status_changed,check_attached_to_change_caseandreport_attached_to_change_case(via existing audit subsystem).ChangeCasesViewwith list/detail, create button and basic actions, wired navigation entry "Change Cases", API bindings and new types; version labels and system info updated tov0.7.0-betaand frontend package bumped to0.7.0.README.md,ROADMAP.mdandRELEASE_NOTES.mdupdated to referencev0.7.0-betaand describe the Change Cases feature.Testing
cd backend && pytest -qresulting in92 passedtests (existing suite plus new Change Case tests).cd frontend && npm run buildand the production build completed successfully (vite build succeeded).Codex Task