Skip to content

fix(requests): HR entering past leave records it, pinging nobody - #289

Merged
skjnldsv merged 1 commit into
mainfrom
fix/hr-past-leave-recorded
Dec 3, 2026
Merged

skjnldsv merged 1 commit into
mainfrom
fix/hr-past-leave-recorded

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Dec 3, 2026

Copy link
Copy Markdown
Member

Only HR can enter leave that ended before today, so it's a correction of the record. It still went through approval: an HR member entering their own old leave, with no manager, sent the whole HR team a "Short notice: leave request awaiting HR" email for dates in January. A booking for somebody else also notified their manager and replacement about days long gone.

Such leave is now booked approved at once, needs no replacement, and sends no notification or email. It still shows in the activity stream and the request history. HR's own leave ahead still goes to another HR member as before.

New integration test, red without the fix. LeaveImportTest booked a past sick day to prove its spies see notifications; that booking is now a month ahead. On my instance that test's activity check fails on main too ("The token is invalid" from the activity manager), so I'm relying on CI for it.

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

Leave that ended before today can only be entered by HR, and it is a
correction of the record. It still went through the approval workflow: an
HR member entering their own old leave without a manager sent the whole HR
team a "Short notice: leave request awaiting HR" email, and a booking for
somebody else notified their manager and replacement about days long gone.

It is now booked approved at once, needs no replacement, and sends no
notification or email. It still shows in the activity stream and the
request history.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv added 3. to review Waiting for reviews bug Something isn't working AI assisted This PR contains AI-assisted commits labels Dec 3, 2026
@skjnldsv skjnldsv self-assigned this Dec 3, 2026
@skjnldsv
skjnldsv merged commit b30fe0f into main Dec 3, 2026
65 checks passed
@skjnldsv
skjnldsv deleted the fix/hr-past-leave-recorded branch December 3, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted This PR contains AI-assisted commits bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant