5
11
Fork
You've already forked tomato
1

Add admin_updated_at field to track meaningful changes #110

Merged
edwardloveall merged 1 commit from el-shift-last-updated into main 2026年03月09日 15:13:58 +01:00

When viewing a shift summary, we want to show when the shift was "last updated". Events of course have an updated_at column, but that doesn't take into account task or user changes, nor associated public and admin notes, or any other associated objects. It also is changed when an event in a series is deleted or split and the original event gains an exdate, but that's not a meaningful change for admins.

This adds an admin_updated_at field to track the changes that admins would care about. It's updated when an event:

  • Adds or removes a task
  • Adds or removes a user
  • Changes its start date, duration, title, public notes, or admin notes
  • Is deleted from a series

All of these are true for single events and events into the future.

admin_updated_at is not changed when a volunteer adds a task log or event note.

When viewing a shift summary, we want to show when the shift was "last updated". Events of course have an `updated_at` column, but that doesn't take into account task or user changes, nor associated public and admin notes, or any other associated objects. It also is changed when an event in a series is deleted or split and the original event gains an `exdate`, but that's not a meaningful change for admins. This adds an `admin_updated_at` field to track the changes that admins would care about. It's updated when an event: - Adds or removes a task - Adds or removes a user - Changes its start date, duration, title, public notes, or admin notes - Is deleted from a series All of these are true for single events and events into the future. `admin_updated_at` is not changed when a volunteer adds a task log or event note.
edwardloveall force-pushed el-shift-last-updated from 3c67d07594
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to 6caf95805a
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年03月05日 15:28:03 +01:00
Compare
edwardloveall force-pushed el-shift-last-updated from 6caf95805a
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to a6aa7f82d4
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年03月05日 16:28:34 +01:00
Compare
edwardloveall force-pushed el-shift-last-updated from a6aa7f82d4
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to b8593dc564
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年03月05日 16:29:55 +01:00
Compare
edwardloveall force-pushed el-shift-last-updated from b8593dc564
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to c869d12fc2
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年03月05日 17:33:05 +01:00
Compare
edwardloveall force-pushed el-shift-last-updated from c869d12fc2
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to bda444dac2
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年03月05日 18:31:13 +01:00
Compare
edwardloveall force-pushed el-shift-last-updated from bda444dac2
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
to 5427c04f6f
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年03月05日 21:59:20 +01:00
Compare
edwardloveall changed target branch from el-flag-unoccupied-shifts to main 2026年03月09日 15:13:40 +01:00
edwardloveall deleted branch el-shift-last-updated 2026年03月09日 15:13:59 +01:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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
rootable/tomato!110
Reference in a new issue
rootable/tomato
No description provided.
Delete branch "el-shift-last-updated"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?