Skip to content

Complete audit-mixin-auto-population: groups 3 & 4 - #296

Merged
arutsh merged 1 commit into
mainfrom
audit-mixin-auto-population-group3
Sep 19, 2026
Merged

arutsh merged 1 commit into
mainfrom
audit-mixin-auto-population-group3

Conversation

@arutsh

@arutsh arutsh commented Sep 19, 2026 •

Copy link
Copy Markdown
Owner

Closes #297, Closes #298

Summary

  • Group 3 (budget): adds a test proving the previously-stale updated_by bug is fixed — update_budget never sets updated_by itself, so the passing test demonstrates the automatic SQLAlchemy listener (from groups 1/2) is what now keeps it fresh across edits.
  • Group 4 (users): BugReportModel and DonorGranteeModel both use AuditMixin but their crud functions never set created_by/updated_by. Added services/users/tests/test_audit_trail_routes.py, which drives both models through their real routes with a real JWT (not make_client's get_validated_user override, which would bypass the contextvar-setting code under test), confirming both columns now populate automatically with zero CRUD changes.
  • Also carries the previously-staged OpenSpec workflow conventions doc (docs/development/WORKFLOW.md + openspec/config.yaml) and two new unimplemented proposals (budget-fix-295-category-cascade-delete-fix, frontend-fix-294-budget-delete-confirm-click) queued for later work.

Test plan

  • services/budget suite: 370 passed (369 + 1 new)
  • services/users suite: 196 passed (194 + 2 new)
  • shared suite: 117 passed, 1 pre-existing unrelated worktree-scanning failure
  • flake8 (max-line-length=100) clean on changed files

🤖 Generated with Claude Code

Budget (group 3): test proves update_budget's previously-stale updated_by
is now kept fresh by the automatic listener, not manual CRUD code.

Users (group 4): regression tests confirm BugReportModel and
DonorGranteeModel now get created_by/updated_by populated for free
through their real routes/JWT chain, with no CRUD changes needed.

Also carries along the updated OpenSpec workflow conventions doc
(sub-issues, branch naming) and config.yaml, plus two freshly staged
proposals (budget-fix-295, frontend-fix-294) queued for later work.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
grant-flow Ready Ready Preview Sep 19, 2026 3:56pm UTC

@arutsh
arutsh merged commit 00fc30f into main Sep 19, 2026
23 of 25 checks passed
@arutsh
arutsh deleted the audit-mixin-auto-population-group3 branch September 19, 2026 16:02

This branch was successfully deployed

1 active deployment
Preview — 6cdd55bd Deployed Sep 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

audit-mixin-auto-population: enable in users service (group 4) audit-mixin-auto-population: enable in budget service (group 3)

1 participant