Running timers page with view/stop permissions

- New top-menu page listing running timers: owner, issue, project,
  activity, start time, time on this run and entry total, oldest first;
  refreshes every minute
- Role permissions "View running timers" and "Stop other users' timers",
  checked against each timer's project; users can always stop their own
- A timer can be stopped at an earlier time (when the person left):
  hours logged after it are taken off the entry, and the comment notes
  who stopped it and when
- Timers now record when they were started (session_started_at); timers
  running from before show "unknown" until restarted
- Integration tests for permissions, project scoping and stopping; unit
  tests for Timer#stop_for

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
This commit is contained in:
Claude committed 2026-10-29 07:06:08 -04:00
1 parent 626db60658
commit 78f53d5d5a
11 files changed
+399 -1

No files matched your search

+5
View File
@@ -39,6 +39,11 @@ Rick Barrette (2026):
- Issue timers require an issue the user can see; starting twice moves the timer instead of
erroring.
- Tests run against Redmine 7.0.
- **Running timers page (October 2026):** a top-menu page listing everyone's running timers, with
owner, issue, project, activity, start time, how long it has run and the entry total, oldest first.
Two role permissions: *View running timers* and *Stop other users' timers*, applied per project.
A forgotten timer can be stopped at the time the person actually left; hours logged after that
are taken off the entry, and the entry's comment notes who stopped it.
## Installation