Repository navigation
fix(requests): HR entering past leave records it, pinging nobody - #289
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-bytrailer.