Release v0.5.1 #30

Merged
Mike Bros merged 8 commits from release/0.5.1 into main 2026-02-19 19:10:18 +00:00
Contributor

Release v0.5.1 — Activity Log Fixes

Changes

  • OP#1111: Fix count query missing table alias in activity service
  • OP#1112: Optimize activity log user query to select only needed columns
  • OP#1113: Skip user/eventTypes queries on HTMX partial requests
  • OP#1114: Promote activity log failure from slog.Debug to slog.Warn
  • OP#1115: Drop redundant standalone event_type index
  • OP#1116: Add ON DELETE SET NULL to activity_logs foreign keys
  • OP#1117: Fix whitespace alignment regression in models.go

Checklist

  • All version tasks closed in Gravity PM
  • Tests passing
  • go vet clean
  • Version file matches Gravity PM version (manifest.json → 0.5.1)

References

Version: v0.5.1 — Activity Log Fixes (Gravity PM)

## Release v0.5.1 — Activity Log Fixes ### Changes - OP#1111: Fix count query missing table alias in activity service - OP#1112: Optimize activity log user query to select only needed columns - OP#1113: Skip user/eventTypes queries on HTMX partial requests - OP#1114: Promote activity log failure from slog.Debug to slog.Warn - OP#1115: Drop redundant standalone event_type index - OP#1116: Add ON DELETE SET NULL to activity_logs foreign keys - OP#1117: Fix whitespace alignment regression in models.go ### Checklist - [x] All version tasks closed in Gravity PM - [x] Tests passing - [x] go vet clean - [x] Version file matches Gravity PM version (manifest.json → 0.5.1) ### References Version: v0.5.1 — Activity Log Fixes (Gravity PM)
The count query was missing the `al` table alias, causing PostgreSQL
errors when any filter was active since buildActivityWhere generates
conditions with `al.` prefix.

Closes OP#1111

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The activity log user filter dropdown only needs id, username, and
display_name but was loading all 15 columns. Introduced a lightweight
ActivityFilterUser struct and reduced the query accordingly.

Closes OP#1112

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
HTMX partial responses only return ActivityLogResults, which doesn't
use the user list or event types. Moved these queries inside the
full-page branch so they only execute when rendering the complete page.

Closes OP#1113

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Silent data loss: if the activity log INSERT fails (full disk, pool
exhausted, schema drift), Debug level is invisible in production.
Promote to Warn so operators see audit trail gaps.

Closes OP#1114

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The composite index idx_activity_logs_event_type_created_at already
covers equality lookups on event_type via its leftmost prefix. The
standalone index adds write overhead on every INSERT with zero benefit.

Closes OP#1115

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Aligns with ADR-002 soft/hard delete cascades. Deleting a user now
sets user_id and impersonator_id to NULL in activity logs instead of
blocking the delete, preserving audit trail entries.

Closes OP#1116

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
chore(release): bump version to 0.5.1
All checks were successful
CI / validate-branch (pull_request) Successful in 0s
CI / validate-release-pr (pull_request) Successful in 3s
CI / build (pull_request) Successful in 48s
CI / security (pull_request) Successful in 1m42s
CI / lint (pull_request) Successful in 2m37s
CI / test (pull_request) Successful in 1m52s
04b2035073
Refs OP#1128

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Mike Bros approved these changes 2026-02-19 19:10:12 +00:00
Mike Bros deleted branch release/0.5.1 2026-02-19 19:10:19 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mike/gashy!30
No description provided.