Skip to content

Record workshop creation and invitation batch sends - #2854

Merged
mroderick merged 2 commits into
masterfrom
feat/activity-workshops
Sep 13, 2026
Merged

Record workshop creation and invitation batch sends#2854
mroderick merged 2 commits into
masterfrom
feat/activity-workshops

Conversation

@mroderick

@mroderick mroderick commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fifth of the activity-log stack (base: #2853). Records organiser creation work: workshop.created with a workshops.created_by_id stamp (migration + belongs_to :created_by), and invitation.send_batch for the InvitationLogger initiator.

Key changes

  • Creator is assigned via @workshop.created_by = current_user before save — atomic, no update_column, no validation-skipping disables.
  • Migration split into two: a transactional migration for column + FK (on_delete: :nullify), and a separate disable_ddl_transaction! migration for the concurrently-built index, so a failed index build cannot strand a half-applied migration.
  • Historical workshops keep created_by_id NULL (unknown); no backfill.

Review notes

The concurrent index is precautionary at current table size. Post-deploy check: SELECT COUNT(*) FROM workshops WHERE created_by_id IS NULL AND created_at > :deploy_time; should stay at 0.

Stack: PR 6 adds the admin activity strip UI.


Context and motivation: #2857

@mroderick
mroderick force-pushed the feat/activity-workshops branch from f5b0286 to ee7782d Compare September 9, 2026 09:56
@mroderick
mroderick force-pushed the feat/activity-workshops branch from ee7782d to 47dec5f Compare September 9, 2026 10:11
@mroderick
mroderick marked this pull request as ready for review September 13, 2026 10:54
@mroderick
mroderick force-pushed the feat/activity-workshops branch 2 times, most recently from 29dd502 to f5c0f42 Compare September 13, 2026 11:32
@mroderick
mroderick force-pushed the feat/activity-workshops branch from f5c0f42 to 5207985 Compare September 13, 2026 11:47
Base automatically changed from feat/activity-admin-actions to master September 13, 2026 11:52
@mroderick
mroderick force-pushed the feat/activity-workshops branch from 5207985 to 2742025 Compare September 13, 2026 11:52
@mroderick
mroderick merged commit 90524a3 into master Sep 13, 2026
10 checks passed
@mroderick
mroderick deleted the feat/activity-workshops branch September 13, 2026 12:07
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.

1 participant